diff --git a/src/app/__tests__/i18n-boot-script-strategy.test.ts b/src/app/__tests__/i18n-boot-script-strategy.test.ts new file mode 100644 index 000000000..b736ab720 --- /dev/null +++ b/src/app/__tests__/i18n-boot-script-strategy.test.ts @@ -0,0 +1,47 @@ +import { describe, it, expect } from "vitest"; +import { readFileSync } from "node:fs"; +import { join } from "node:path"; + +/** + * Root layout — i18n boot-script ordering pin. + * + * The locale catalog is a ~370 KB separate asset, and the client bundle + * needs it in hand for its FIRST render or `t()` resolves raw keys against + * the server's real text (React error #418, plus a visible frame of + * `nav.skipToContent` before the provider backfills). + * + * A plain `