Skip to content

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

Open
boombertz wants to merge 1 commit into
momenbasel:mainfrom
boombertz:fix/appearance-name-localization
Open

fix(l10n): apply appearance name localization in MainWindow#146
boombertz wants to merge 1 commit into
momenbasel:mainfrom
boombertz:fix/appearance-name-localization

Conversation

@boombertz

Copy link
Copy Markdown

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.
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