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

common: port to i18next-parser

parent e2d112eb
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', './*.js'],
sort: true,
i18nextOptions: {compatibilityJSON: 'v3'},
};
module.exports = {
input: ['src/*.js', './*.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,
},
},
};
......@@ -16,7 +16,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",
......@@ -30,7 +30,7 @@
"rollup-plugin-serve": "^1.0.1"
},
"scripts": {
"i18next": "i18next-scanner",
"i18next": "i18next",
"format": "yarn run format:eslint && yarn run format:prettier",
"format:eslint": "eslint \"**/*.{js,ts}\" --fix",
"format:prettier": "prettier \"**/*.{js,json,ts}\" --write",
......
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