Skip to content

docs(i18n): clarify locale_names vs language_picker overlap#1723

Merged
davidpoblador merged 1 commit into
mainfrom
worktree-agent-aa2940a893d586058
Apr 28, 2026
Merged

docs(i18n): clarify locale_names vs language_picker overlap#1723
davidpoblador merged 1 commit into
mainfrom
worktree-agent-aa2940a893d586058

Conversation

@davidpoblador

Copy link
Copy Markdown
Member

Summary

  • locale_names (locale-independent native names) and language_picker() (names in the active display locale) overlap but solve different problems. Soft-clarify the distinction without removing or runtime-deprecating either.
  • Add a docstring note on the locale_names computed field pointing callers at language_picker() for native-from-single-source or current-locale rendering.
  • Add a "When to use which" subsection to the i18n template-context block in development-guide.md.
  • Mirror the guidance in llms-full.txt.

No runtime behavior changes; locale_names stays in the Context model.

Test plan

  • uv run python -m pytest tests/unit/ -q (773 passed)
  • just lint-py
  • just lint-md
  • just type-check

🤖 Generated with Claude Code

`locale_names` (locale-independent native names) and `language_picker()`
(names in the active display locale) overlap but solve different problems.
Document the distinction in the `locale_names` docstring, the i18n
template-context section of the development guide, and llms-full.txt.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@davidpoblador davidpoblador merged commit 87733bd into main Apr 28, 2026
2 checks passed
@davidpoblador davidpoblador deleted the worktree-agent-aa2940a893d586058 branch April 28, 2026 09:16
davidpoblador pushed a commit that referenced this pull request Apr 28, 2026
🤖 I have created a release *beep* *boop*
---


##
[10.8.0](v10.7.0...v10.8.0)
(2026-04-28)


### Features

* add BrandSettings env-var surface for favicon and email branding
([#1720](#1720))
([3d22717](3d22717))
* i18n primitives for per-tenant locale flows
([#1718](#1718))
([177fe5e](177fe5e))


### Bug Fixes

* restore gettext plural-form support in lint-po
([#1725](#1725))
([fe0dacb](fe0dacb))
* **template:** scope babel.cfg python extraction to src/
([#1722](#1722))
([b729964](b729964))
* theme default screens with DaisyUI semantic tokens
([#1714](#1714))
([4467168](4467168))


### Performance Improvements

* **testing:** share MongoDB across vibetuner_db tests
([#1726](#1726))
([c9064e4](c9064e4))


### Miscellaneous Chores

* **py:** use PEP 639 SPDX license expression
([#1727](#1727))
([855f9f4](855f9f4))


### Documentation Updates

* **i18n:** clarify locale_names vs language_picker overlap
([#1723](#1723))
([87733bd](87733bd))
* **template:** document i18n primitives in scaffolded agent rules
([#1724](#1724))
([27a3b98](27a3b98))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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