From 216a151e0f36d4ca1552c8e4f3bdef68708ec4fd Mon Sep 17 00:00:00 2001 From: Stephen Fraser Date: Tue, 17 May 2022 14:29:41 +0100 Subject: [PATCH] Fixed client loading --- services/madoc-ts/src/middleware/i18n/i18next.client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/madoc-ts/src/middleware/i18n/i18next.client.ts b/services/madoc-ts/src/middleware/i18n/i18next.client.ts index 1307aea0d..1e7943fe6 100644 --- a/services/madoc-ts/src/middleware/i18n/i18next.client.ts +++ b/services/madoc-ts/src/middleware/i18n/i18next.client.ts @@ -14,7 +14,7 @@ export async function createBackend(slug: string, jwt?: string, languages?: stri ns: ['madoc', 'capture-models'], defaultNS: 'madoc', supportedLngs: languages, - saveMissing: true, + saveMissing: process.env.NODE_ENV !== 'production', keySeparator: false, detection: { order: ['querystring', /* 'cookie', */ 'localStorage', 'sessionStorage', 'navigator', 'htmlTag'],