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

app-shell: port to i18next-parser

parent 9dc1b397
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,
},
},
};
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
"eslint": "^8.0.0", "eslint": "^8.0.0",
"eslint-plugin-jsdoc": "^38.0.0", "eslint-plugin-jsdoc": "^38.0.0",
"glob": "^7.1.6", "glob": "^7.1.6",
"i18next-scanner": "^3.0.0", "i18next-parser": "^6.3.0",
"karma": "^6.0.0", "karma": "^6.0.0",
"karma-chrome-launcher": "^3.0.0", "karma-chrome-launcher": "^3.0.0",
"karma-firefox-launcher": "^2.1.0", "karma-firefox-launcher": "^2.1.0",
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
"universal-router": "^9.0.1" "universal-router": "^9.0.1"
}, },
"scripts": { "scripts": {
"i18next": "i18next-scanner", "i18next": "i18next",
"format": "yarn run format:eslint && yarn run format:prettier", "format": "yarn run format:eslint && yarn run format:prettier",
"format:eslint": "eslint \"**/*.{js,ts}\" --fix", "format:eslint": "eslint \"**/*.{js,ts}\" --fix",
"format:prettier": "prettier \"**/*.{js,json,ts}\" --write", "format:prettier": "prettier \"**/*.{js,json,ts}\" --write",
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment