i18n: scaffold panel.* and ui.* locale catalogs, wire panelCatalogs into officerdev's barrel

This commit is contained in:
2026-08-23 03:42:53 +00:00
parent dcd11a3b17
commit 6ac9187c52
14 changed files with 76 additions and 2 deletions
@@ -0,0 +1,12 @@
import { describe, expect, test } from 'bun:test';
import { findMissingKeys } from 'i18n';
import en from './en-GB.json';
import ptPT from './pt-PT.json';
// D2: every shipped locale ships a COMPLETE catalog. Phase 0 scaffolds this catalog with no keys yet
// (ui.* strings land in phase 1) — the test still runs so it is load-bearing from day one.
describe('shared components (ui.*) locale catalogs', () => {
test('pt-PT has every key en-GB has', () => {
expect(findMissingKeys(en, { 'pt-PT': ptPT })).toEqual([]);
});
});