fix(i18n): extract new Chinese keys and implement dynamic localization for footer/updates/tray menu

This commit is contained in:
philau2512
2026-07-15 17:53:42 +07:00
parent 12c7973a06
commit 319bd3d7d8
9 changed files with 1171 additions and 300 deletions
+3
View File
@@ -1,4 +1,5 @@
import { computed, ref } from "vue";
import { Events } from "@wailsio/runtime";
import {
DEFAULT_LOCALE,
LOCALE_OPTIONS,
@@ -143,6 +144,7 @@ class LocalizedText extends String {
const currentLocale = ref(resolveInitialLocale());
applyLocaleToDocument(currentLocale.value);
Events.Emit("locale:changed", currentLocale.value);
const localizedCache = new Map();
@@ -155,6 +157,7 @@ export function setLocale(locale) {
currentLocale.value = nextLocale;
persistManualLocale(nextLocale);
applyLocaleToDocument(nextLocale);
Events.Emit("locale:changed", nextLocale);
return nextLocale;
}