Skip to content

Commit

Permalink
Pass non-formatted languageCode to i18n (#2080)
Browse files Browse the repository at this point in the history
fix(odyssey-react-mui): pass non-formatted languageCode to i18n
  • Loading branch information
bryancunningham-okta authored Jan 5, 2024
1 parent 747861b commit 6f7e8cf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const OdysseyTranslationProvider = <SupportedLanguages extends string>({
};
// Defaults to the browser's language if available otherwise `en` will be used
i18n.changeLanguage(
normalizedLanguageCode || window.navigator.language,
languageCode || window.navigator.language,
changeHtmlElementLanguageAttribute
);
}, [languageCode]);
Expand Down

0 comments on commit 6f7e8cf

Please sign in to comment.