Fix: fix settings menu
This commit is contained in:
parent
fc62d41e1b
commit
2b728fdf8b
1 changed files with 2 additions and 3 deletions
|
@ -18,10 +18,9 @@
|
||||||
* EventStore to assign to, defaults to 'Locale.langauge'
|
* EventStore to assign to, defaults to 'Locale.langauge'
|
||||||
*/
|
*/
|
||||||
export let assignTo: UIEventSource<string> = Locale.language;
|
export let assignTo: UIEventSource<string> = Locale.language;
|
||||||
export let preferredLanguages: UIEventSource<string[]>;
|
export let preferredLanguages: UIEventSource<string[]> = undefined;
|
||||||
let preferredFiltered: string[] = undefined;
|
let preferredFiltered: string[] = undefined;
|
||||||
preferredLanguages.addCallbackAndRunD(preferredLanguages => {
|
preferredLanguages?.addCallbackAndRunD(preferredLanguages => {
|
||||||
|
|
||||||
let lng = navigator.language;
|
let lng = navigator.language;
|
||||||
if (lng === "en-US") {
|
if (lng === "en-US") {
|
||||||
lng = "en";
|
lng = "en";
|
||||||
|
|
Loading…
Reference in a new issue