Support automatic language selection based on system language (#17953)

* Support automatic language selection

* Handle non-matching keys

* Cleanup

* Handle region specific language codes from browser

* Fix passing in requestor
This commit is contained in:
Nicolas Mowen
2025-04-29 09:02:50 -06:00
committed by GitHub
parent 9291543705
commit e57dde7bb0
4 changed files with 55 additions and 25 deletions

14
web/src/lib/const.ts Normal file
View File

@@ -0,0 +1,14 @@
export const supportedLanguageKeys = [
"en",
"es",
"fr",
"de",
"it",
"nl",
"nb-NO",
"tr",
"pl",
"zh-CN",
"yue-Hant",
"ru",
];