From 32c0af7bd6c9e3877d4974124f178553e8dab5f2 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Tue, 27 Sep 2022 16:44:15 +0200 Subject: [PATCH] Fix localizations --- Model/QualityProfile.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Model/QualityProfile.swift b/Model/QualityProfile.swift index 7dfba1a5..1e28c99b 100644 --- a/Model/QualityProfile.swift +++ b/Model/QualityProfile.swift @@ -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 {