diff --git a/frontend/src/i18n/i18n.js b/frontend/src/i18n/i18n.js index db8aa23e32..16d9ee5db2 100644 --- a/frontend/src/i18n/i18n.js +++ b/frontend/src/i18n/i18n.js @@ -35,7 +35,7 @@ const loadedLanguages = ['en_US', 'zh_CN', 'zh_TW']; function setI18nLanguage(lang) { i18n.locale = lang; - axios.defaults.headers.common['Accept-Language'] = lang; + axios.defaults.headers.common['Accept-Language'] = lang.replace("_", "-"); document.querySelector('html').setAttribute('lang', lang); return lang; }