mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-29 08:04:32 +00:00
Fix strings detections and translates the entire "Appearance" section and review some translations
This commit is contained in:
parent
10d421b25b
commit
5c4415c770
3 changed files with 245 additions and 78 deletions
|
|
@ -162,6 +162,15 @@ enum LockScreenTimerSurfaceMode: String, CaseIterable, Defaults.Serializable, Id
|
|||
case glass = "Glass"
|
||||
|
||||
var id: String { rawValue }
|
||||
|
||||
var localizedName: String {
|
||||
switch self {
|
||||
case .classic:
|
||||
return String(localized: "Classic")
|
||||
case .glass:
|
||||
return String(localized: "Glass")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
enum LockScreenWeatherWidgetStyle: String, CaseIterable, Defaults.Serializable, Identifiable {
|
||||
|
|
@ -169,6 +178,15 @@ enum LockScreenWeatherWidgetStyle: String, CaseIterable, Defaults.Serializable,
|
|||
case circular = "Circular"
|
||||
|
||||
var id: String { rawValue }
|
||||
|
||||
var localizedName: String {
|
||||
switch self {
|
||||
case .inline:
|
||||
return String(localized: "Inline")
|
||||
case .circular:
|
||||
return String(localized: "Circular")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
enum LockScreenWeatherProviderSource: String, CaseIterable, Defaults.Serializable, Identifiable {
|
||||
|
|
@ -223,18 +241,18 @@ enum LockScreenWeatherAirQualityScale: String, CaseIterable, Defaults.Serializab
|
|||
var compactLabel: String {
|
||||
switch self {
|
||||
case .us:
|
||||
return "AQI"
|
||||
return String(localized: "AQI")
|
||||
case .european:
|
||||
return "EAQI"
|
||||
return String(localized: "EAQI")
|
||||
}
|
||||
}
|
||||
|
||||
var accessibilityLabel: String {
|
||||
switch self {
|
||||
case .us:
|
||||
return "AQI"
|
||||
return String(localized: "AQI")
|
||||
case .european:
|
||||
return "EAQI"
|
||||
return String(localized: "EAQI")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue