From 88c35a086ad6c9163a2debf0e6c749fa1a3d9449 Mon Sep 17 00:00:00 2001 From: Junyi Date: Tue, 7 Feb 2023 11:57:40 +0800 Subject: [PATCH] fix(i18n): set key and ns separator default to false (#1432) --- packages/core/client/src/i18n/i18n.ts | 2 ++ packages/core/server/src/helper.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/packages/core/client/src/i18n/i18n.ts b/packages/core/client/src/i18n/i18n.ts index 23b7cf9c0..20e26ac84 100644 --- a/packages/core/client/src/i18n/i18n.ts +++ b/packages/core/client/src/i18n/i18n.ts @@ -28,6 +28,8 @@ i18n // }, // ns: ['client'], resources: {}, + keySeparator: false, + nsSeparator: false, }); i18n.on('languageChanged', (lng) => { diff --git a/packages/core/server/src/helper.ts b/packages/core/server/src/helper.ts index a2534aa6e..f7f751139 100644 --- a/packages/core/server/src/helper.ts +++ b/packages/core/server/src/helper.ts @@ -13,6 +13,8 @@ export function createI18n(options: ApplicationOptions) { instance.init({ lng: 'en-US', resources: {}, + keySeparator: false, + nsSeparator: false, ...options.i18n, }); return instance;