8000 Add: Provide a gsa-en.json file for translations · greenbone/gsa@fb045e6 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit fb045e6

Browse files
committed
Add: Provide a gsa-en.json file for translations
It seems not providing a default language file for en causes issues for some users. With this change it is required to call `npm run i18n-extract` for every translatable wording change in the UI.
1 parent 30401d5 commit fb045e6

File tree

4 files changed

+2051
-2
lines changed

4 files changed

+2051
-2
lines changed

i18next-parser.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default {
2121

2222
default: jsLexer,
2323
},
24-
locales: ['de', 'zh_TW', 'zh_CN'],
24+
locales: ['en', 'de', 'zh_TW', 'zh_CN'],
2525
namespaceSeparator: false,
2626
output: 'public/locales/gsa-$LOCALE.json',
2727
pluralSeparator: false,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"build": "vite build",
2626
"lint": "eslint src --max-warnings 0",
2727
"preview": "vite preview",
28-
"i18n-extract": "i18next",
28+
"i18n-extract": "i18next && node scripts/update-gsa-en-json",
2929
"clean-up-translations": "node scripts/cleanuptranslations"
3030
},
3131
"engines": {

0 commit comments

Comments
 (0)
0