feat: Add basic translation framework
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2024-07-30 20:02:37 +02:00
parent 75a6df9d9d
commit c078eaa6c5
26 changed files with 5560 additions and 140 deletions

10
i18next-parser.config.js Normal file
View File

@@ -0,0 +1,10 @@
module.exports = {
defaultNamespace: 'translation',
lexers: {
js: ['JsxLexer'], // we're writing jsx inside .js files
default: ['JavascriptLexer'],
},
locales: ['en', 'de'],
output: 'public/lang/$LOCALE.json',
input: [ 'src/*.js', 'public/*.html', ],
}