From c7861c6ad48c8afd25a2a3694caa68f02bdc3867 Mon Sep 17 00:00:00 2001 From: Anthony LC Date: Wed, 26 Jun 2024 10:16:37 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(i18n)=20fix=20key=20that=20contain?= =?UTF-8?q?=20colon?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Keys that contains colon where not being translated correctly. This was due to the colon being used as a separator for the key and the value. This was fixed by replacing the colon with a different character that is not used in the key or the value. --- src/frontend/apps/desk/src/i18n/initI18n.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/frontend/apps/desk/src/i18n/initI18n.ts b/src/frontend/apps/desk/src/i18n/initI18n.ts index 2cff5f9..7d601c1 100644 --- a/src/frontend/apps/desk/src/i18n/initI18n.ts +++ b/src/frontend/apps/desk/src/i18n/initI18n.ts @@ -14,6 +14,7 @@ i18n escapeValue: false, }, preload: LANGUAGES_ALLOWED, + nsSeparator: '||', }) .catch(() => { throw new Error('i18n initialization failed');