From 1b0486df05c9a9c6d949f0d639ab818847794160 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sat, 3 Feb 2024 21:21:31 +0100 Subject: [PATCH] Localizations improvements --- Shared/Defaults.swift | 4 ++-- Shared/Settings/ExportSettings.swift | 2 +- Shared/Settings/Import/ImportSettingsSheetView.swift | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Shared/Defaults.swift b/Shared/Defaults.swift index 23d20f9c..8b3d6b80 100644 --- a/Shared/Defaults.swift +++ b/Shared/Defaults.swift @@ -436,9 +436,9 @@ enum ButtonLabelStyle: String, CaseIterable, Defaults.Serializable { var description: String { switch self { case .iconOnly: - return "Icon only" + return "Icon only".localized() case .iconAndText: - return "Icon and text" + return "Icon and text".localized() } } } diff --git a/Shared/Settings/ExportSettings.swift b/Shared/Settings/ExportSettings.swift index 8aa8bef6..65e2ab4c 100644 --- a/Shared/Settings/ExportSettings.swift +++ b/Shared/Settings/ExportSettings.swift @@ -77,7 +77,7 @@ struct ExportSettings: View { var body: some View { Button(action: { model.toggleExportGroupSelection(group) }) { HStack { - Text(group.label) + Text(group.label.localized()) Spacer() Image(systemName: "checkmark") .foregroundColor(.accentColor) diff --git a/Shared/Settings/Import/ImportSettingsSheetView.swift b/Shared/Settings/Import/ImportSettingsSheetView.swift index 6055d61b..f2bf9e6d 100644 --- a/Shared/Settings/Import/ImportSettingsSheetView.swift +++ b/Shared/Settings/Import/ImportSettingsSheetView.swift @@ -98,7 +98,7 @@ struct ImportSettingsSheetView: View { var body: some View { Button(action: { model.toggleExportGroupSelection(group) }) { HStack { - Text(group.label) + Text(group.label.localized()) Spacer() Image(systemName: "checkmark") .foregroundColor(.accentColor)