Skip to content

Commit

Permalink
Fix defaultLocale() 'ReferenceError: Locales is not defined' (#2488)
Browse files Browse the repository at this point in the history
  • Loading branch information
jake-low authored Nov 9, 2024
1 parent 94e7de6 commit f146e0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/User/Locale/Locale.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,5 @@ export const loadTranslatedMessages = async function (locale) {
*/
export const defaultLocale = function () {
const configured = window.env.REACT_APP_DEFAULT_LOCALE;
return isSupportedLocale(configured) ? configured : Locales["en-US"];
return isSupportedLocale(configured) ? configured : "en-US";
};

0 comments on commit f146e0c

Please sign in to comment.