mirror of
https://github.com/Unkn0wnCat/matrix-veles.git
synced 2025-05-31 17:56:32 +02:00
webui: Add i18n
This commit is contained in:
parent
ac5faca859
commit
9e05c54d81
30 changed files with 1098 additions and 112 deletions
17
webui/i18next-parser.config.js
Normal file
17
webui/i18next-parser.config.js
Normal file
|
@ -0,0 +1,17 @@
|
|||
module.exports = {
|
||||
createOldCatalogs: true,
|
||||
lexers: {
|
||||
js: ['JsxLexer'],
|
||||
default: ['JavascriptLexer'],
|
||||
ts: ['JavascriptLexer'],
|
||||
jsx: ['JsxLexer'],
|
||||
tsx: ['JsxLexer'],
|
||||
},
|
||||
skipDefaultValues: (locale, ns) => {return locale !== "en"},
|
||||
locales: ['en', 'de'],
|
||||
output: 'public/locales/$LOCALE/$NAMESPACE.json',
|
||||
input: [
|
||||
'src/**/*.tsx',
|
||||
'src/*.tsx',
|
||||
],
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue