Machine translation rendered the abbreviation "PR" (pull request) as "relaciones públicas" (public relations) across 32 Spanish UI strings — e.g. "Reabrir relaciones públicas" (Reopen PR), "Crear relaciones públicas" (Create PR), "Abrir cheques de relaciones públicas" (Open PR checks). Adds the missing `es` rule to LOCALE_PHRASE_FIXES. Because "relaciones públicas" is a real Spanish phrase (unlike the CJK-only ko/zh patterns 홍보/公关), the rule guards on the actual `PR`/`PRs` token via a new optional `whenEnMatches` RegExp guard in applyPhraseFixes, so it never fires on unrelated English that merely contains a "pr" substring (approve, preview, press). `whenEnMatches` is backward compatible — existing `whenEnIncludes` rules are unchanged. Regenerates the 32 affected es.json leaves. Adds a vitest spec covering the rewrites and a negative case proving the token guard ignores genuine "public relations" strings. |
||
|---|---|---|
| .. | ||
| patches | ||
| scripts | ||
| dev-app-update.yml | ||
| electron-builder.config.cjs | ||
| localization-audit.md | ||
| localization-coverage-allowlist.json | ||
| oxlint-react-doctor.json | ||
| oxlint-switch-exhaustiveness.json | ||
| packaged-runtime-node-modules.cjs | ||
| tsconfig.cli.json | ||
| tsconfig.node.json | ||
| tsconfig.relay.json | ||
| tsconfig.tc.cli.json | ||
| tsconfig.tc.web.json | ||
| tsconfig.web.json | ||
| vitest.config.ts | ||