fix: Fix i18n infrastructure

Add dev dependency fix paths and key names so that the default HTML lexer can pick them up
This commit is contained in:
2025-04-13 18:54:35 +02:00
parent de91ad9367
commit 53cac9f3d2
7 changed files with 41 additions and 42 deletions

View File

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