mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +00:00
Fix localizations
This commit is contained in:
parent
ddee3c4dab
commit
32c0af7bd6
@ -61,12 +61,12 @@ struct QualityProfile: Hashable, Identifiable, Defaults.Serializable {
|
|||||||
|
|
||||||
var formatsDescription: String {
|
var formatsDescription: String {
|
||||||
if formats.count == Format.allCases.count {
|
if formats.count == Format.allCases.count {
|
||||||
return "Any format"
|
return "Any format".localized()
|
||||||
} else if formats.count <= 3 {
|
} else if formats.count <= 3 {
|
||||||
return formats.map(\.description).joined(separator: ", ")
|
return formats.map(\.description).joined(separator: ", ")
|
||||||
}
|
}
|
||||||
|
|
||||||
return "\(formats.count) formats"
|
return String(format: "%@ formats".localized(), formats.count)
|
||||||
}
|
}
|
||||||
|
|
||||||
func isPreferred(_ stream: Stream) -> Bool {
|
func isPreferred(_ stream: Stream) -> Bool {
|
||||||
|
Loading…
Reference in New Issue
Block a user