Fix localization

This commit is contained in:
Arkadiusz Fal 2022-09-27 15:27:30 +02:00
parent 7573b0321c
commit 4082936475

View File

@ -251,7 +251,7 @@ struct ControlsOverlay: View {
Menu { Menu {
qualityProfilePicker qualityProfilePicker
} label: { } label: {
Text(player.qualityProfileSelection?.description ?? "Automatic") Text(player.qualityProfileSelection?.description ?? "Automatic".localized())
.frame(maxWidth: 240) .frame(maxWidth: 240)
} }
.transaction { t in t.animation = .none } .transaction { t in t.animation = .none }
@ -263,7 +263,7 @@ struct ControlsOverlay: View {
.mask(RoundedRectangle(cornerRadius: 3)) .mask(RoundedRectangle(cornerRadius: 3))
#else #else
ControlsOverlayButton(focusedField: $focusedField, field: .qualityProfile) { ControlsOverlayButton(focusedField: $focusedField, field: .qualityProfile) {
Text(player.qualityProfileSelection?.description ?? "Automatic") Text(player.qualityProfileSelection?.description ?? "Automatic".localized())
.lineLimit(1) .lineLimit(1)
.frame(maxWidth: 320) .frame(maxWidth: 320)
} }