Skip to content

Display language names in own language#3729

Open
andreia-ferreira wants to merge 7 commits into
masterfrom
andreia/3379/show-language-in-own-names
Open

Display language names in own language#3729
andreia-ferreira wants to merge 7 commits into
masterfrom
andreia/3379/show-language-in-own-names

Conversation

@andreia-ferreira
Copy link
Copy Markdown
Collaborator

@andreia-ferreira andreia-ferreira commented May 11, 2026

Fixes #3379

Moved the languages to the untranslated strings, in order to display their names in their native language. Also updated the settings page to show icons for each setting in order to improve discoverability.

image image

@shobhitagarwal1612 PTAL?

@codecov
Copy link
Copy Markdown

codecov Bot commented May 11, 2026

Codecov Report

❌ Patch coverage is 50.00000% with 22 lines in your changes missing coverage. Please review.
✅ Project coverage is 68.02%. Comparing base (19bdde7) to head (390395e).

Files with missing lines Patch % Lines
...droid/ui/settings/components/SettingsSwitchItem.kt 42.85% 12 Missing ⚠️
...orm/android/ui/settings/components/SettingsItem.kt 47.05% 7 Missing and 2 partials ⚠️
...droid/ui/settings/components/SettingsSelectItem.kt 50.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #3729      +/-   ##
============================================
- Coverage     68.06%   68.02%   -0.05%     
+ Complexity     1609     1608       -1     
============================================
  Files           370      370              
  Lines          9513     9550      +37     
  Branches       1238     1240       +2     
============================================
+ Hits           6475     6496      +21     
- Misses         2360     2377      +17     
+ Partials        678      677       -1     
Files with missing lines Coverage Δ
...oundplatform/android/ui/settings/SettingsScreen.kt 53.22% <100.00%> (+3.22%) ⬆️
...droid/ui/settings/components/SettingsSelectItem.kt 71.05% <50.00%> (-1.17%) ⬇️
...orm/android/ui/settings/components/SettingsItem.kt 60.71% <47.05%> (+0.71%) ⬆️
...droid/ui/settings/components/SettingsSwitchItem.kt 59.45% <42.85%> (-8.97%) ⬇️

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

internal fun SettingsItem(title: String, summary: String? = null, onClick: () -> Unit) {
internal fun SettingsItem(
modifier: Modifier = Modifier,
@DrawableRes trailingIcon: Int,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Consider renaming this parameter for clarity as the position is not at the end.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch, renamed it 👍

Comment on lines +65 to +66
Modifier.padding(end = MaterialTheme.sizes.settingsTrailingIconEndPadding)
.size(MaterialTheme.sizes.settingsTrailingIconSize),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as previous comment, consider renaming the dimensions.

contentDescription = null,
tint = MaterialTheme.colorScheme.onSurfaceVariant,
)
Column {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: We dropped Modifier.weight(1f) from column. Is this intentional?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it was removed by mistake, added it again, thanks

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.

[Settings] Show language names in their own language (e.g., Español not Spanish)

2 participants