From 101094590572bce0a2f70e18cac31742be42169a Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 17 Nov 2023 12:39:35 +0000 Subject: [PATCH] Update i18next-parser.config.ts --- frontend/i18next-parser.config.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/frontend/i18next-parser.config.ts b/frontend/i18next-parser.config.ts index 6c2bf253..9c1772f7 100644 --- a/frontend/i18next-parser.config.ts +++ b/frontend/i18next-parser.config.ts @@ -22,7 +22,14 @@ const config: UserConfig = { ts: [ { lexer: "JavascriptLexer", - functions: ["t", "translatedError"], + functions: ["t"], + namespaceFunctions: ["useTranslation", "withTranslation"], + }, + ], + tsx: [ + { + lexer: "JsxLexer", + functions: ["t"], namespaceFunctions: ["useTranslation", "withTranslation"], }, ],