diff --git a/DynamicIsland/Localizable.xcstrings b/DynamicIsland/Localizable.xcstrings index e442344..2f9c320 100644 --- a/DynamicIsland/Localizable.xcstrings +++ b/DynamicIsland/Localizable.xcstrings @@ -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" : { diff --git a/DynamicIsland/components/Settings/SettingsView.swift b/DynamicIsland/components/Settings/SettingsView.swift index 48e7a52..b4e05db 100644 --- a/DynamicIsland/components/Settings/SettingsView.swift +++ b/DynamicIsland/components/Settings/SettingsView.swift @@ -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) diff --git a/DynamicIsland/enums/generic.swift b/DynamicIsland/enums/generic.swift index bf29477..4f66755 100644 --- a/DynamicIsland/enums/generic.swift +++ b/DynamicIsland/enums/generic.swift @@ -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 {