Localizations fixes

This commit is contained in:
Arkadiusz Fal
2022-11-19 00:06:13 +01:00
parent be2af82300
commit 780b7ab130
13 changed files with 18 additions and 19 deletions

View File

@@ -119,9 +119,9 @@ struct FavoriteItemView: View {
private var label: String {
if case let .playlist(id) = item.section {
return playlists.find(id: id)?.title ?? "Playlist"
return playlists.find(id: id)?.title ?? "Playlist".localized()
}
return item.section.label
return item.section.label.localized()
}
}

View File

@@ -182,7 +182,7 @@ struct HomeView: View {
}
func sectionLabel(_ label: String) -> some View {
Text(label)
Text(label.localized())
#if os(tvOS)
.padding(.horizontal, 40)
#else