mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-05-06 05:38:51 +00:00
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:
@@ -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"));
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user