Skip to content

docs(rfc-i18n): LABELLE_LOCALE takes an exact tag, not the device-language matching - #911

Merged
leonardomag31-lab merged 1 commit into
mainfrom
docs/rfc-i18n-labelle-locale-exact
Oct 12, 2026
Merged

leonardomag31-lab merged 1 commit into
mainfrom
docs/rfc-i18n-labelle-locale-exact

Conversation

@leonardomag31-lab

@leonardomag31-lab leonardomag31-lab commented Sep 29, 2026 •

Copy link
Copy Markdown
Collaborator

One-line fix to RFC-I18N §8, item 3. Since labelle-assembler 8faf2c1 (labelle-assembler#753), LABELLE_LOCALE only accepts an exact shipped tag (the generated ensureEnvLocale calls setLocale(raw)). The matchLocale language fallback is for the device language only. The RFC still said the env var "goes through the same matching".

Flagged by Alexandre in the #917 handoff (Flying-Platform card frgjL7Nk).

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

…guage matching

Since labelle-assembler 8faf2c1 (#753) the env override only accepts an
exact shipped tag; the language fallback is for the device language. §8
still said LABELLE_LOCALE went through the same matching.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Sep 29, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 10618faf-e2cb-4645-8136-c4d3d350771b


Comment @coderabbitai help to get the list of available commands.

@apotema apotema left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the RFC correction against the generated i18n implementation. LABELLE_LOCALE uses setLocale and accepts a shipped tag (case-insensitive); device-language detection alone uses matchLocale and its language fallback. No findings. Ubuntu and Windows CI passed. This documentation-only change needs no additional runtime tests.

@leonardomag31-lab
leonardomag31-lab merged commit aad48cb into main Oct 12, 2026
4 checks passed
@leonardomag31-lab
leonardomag31-lab deleted the docs/rfc-i18n-labelle-locale-exact branch October 12, 2026 20:37
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.

2 participants