fix: fix bug in GetAcceptLanguage() (#1322)

This commit is contained in:
Mr Forest
2022-11-24 20:43:35 +08:00
committed by GitHub
parent 29ec1d2d9c
commit ba9d1e2388
3 changed files with 8 additions and 10 deletions

View File

@ -553,6 +553,9 @@ export function setLanguage(language) {
}
export function getAcceptLanguage() {
if (i18next.language === null || i18next.language === "") {
return "en;q=0.9,en;q=0.8";
}
return i18next.language + ";q=0.9,en;q=0.8";
}