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) =>