Loading...

Locale URLs name the English file

AGENTS.md and proposed

point `localesPath` at `new URL("./locales/<tag>.en.json", import.meta.url).href + "/../"` (from `lib/`, `../locales/<tag>.en.json`), for both `registerLocalization` and the `i18n-manager-register-element` event. Never `new URL("./locales/", ...)` (the folder) or a language file the element does not commit: bundlers using `@web/rollup-plugin-import-meta-assets` fail on both (EISDIR / ENOENT). The `"/../"` lands back on `locales/`, so the runtime fetch is the same. `yarn lint:locale-urls` checks it in `yarn precheck` and CI (haxtheweb/issues#3402). In the AGENTS.md of components. Enforced by Locale URLs point at a shipped locale file. Partly. Template lint's locale-url check fails the pull request when new URL() for locales names the locales/ folder or a file that doesn't ship; that it is the English file is checked in review.

Connects to

Links