Fix localizations

This commit is contained in:
Arkadiusz Fal 2022-09-27 16:44:15 +02:00
parent ddee3c4dab
commit 32c0af7bd6

View File

@ -61,12 +61,12 @@ struct QualityProfile: Hashable, Identifiable, Defaults.Serializable {
var formatsDescription: String {
if formats.count == Format.allCases.count {
return "Any format"
return "Any format".localized()
} else if formats.count <= 3 {
return formats.map(\.description).joined(separator: ", ")
}
return "\(formats.count) formats"
return String(format: "%@ formats".localized(), formats.count)
}
func isPreferred(_ stream: Stream) -> Bool {