Fix strings detections and translates the entire "Downloaads"

This commit is contained in:
Felipe Giacomini Cocco 2026-02-05 14:01:29 -03:00
commit da61290622
3 changed files with 44 additions and 3 deletions

View file

@ -9217,6 +9217,16 @@
}
}
},
"Enable download detection" : {
"localizations" : {
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "Habilitar detecção de download"
}
}
}
},
"Enable Dynamic Island media controls to manage the lock screen panel." : {
"localizations" : {
"pt-BR" : {
@ -17855,6 +17865,16 @@
}
}
},
"Percentage" : {
"localizations" : {
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "Porcentagem"
}
}
}
},
"percentages" : {
"localizations" : {
"pt-BR" : {
@ -18363,6 +18383,16 @@
}
}
},
"Progress" : {
"localizations" : {
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "Progresso"
}
}
}
},
"Progress style" : {
"localizations" : {
"pt-BR" : {

View file

@ -1805,10 +1805,10 @@ struct Downloads: View {
var body: some View {
Form {
Section {
Defaults.Toggle("Enable download detection", key: .enableDownloadListener)
Defaults.Toggle(String(localized: "Enable download detection"), key: .enableDownloadListener)
.settingsHighlight(id: highlightID("Enable download detection"))
VStack(alignment: .leading, spacing: 12) {
Text("Download indicator style")
Text(String(localized: "Download indicator style"))
.font(.system(size: 13, weight: .semibold))
.foregroundStyle(.white)
@ -1876,7 +1876,7 @@ struct Downloads: View {
}
}
Text(style.rawValue)
Text(style.localizedName)
.font(.caption)
.fontWeight(.medium)
.lineLimit(2)

View file

@ -83,6 +83,17 @@ enum DownloadIndicatorStyle: String, Defaults.Serializable {
case progress = "Progress"
case percentage = "Percentage"
case circle = "Circle"
var localizedName: String {
switch self {
case .progress:
return String(localized: "Progress")
case .percentage:
return String(localized: "Percentage")
case .circle:
return String(localized: "Circle")
}
}
}
enum DownloadIconStyle: String, Defaults.Serializable {