let languages = fs.readdirSync(path.join(__dirname, 'src', 'i18n'))
.map(file => path.join(__dirname, 'src', 'i18n', file))
.filter(path => !fs.statSync(path).isDirectory());
let partialWebpackConfig = {
entry: {
main: [
...languages,
path.join(__dirname, 'src', 'main.ts')
]
},
module: {
rules: [
{
test: /\.ya?ml$/,
use: [
{
loader: 'file-loader',
options: { name: 'assets/i18n/[name].json' }
},
{
loader: 'yaml-import-loader',
options: { importRoot: true, output: 'json' }
}
],
include: path.join(__dirname, 'src', 'i18n')
}
]
}
}
-
Notifications
You must be signed in to change notification settings - Fork 0
License
ngfk/ngx-translate-yaml
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published