Skip to content

fix(i18n): localize setup flow selectors - #240

Merged
kwschulz merged 1 commit into
solentlabs:feature/v3.14.15-beta.11from
jepharaujo:fix/localize-setup-selectors
Nov 30, 2026
Merged

kwschulz merged 1 commit into
solentlabs:feature/v3.14.15-beta.11from
jepharaujo:fix/localize-setup-selectors

Conversation

@jepharaujo

Copy link
Copy Markdown
Contributor

Description

The setup flow showed English labels in four selectors even when Home Assistant was set to another language. This adds Home Assistant translation keys for the manufacturer picker, entity prefix, channel naming, and auto-detect confirmation, and adds the option labels to all 12 existing catalogs.

The two temporary manufacturer choices use valid translation keys. Names taken from the manufacturer catalog retain their original labels. The setup help now matches the displayed options. The translation checker covers selectors, and the translation guide explains how to add them.

Related

Related to #239

Testing

  • Home Assistant 2025.1 and 2026.11 suites passed with 1,536 tests each. Config flow tests exercised localized selector labels and the fallback for catalog manufacturer names.
  • The Core rerun passed all 4,173 tests. The first aggregate run hit an intermittent HNAP fixture TCP reset that also reproduced on unchanged main. No Core files changed.
  • Catalog and Catalog Tools passed. The official checks passed in separate runs, with 9,785 tests passed and three skipped across the suites.
  • No physical modem was used.

Home Assistant 2026.11.3 screenshots

In a local pt-BR setup flow, the manufacturer choices became “Todos” and “Detectar automaticamente”, while catalog names such as Arris stayed the same. The model screen showed the localized prefix and channel choices. The setup was stopped before auto-detection or connection to a modem.

Step Before After
Manufacturer English manufacturer choices Portuguese manufacturer choices
Model and channel English prefix and channel choices Portuguese prefix and channel choices

Checklist

OpenAI Codex assisted with implementation, translation, testing, and review.

@jepharaujo
jepharaujo requested a review from kwschulz as a code owner November 30, 2026 03:40
@codecov

codecov Bot commented Nov 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@kwschulz
kwschulz changed the base branch from main to feature/v3.14.15-beta.11 November 30, 2026 12:18
@kwschulz

Copy link
Copy Markdown
Collaborator

Thanks Jeferson, this looks really good. The screenshots and the help text test are a nice touch.

One thing before I merge: I merged #239 into feature/v3.14.15-beta.11 and pointed this PR at that branch, so it now conflicts in pt-BR.json. Could you rebase onto feature/v3.14.15-beta.11 and keep your version of the three channel_identity lines? Nothing else conflicts.

I noticed the variant labels and the no match page text aren't in this PR, which is fine. Did you mean to leave them out, or are you planning a separate PR for them?

@jepharaujo
jepharaujo force-pushed the fix/localize-setup-selectors branch from 4a4eb51 to ba4905f Compare November 30, 2026 13:51
@jepharaujo

Copy link
Copy Markdown
Contributor Author

Thanks, Ken. I rebased the PR onto feature/v3.14.15-beta.11 and kept the three Portuguese channel_identity descriptions. The variant labels and no-match text were left out intentionally to keep this PR focused on the agreed setup selectors.

@kwschulz
kwschulz merged commit 18a95ab into solentlabs:feature/v3.14.15-beta.11 Nov 30, 2026
5 checks passed
@kwschulz

Copy link
Copy Markdown
Collaborator

Thanks Jeferson. Merged into the beta branch. I appreciate your help!

kwschulz added a commit that referenced this pull request Nov 30, 2026
The "Project config changed" repair issue and its fix step are
translated in all 11 languages, using each file's existing terms for
custom config and its submit button. issues joins the checker's
translated scope, and the snapshot gains its four English strings.

Two tests guard the code side, where #239's labels hid: a setup
dropdown needs a translation_key with strings, unless it is filled
from catalog data, and no option label is an English literal; and
code passes exactly the placeholders its strings use, the shape
7407d11 fixed. The checker also rejects a key English no longer has.

TRANSLATION_GUIDE gains a map of how translation fits together, the
runtime rules Home Assistant applies, the scope and its entity-ID
reason, complete steps for adding a language, local hassfest, and
pt-BR glossary rows for the option names from #239 and #240.
CONTRIBUTING points to those steps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.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.

2 participants