Skip to content

i18n: check language change success message - #2205

Merged
NickeZ merged 1 commit into
BitBoxSwiss:masterfrom
nickez-agent:nickez-agent/fix-language-status-clippy
Nov 12, 2026
Merged

NickeZ merged 1 commit into
BitBoxSwiss:masterfrom
nickez-agent:nickez-agent/fix-language-status-clippy

Conversation

@nickez-agent

Copy link
Copy Markdown
Contributor

The success message shown after changing the device language bypasses the checked translation macros, causing lint-src to fail with clippy::disallowed_methods.

Use bitbox_i18n::tr! to validate the message against the catalog at compile time. The displayed text and language selection remain unchanged.

The direct translation call for the language change success message is
rejected by the i18n Clippy rules, causing CI to fail.

Use the checked translation macro to validate the message against the
catalog at compile time. The displayed text and language selection remain
unchanged.
@NickeZ
NickeZ requested a review from sutterseba November 12, 2026 12:15
@NickeZ
NickeZ merged commit b38873c into BitBoxSwiss:master Nov 12, 2026
53 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.

3 participants