fix: Kill auto language (#21)

* fix: Kill auto language

Kill the background automatic recognition of language to prevent backend
Language file correction

* refactor(Aggregate): Ports and install hosts

Optimize multi-language

* fix(I18n): Kill spurious shortcuts

Fix wrong import
This commit is contained in:
GuGuGu
2024-12-02 13:57:03 +01:00
committed by GitHub
parent 51c0af6146
commit 22c53cf723
10 changed files with 68 additions and 63 deletions
+2 -4
View File
@@ -105,11 +105,9 @@ export default function SettingsPage() {
if (e instanceof Error) setError(e);
return;
} finally {
if (values.language != "auto") {
if (values.language != i18n.language) {
i18n.changeLanguage(values.language);
} else {
i18n.changeLanguage(i18n.services.languageDetector.detect());
}
}
toast(t("Success"));
}
};