Skip to content

fix(l10n): apply appearance name localization in MainWindow - #146

Merged
momenbasel merged 1 commit into
momenbasel:mainfrom
boombertz:fix/appearance-name-localization
Aug 10, 2026
Merged

momenbasel merged 1 commit into
momenbasel:mainfrom
boombertz:fix/appearance-name-localization

Conversation

@boombertz

Copy link
Copy Markdown
Contributor

The appearance name (System/Light/Dark) was rendered via Text(String) and Label(String, systemImage:), which use the non-localizing initializers. As a result the existing "System"/"Light"/"Dark" translations were never applied and the labels always showed English.

Wrap the values in LocalizedStringKey (matching AppearancePill) at the menu item, the sidebar value, and the accessibility value so they localize correctly.

The appearance name (System/Light/Dark) was rendered via Text(String)
and Label(String, systemImage:), which use the non-localizing
initializers. As a result the existing "System"/"Light"/"Dark"
translations were never applied and the labels always showed English.

Wrap the values in LocalizedStringKey (matching AppearancePill) at the
menu item, the sidebar value, and the accessibility value so they
localize correctly.
@momenbasel

Copy link
Copy Markdown
Owner

Reviewed and merging. The bug is real and I verified it rather than taking it on inspection: Text(appearance.label) where label is a String binds the StringProtocol overload, so the value is stored verbatim and never goes through the bundle lookup. The existing "System"/"Light"/"Dark" translations were dead. Same for Label(_:systemImage:) at line 353.

Thanks for catching all three sites, including .accessibilityValue — that one is easy to miss.

One note so it does not get miscredited later: this does not fix #141. That issue is a different mechanism (inherited vibrant label style resolving transparent, same class as #117), so I am keeping it open.

@momenbasel
momenbasel merged commit 7e0a6fe into momenbasel:main Aug 10, 2026
momenbasel added a commit that referenced this pull request Aug 10, 2026
2.9.5 removed Universal Binaries and Language Files from `scannable`, but the
sidebar and the dashboard's Care areas built their lists from hardcoded
arrays rather than from `scannable`, so both categories stayed visible while
never returning results.

Both lists now filter through `scannable`, so anything withdrawn there
disappears from the UI instead of becoming a dead row or a permanent zero in
the Developer count.

2.9.5 was tagged and built but its formula bump failed to push, so no cask
ever pointed at it. This supersedes it and also carries the Russian and
Ukrainian localizations (#130) and the appearance-name localization fix
(#146), neither of which was in the 2.9.5 build.

Claude-Session: https://claude.ai/code/session_01Sw6fz8gtn7j2U17kA2U7VE
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