From 357f3b297853e1997b14b2dadba69e0034c20080 Mon Sep 17 00:00:00 2001 From: Jon Koops Date: Fri, 27 Oct 2023 18:25:59 +0200 Subject: [PATCH] Use default namespace for i18next (#24322) --- js/apps/account-ui/src/i18n.ts | 3 --- js/apps/admin-ui/src/i18n/i18n.ts | 4 ---- 2 files changed, 7 deletions(-) diff --git a/js/apps/account-ui/src/i18n.ts b/js/apps/account-ui/src/i18n.ts index 097009e754..77b6318d73 100644 --- a/js/apps/account-ui/src/i18n.ts +++ b/js/apps/account-ui/src/i18n.ts @@ -6,7 +6,6 @@ import { environment } from "./environment"; import { joinPath } from "./utils/joinPath"; const DEFAULT_LOCALE = "en"; -const DEFAULT_NAMESPACE = "translation"; // This type is aliased to any, so that we can find all the places where we use it. // In the future all casts to this type should be removed from the code, so @@ -14,9 +13,7 @@ const DEFAULT_NAMESPACE = "translation"; export type TFuncKey = any; export const i18n = createInstance({ - defaultNS: DEFAULT_NAMESPACE, fallbackLng: DEFAULT_LOCALE, - ns: [DEFAULT_NAMESPACE], interpolation: { escapeValue: false, }, diff --git a/js/apps/admin-ui/src/i18n/i18n.ts b/js/apps/admin-ui/src/i18n/i18n.ts index 52952d0a3c..273ad8b992 100644 --- a/js/apps/admin-ui/src/i18n/i18n.ts +++ b/js/apps/admin-ui/src/i18n/i18n.ts @@ -6,15 +6,11 @@ import { joinPath } from "../utils/joinPath"; import { OverridesBackend } from "./OverridesBackend"; export const DEFAULT_LOCALE = "en"; -export const DEFAULT_NAMESPACE = "translation"; export const KEY_SEPARATOR = "."; export const i18n = createInstance({ fallbackLng: DEFAULT_LOCALE, - defaultNS: DEFAULT_NAMESPACE, - fallbackNS: DEFAULT_NAMESPACE, keySeparator: KEY_SEPARATOR, - ns: DEFAULT_NAMESPACE, interpolation: { escapeValue: false, },