Merge branch 'dev' into fix/16323-keyed-show-callbacks
This commit is contained in:
commit
5ec45c03d6
54 changed files with 424 additions and 125 deletions
|
|
@ -77,6 +77,7 @@ function detectLocale(): Locale {
|
|||
const languages = navigator.languages?.length ? navigator.languages : [navigator.language]
|
||||
for (const language of languages) {
|
||||
if (!language) continue
|
||||
if (language.toLowerCase().startsWith("en")) return "en"
|
||||
if (language.toLowerCase().startsWith("zh")) {
|
||||
if (language.toLowerCase().includes("hant")) return "zht"
|
||||
return "zh"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue