fix(i18n): guard locale bootstrap and refresh shell cache

This commit is contained in:
Codex committed 2026-09-28 09:38:43 +09:00
1 parent 9c571b5f9c
commit 0cd7211ca2
7 files changed
+13 -10

No files matched your search

+3
View File
@@ -40,6 +40,9 @@ assert.match(source, /id==='system'\)window\.systemApp\(c\)/);
assert.match(source, /id==='today'\)window\.today\(c\)/);
assert.match(assets.i18nJs, /window\.setLanguage = setLanguage/);
assert.match(assets.i18nRenderersJs, /window\.renderAll\(\)/);
assert.match(assets.indexHtml, /setTimeout\(\(\)=>window\.applyLanguage\?\.\(\),0\)/, "missing locale UI code cannot abort desktop initialization");
assert.ok(assets.indexHtml.indexOf('src="i18n-renderers.js?v=1.5.5"') < assets.indexHtml.lastIndexOf("window.init()"), "locale renderers load before desktop initialization");
for (const script of [assets.i18nJs, assets.tasksJs, assets.calendarJs, assets.i18nRenderersJs, assets.addonsJs]) new vm.Script(script);
assert.doesNotMatch(source, /Version 0\.1|Schema v1/);
const makeStorage = initial => {
const values = new Map(Object.entries(initial || {}));