mirror of
https://github.com/lWolvesl/antigravity-usage-monitor.git
synced 2026-11-27 01:19:25 +08:00
feat(panel): add Antigravity host UI localization and language packs
- Add standalone host-i18n language pack manager with GitHub/jsDelivr download, SHA-256 integrity checks, offline light/deep tier switching, and lossless DOM translation over the CDP window bridge - Add Settings -> General host interface language controls, untranslated UI string collector, and loopback-only /api/host-i18n endpoints - Include zh-CN layered language pack assets and source/audit/build scripts under host-i18n/ while keeping the Release ZIP runtime whitelist isolated
This commit is contained in:
@@ -1136,13 +1136,15 @@ test('P1 audit fixes: shared third-party pool & route single-source, pure frozen
|
||||
|
||||
assert.equal(normalizeI18nLanguage('system'), 'auto');
|
||||
assert.equal(typeof isEquivalentTelemetry, 'function');
|
||||
assert.equal(BRIDGE_API_ROUTE_DEFS.length, 15);
|
||||
assert.equal(BRIDGE_API_ROUTE_DEFS.length, 17);
|
||||
assert.ok(BRIDGE_API_ROUTE_DEFS.some((r) => r.path === '/api/bridge/relaunch'));
|
||||
assert.ok(BRIDGE_API_ROUTE_DEFS.some((r) => r.path === '/api/session-migration/catalog'));
|
||||
assert.ok(BRIDGE_API_ROUTE_DEFS.some((r) => r.path === '/api/session-migration/migrate'));
|
||||
assert.ok(BRIDGE_API_ROUTE_DEFS.some((r) => r.path === '/api/export-file'));
|
||||
assert.ok(BRIDGE_API_ROUTE_DEFS.some((r) => r.path === '/api/reveal-file'));
|
||||
assert.ok(BRIDGE_API_ROUTE_DEFS.some((r) => r.path === '/api/quota-reservation/log'));
|
||||
assert.ok(BRIDGE_API_ROUTE_DEFS.some((r) => r.path === '/api/host-i18n' && r.method === 'GET'));
|
||||
assert.ok(BRIDGE_API_ROUTE_DEFS.some((r) => r.path === '/api/host-i18n' && r.method === 'POST'));
|
||||
|
||||
// 1. Third-party pool parity across backend, CLI statusline, and frontend metricRegistry
|
||||
const h = backendHarness();
|
||||
|
||||
Reference in New Issue
Block a user