Skip to content

feat(rules): add i18n/locale-mixing rule (repo#1359) - #1951

Merged
nc9 merged 2 commits into
mainfrom
boat/locale-mixing-1359
Nov 16, 2026
Merged

nc9 merged 2 commits into
mainfrom
boat/locale-mixing-1359

Conversation

@nc9

@nc9 nc9 commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

Adds i18n/locale-mixing (page scope, warning): flags US and UK spellings mixed on one page, day-first plus month-first dates (fail), and bare $ beside USD/CAD/AUD/NZD amounts, plus lang-vs-spelling mismatches (en-US with UK spellings, en-GB/AU/NZ/IE/IN/ZA with US). Pages declaring a non-English lang (multilingual sites with hreflang) are skipped.

Acceptance criteria

  • Rule flags spellings, dates, currency: packages/rules/tests/locale-mixing-1359.test.ts (14 pass)
  • Keyed off html lang, en-GB with UK spellings alone not flagged: same file
  • Other-locale pages skipped: same file (skipped case)
  • Pass, warn, fail, skipped and no-false-positive fixture covered; docs page, README and docs/index.mdx category tables, i18n and rules hubs, docs.json nav and CHANGELOG updated; stated counts are "300+" so unchanged; template-invariance fixture updated.

Gates: packages/rules typecheck (src and tests) pass; docs-category-table, docs-index-rule-counts, docs-rule-pages 54 pass; rule-verdict-scope and template-fanout-parity-golden 413 pass; cli lint and format:check pass; docs make validate pass (62 pass).

Agent skill: no change needed.

@nc9
nc9 force-pushed the boat/locale-mixing-1359 branch from 50f4af1 to 144ca59 Compare November 16, 2026 06:47
@nc9
nc9 marked this pull request as ready for review November 16, 2026 07:06
@nc9
nc9 force-pushed the boat/locale-mixing-1359 branch from 144ca59 to d004d10 Compare November 16, 2026 07:46
@nc9
nc9 merged commit 1abac37 into main Nov 16, 2026
16 checks passed
@nc9
nc9 deleted the boat/locale-mixing-1359 branch November 16, 2026 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant