Wire up tsx lexer for i18next-parser and add missing string

This commit is contained in:
Michael Telatynski
2023-11-17 12:34:12 +00:00
parent 548d2e4d63
commit 9fad8dc080
2 changed files with 9 additions and 1 deletions

View File

@@ -10,7 +10,14 @@ export default {
{
lexer: "JavascriptLexer",
functions: ["t", "translatedError"],
functionsNamespace: ["useTranslation", "withTranslation"],
namespaceFunctions: ["useTranslation", "withTranslation"],
},
],
tsx: [
{
lexer: "JsxLexer",
functions: ["t", "translatedError"],
namespaceFunctions: ["useTranslation", "withTranslation"],
},
],
},