fix: preserve popup copy when catalogs fail

This commit is contained in:
2026-07-11 22:24:32 +08:00
parent 604bb459c8
commit af44ce2fa2
3 changed files with 76 additions and 2 deletions
+4 -1
View File
@@ -82,7 +82,10 @@
languageSelectEl.value = currentPreference;
Object.keys(staticText).forEach(function (id) {
var element = document.getElementById(id);
if (element) element.textContent = t(staticText[id]);
if (element) {
if (element.__verstakI18nFallback == null) element.__verstakI18nFallback = element.textContent;
element.textContent = t(staticText[id], null, element.__verstakI18nFallback);
}
});
applyReceiverState(currentState);
}