Skip to content

core(config): support declarative locales in Config and ConfigPlugin - #17468

Merged
connorjclark merged 1 commit into
mainfrom
i18n/config-locales
Oct 28, 2026
Merged

connorjclark merged 1 commit into
mainfrom
i18n/config-locales

Conversation

@connorjclark

Copy link
Copy Markdown
Collaborator

Summary
Part 2 of #9296 (stacked on #17467):

  • Adds optional locales property (Partial<Record<LH.Locale, Record<string, {message: string}>>>) to LH.Config and LH.Config.Plugin.
  • Parses and validates locales in ConfigPlugin.parsePlugin.
  • Merges plugin locales with config locales in mergePlugins (with config.locales taking precedence on colliding message IDs).
  • Registers configWorkingCopy.locales via format.registerLocaleData during initializeConfig.
  • Documents locales in docs/configuration.md and docs/plugins.md.

Related Issues/PRs
Depends on #17467
Fixes #9296

@connorjclark
connorjclark requested a review from a team as a code owner October 28, 2026 20:20
@connorjclark
connorjclark requested review from paulirish and removed request for a team October 28, 2026 20:20
@connorjclark
connorjclark added this pull request to stack #17469 October 28, 2026 20:20
Base automatically changed from i18n/register-locale-data to main October 28, 2026 20:34
@connorjclark
connorjclark merged commit 772c9e2 into main Oct 28, 2026
37 checks passed
@connorjclark
connorjclark deleted the i18n/config-locales branch October 28, 2026 20:45

This branch was successfully deployed

1 active deployment
Preview — a52e1fa3 Deployed Oct 28, 2026 by vercel[bot]
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.

Providing i18n translations for (custom) audits

1 participant