Repository navigation
Add i18n support for dark/light mode menu - #2482
Merged
Merged
Conversation
tcrouch
force-pushed
the
ui_theme_i18n
branch
2 times, most recently
from
July 27, 2026 15:06
7ca93dd to
6371083
Compare
chalin
approved these changes
Aug 27, 2026
chalin
left a comment
Collaborator
There was a problem hiding this comment.
LGTM, thanks @tcrouch.
Validated the labels against Starlight's themeSelect.* and Hextra's locale catalogs: 19 of 22 overlapping locales match Starlight exactly or near-exactly (Docsy spells out "automatic" where Starlight clips to "Auto"). Word-choice divergences, none of them errors:
fa: تاریک here vs Starlight's تیره; synonyms for "dark".hi: adjectives (हल्का/गहरा) here vs Starlight's literal nouns; the adjectives arguably fit a mode label better.ko: transliterations (라이트/다크, iOS-style) here vs Starlight/Hextra's spelled-out 밝은/어두운 테마 (Android-style); both attested.ro: Luminoasă here vs Starlight's Deschisă; both feminine, both in use.
Feedback on any of the wording is still welcome: comment here or send a follow-up PR.
This was referenced Aug 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Light/Dark/Autolabels in the theme-toggler menu withui_theme_*i18n lookups, so that sites can localize or override them without forking the partialaria-labels and hidden toggle text remain hardcoded English; screen-reader localization is a follow-up