Repository navigation
feat(settings): add a Language setting - #82
Merged
Merged
Conversation
Tarquinen
force-pushed
the
feat-language-setting
branch
from
November 15, 2026 04:04
bed9c6e to
68b5d82
Compare
Settings › Preferences gets a Language row, after Appearance. It opens a list with a search field, System Default (the system language under it), Suggested (the phone's languages the app supports, in system order) and All Languages: every language the app is translated into, each named in itself, with a check on the current one. Search matches a language's own name, its name in the app's language, its English name or its tag, ignoring case and accents, and hides System Default and Suggested. Choosing sets the app's language through Android's per-app language setting (LocaleManager), so it matches Settings › Apps › OpenCode › Language both ways; System Default clears it. The languages come from the generated LocaleConfig. Chinese is named by script (简体中文, 繁體中文). unqualifiedResLocale is now en instead of en-US, so English is listed as "English" here and in Android's language screen. iOS has no language setting; noted as Android-only in docs/parity/settings.md. Verified: scripts/check.sh (full) on the VM; translate.py all and translations.py all. On the emulator: switched to Deutsch, 日本語, Português (Brasil) and back to System Default; stays on the Language page after the recreation, back returns to Settings and the session with its composer draft and connection kept; Android's App language screen shows the same choice, and changing it there updates the row; light, dark and 2.0 font scale; rows are 56 dp radio buttons with checked state. Search found German by "German", "Deutsch", "de" and "Allemand" (app in French), "pt-BR" found Português (Brasil), "zzz" showed the empty state, and back closes the keyboard, then the page. With English and German as system languages, both show under Suggested in that order. scripts/check.sh :feature:settings after the search and Suggested changes.
Tarquinen
force-pushed
the
feat-language-setting
branch
from
November 15, 2026 04:20
68b5d82 to
965b134
Compare
Merged
This branch was previously deployed
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.
Adds a Language row to Settings, after Appearance. It opens a list: System Default (with the system language under it), then every language the app is translated into, each written in its own language. Picking one switches the app right away and stays on the page. It's the same setting as Android's per-app language (Settings › Apps › OpenCode › Language), so the two always match.
As on Android's App language screen, the list has a search field (by the language's own name, its name in the app's language, its English name or its tag) and a Suggested group with the phone's languages.
English is now listed as "English" rather than "English (United States)", here and in Android's screen.
Verified with the full
scripts/check.sh, and on the emulator: switched to Deutsch, 日本語, Português (Brasil) and back. The draft, connection and back navigation survive the switch, and changes made in Android's screen show up in the app. Checked in light, dark and large font.