Fix: fix settings menu

This commit is contained in:
Pieter Vander Vennet 2023-11-19 05:07:44 +01:00
parent fc62d41e1b
commit 2b728fdf8b

View file

@ -18,10 +18,9 @@
* EventStore to assign to, defaults to 'Locale.langauge'
*/
export let assignTo: UIEventSource<string> = Locale.language;
export let preferredLanguages: UIEventSource<string[]>;
export let preferredLanguages: UIEventSource<string[]> = undefined;
let preferredFiltered: string[] = undefined;
preferredLanguages.addCallbackAndRunD(preferredLanguages => {
preferredLanguages?.addCallbackAndRunD(preferredLanguages => {
let lng = navigator.language;
if (lng === "en-US") {
lng = "en";