Skip to content

Commit

Permalink
render the selected filter language using the current app language
Browse files Browse the repository at this point in the history
  • Loading branch information
frett committed Oct 19, 2023
1 parent 4b09aaa commit 705d279
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ private fun LanguageFilter(viewModel: ToolsViewModel, modifier: Modifier = Modif
) {
val language by viewModel.selectedLanguage.collectAsState()
Text(
language?.getDisplayName(context) ?: stringResource(R.string.dashboard_tools_section_filter_language_any),
text = language?.getDisplayName(context, LocalAppLanguage.current)
?: stringResource(R.string.dashboard_tools_section_filter_language_any),
maxLines = 1,
overflow = TextOverflow.Ellipsis,
modifier = Modifier.weight(1f)
Expand Down

0 comments on commit 705d279

Please sign in to comment.