Skip to content
Snippets Groups Projects
Commit 3f612135 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

language-select: port to i18next-parser

parent 892e39a7
No related branches found
No related tags found
No related merge requests found
module.exports = {
createOldCatalogs: false,
indentation: 4,
keepRemoved: false,
locales: ['en', 'de'],
output: 'src/i18n/$LOCALE/$NAMESPACE.json',
input: ['src/**/*.js'],
sort: true,
i18nextOptions: {compatibilityJSON: 'v3'},
};
module.exports = {
input: [
'src/*.js',
],
output: './',
options: {
debug: false,
sort: true,
removeUnusedKeys: true,
func: {list: ['i18n.t', '_i18n.t']},
lngs: ['en','de'],
resource: {
loadPath: 'src/i18n/{{lng}}/{{ns}}.json',
savePath: 'src/i18n/{{lng}}/{{ns}}.json',
jsonIndent: 4,
},
},
}
......@@ -20,7 +20,7 @@
"@rollup/plugin-node-resolve": "^13.0.0",
"eslint": "^8.0.0",
"eslint-plugin-jsdoc": "^38.0.0",
"i18next-scanner": "^3.0.0",
"i18next-parser": "^6.3.0",
"karma": "^6.0.0",
"karma-chrome-launcher": "^3.0.0",
"karma-firefox-launcher": "^2.1.0",
......@@ -46,7 +46,7 @@
"build-prod": "rollup -c --environment BUILD:production",
"build-demo": "rollup -c --environment BUILD:demo",
"build-test": "rollup -c --environment BUILD:test",
"i18next": "i18next-scanner",
"i18next": "i18next",
"watch": "npm run watch-local",
"watch-local": "rollup -c --watch",
"watch-dev": "rollup -c --watch --environment BUILD:development",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment