From 94f9329e3b12ac0c414dc1bca1bbbe28da5825f0 Mon Sep 17 00:00:00 2001 From: Andrew Date: Wed, 18 Sep 2024 00:37:01 +0000 Subject: [PATCH] Change fallback to en-US --- frontend/front/src/util/surveyUtils.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/front/src/util/surveyUtils.js b/frontend/front/src/util/surveyUtils.js index 1d97c258..14203506 100644 --- a/frontend/front/src/util/surveyUtils.js +++ b/frontend/front/src/util/surveyUtils.js @@ -1,13 +1,13 @@ // Current supported survey languages -const supportedLanguages = ["en"]; +const supportedLanguages = ["en-US"]; export const validateLanguage = () => { const langPref = localStorage.getItem("langPref"); if (typeof langPref !== "string") { - return "en"; + return "en-US"; } const generalLang = langPref.split("-")[0]; - return supportedLanguages.includes(generalLang) ? generalLang : "en"; + return supportedLanguages.includes(generalLang) ? generalLang : "en-US"; }; export const buildSurveyCacheKey = (surveyId, homeId) =>