Skip to content

Commit

Permalink
fix: add more translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Malopieds committed Jun 28, 2024
1 parent 810280d commit 9476b1b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ fun HomeScreen(

if (youtubePlaylists?.isNotEmpty() == true) {
NavigationTitle(
title = "Your Youtube playlists",
title = stringResource(R.string.your_ytb_playlists),
onClick = {
navController.navigate("account")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ fun TopPlaylistScreen(
onDismiss = { showRemoveDownloadDialog = false },
content = {
Text(
text = stringResource(R.string.remove_download_playlist_confirm, "My Top Playlist"),
text = stringResource(R.string.remove_download_playlist_confirm, stringResource(R.string.my_top) + " Playlist"),
style = MaterialTheme.typography.bodyLarge,
modifier = Modifier.padding(horizontal = 18.dp)
)
Expand Down Expand Up @@ -225,7 +225,7 @@ fun TopPlaylistScreen(
verticalArrangement = Arrangement.Center,
) {
AutoResizeText(
text = "My Top " + maxSize,
text = stringResource(R.string.my_top) + " $maxSize",
fontWeight = FontWeight.Bold,
maxLines = 2,
overflow = TextOverflow.Ellipsis,
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<string name="forgotten_favorites">Forgotten favorites</string>
<string name="similar_to">Similar to</string>
<string name="keep_listening">Keep listening</string>
<string name="your_ytb_playlists">Your YouTube playlists</string>

<!-- History -->
<string name="today">Today</string>
Expand Down

0 comments on commit 9476b1b

Please sign in to comment.