Skip to content

[LA-36685] Document missing supported language codes#52

Merged
tejanium merged 1 commit into
mainfrom
LA-36685/document-supported-language-codes
Jun 8, 2026
Merged

[LA-36685] Document missing supported language codes#52
tejanium merged 1 commit into
mainfrom
LA-36685/document-supported-language-codes

Conversation

@tejanium

@tejanium tejanium commented Jun 8, 2026

Copy link
Copy Markdown

Jira

LA-36685

What

Adds five locales that the public API already accepts on the `language` field but were missing from the Supported Language Codes table in `_users.md`:

Code Language
`es` Spanish
`no` Norwegian
`sv` Swedish
`da` Danish
`sk` Slovak

Each is inserted in its existing position in `I18n.available_locales` (`config/initializers/1_locale.rb`), so the documented table now matches the app's locale whitelist exactly (25 codes).

Why

The table claims to be the authoritative list of values the `language` field accepts on the Create/Update User endpoints, but these five are fully-translated, first-class locales in the app — they were simply overlooked (note `es-CO` Colombian Spanish was listed while plain `es` was not). Customers integrating against the API had no documented way to know `es`/`no`/`sv`/`da`/`sk` were valid.

Follows on from the Cezanne locale work (LA-36685): it covers the Danish (`da-DK` → `da`) and Norwegian Bokmål (`nb-NO` → `no`) cases from the recent locale request; Hungarian (`hu`) and Polish (`pl`) were already documented. Catalan (`ca-ES`) is intentionally not added — the app has no Catalan locale, so that needs platform work, not a docs change.

Screenshots

n/a — Markdown table change only.


Note

Low Risk
Markdown-only documentation update with no runtime or API changes.

Overview
Updates the Supported Language Codes table in _users.md so it lists five locales the Create/Update User language field already accepts but were omitted from the docs: es, no, sv, da, and sk. Rows are placed in the same order as the app’s locale list so the table matches the full set of valid codes (25 total).

No API or validation behavior changes—documentation only for integrators who rely on this table as the authoritative list.

Reviewed by Cursor Bugbot for commit ec8c589. Bugbot is set up for automated code reviews on this repo. Configure here.

@tejanium tejanium marked this pull request as ready for review June 8, 2026 16:01
@tejanium tejanium merged commit d89a45c into main Jun 8, 2026
2 checks passed
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