Settings: added lang and region picker dialog
This commit is contained in:
parent
55705b0a6d
commit
e56dc4bf7b
10 changed files with 316 additions and 75 deletions
|
@ -20,9 +20,9 @@ async function synchronised(
|
|||
await navigator.locks.request(name, callback);
|
||||
}
|
||||
|
||||
export const SUPPORTED_LANGS = ["en", "zh-Hans"];
|
||||
export const SUPPORTED_LANGS = ["en", "zh-Hans"] as const;
|
||||
|
||||
export const SUPPORTED_REGIONS = ["en_US", "en_GB", "zh_CN"];
|
||||
export const SUPPORTED_REGIONS = ["en_US", "en_GB", "zh_CN"] as const;
|
||||
|
||||
const DEFAULT_LANG = "en";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue