i18n: re-render visible dynamic views on language switch
translatePage() only rewrites static [data-l10n] elements, so labels built at render time (Check card/Edit/Export/Delete, Open, Remove, Send, ...) stayed in the old language. toggleLang() now calls refreshDynamicI18n(), which re-renders only the visible dynamic views: - profiler sub-tab: current view (list, snapshot list, editor, results via the new profilerRenderResultsView with profilerResults stored, snapshot via profilerRenderSnapshotData which leaves the name input alone) - open scan modal: profilerScanRefreshOptions re-translates the mask labels without touching checkbox state - cards table (cardsRender), proactive events/log/PLI (async, only when the sub-tab is visible) Also removed the duplicated translatePage() call in toggleLang. New test for profilerScanRefreshOptions. SW cache v83 -> v84.
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
const CACHE = 'otaman-v83';
|
||||
const CACHE = 'otaman-v84';
|
||||
const URLS = [
|
||||
'index.html',
|
||||
'help.html',
|
||||
|
||||
Reference in New Issue
Block a user