From 74792a9c2117eb22fafb00444c8fa41b4920683b Mon Sep 17 00:00:00 2001 From: RaktimaNXG Date: Wed, 7 Aug 2024 16:08:02 +0530 Subject: [PATCH] refactor code --- apps/OpenSign/src/i18n.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/OpenSign/src/i18n.js b/apps/OpenSign/src/i18n.js index d49c227d1..e82bfc4ce 100644 --- a/apps/OpenSign/src/i18n.js +++ b/apps/OpenSign/src/i18n.js @@ -10,12 +10,13 @@ i18n .init({ fallbackLng: "en", // Fallback to English if no other language is detected detection: { - // Order and from where user language should be detected + // Specifies the default language to fall back to if the detected language is not available. order: ["localStorage", "navigator"], - // Cache user language on + // Defines where the detected language should be cached. caches: ["localStorage"] }, - debug: true, + //Enables debug mode, which outputs detailed logs to the console about the translation process. + debug: false, interpolation: { escapeValue: false // Not needed for react as it escapes by default },