fix(i18n): expose redraw hooks to locale controller

This commit is contained in:
Codex committed 2026-09-28 10:26:59 +09:00
1 parent 8cf3a35b6f
commit e98cd2b7ce
7 files changed
+13 -11

No files matched your search

+2 -1
View File
@@ -43,7 +43,8 @@ assert.match(assets.i18nRenderersJs, /window\.renderAll\(\)/);
assert.match(assets.indexHtml, /setTimeout\(\(\)=>window\.applyLanguage\?\.\(\),0\)/, "missing locale UI code cannot abort desktop initialization");
assert.doesNotMatch(assets.indexHtml, /setTimeout\(applyLanguage\s*,/);
assert.doesNotMatch(assets.addonsJs, /(?<![\w.])applyLanguage\s*\(/, "add-on actions must not call a missing global locale function");
assert.ok(assets.indexHtml.indexOf('src="i18n-renderers.js?v=1.5.6"') < assets.indexHtml.lastIndexOf("window.init()"), "locale renderers load before desktop initialization");
assert.match(assets.indexHtml, /window\.renderIcons=renderIcons;window\.renderAll=renderAll/, "shared renderers are explicitly exposed to locale scripts");
assert.ok(assets.indexHtml.indexOf('src="i18n-renderers.js?v=1.5.7"') < 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 => {