mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
test(i18n): prove iOS discovery catalog ownership
This commit is contained in:
@@ -68,6 +68,29 @@ describe("Apple app i18n catalogs", () => {
|
||||
expect(APPLE_I18N_LOCALES).toEqual(NATIVE_I18N_LOCALES);
|
||||
});
|
||||
|
||||
it("derives shared discovery status coverage into the iOS catalog", async () => {
|
||||
const inventory = JSON.parse(await readFile("apps/.i18n/native-source.json", "utf8")) as {
|
||||
entries: Array<{
|
||||
id: string;
|
||||
kind: string;
|
||||
line: number;
|
||||
path: string;
|
||||
source: string;
|
||||
surface: string;
|
||||
}>;
|
||||
version: number;
|
||||
};
|
||||
const build = buildIosCatalog(
|
||||
{ sourceLanguage: "en", strings: {}, version: "1.0" },
|
||||
inventory,
|
||||
[],
|
||||
);
|
||||
|
||||
expect(Object.keys(build.catalog.strings ?? {})).toEqual(
|
||||
expect.arrayContaining(["Searching…", "Stopped", "Waiting"]),
|
||||
);
|
||||
});
|
||||
|
||||
it("derives broad macOS catalog coverage from the native source inventory", async () => {
|
||||
const inventory = JSON.parse(await readFile("apps/.i18n/native-source.json", "utf8")) as {
|
||||
entries: Array<{
|
||||
|
||||
Reference in New Issue
Block a user