fix(i18n): harden owner localized forms

This commit is contained in:
poyrazavsever
2026-07-21 13:37:53 +03:00
parent 1227588320
commit 1653e4f61d
9 changed files with 25 additions and 34 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
import assert from "node:assert/strict";
import { readFileSync } from "fs";
import { join } from "path";
import { compareCatalogKeys, I18N_NAMESPACES } from "../lib/i18n";
import { compareCatalogKeys } from "../lib/i18n";
import { trCatalog } from "../locales/tr";
import { enCatalog } from "../locales/en";
@@ -24,7 +24,7 @@ for (const page of authPages) {
assert.equal(content.includes("resolvePublicLocale"), true, `${page} missing resolvePublicLocale`);
}
const result = compareCatalogKeys(trCatalog as any, enCatalog as any, ["auth"]);
const result = compareCatalogKeys(trCatalog, enCatalog, ["auth"]);
const authMissingInEn = result.missingInRight.filter((k: string) => k.startsWith("auth."));
const authMissingInTr = result.missingInLeft.filter((k: string) => k.startsWith("auth."));