Localizations improvements

This commit is contained in:
Arkadiusz Fal 2024-02-03 21:21:31 +01:00
parent e6deb9ef26
commit 1b0486df05
3 changed files with 4 additions and 4 deletions

View File

@ -436,9 +436,9 @@ enum ButtonLabelStyle: String, CaseIterable, Defaults.Serializable {
var description: String { var description: String {
switch self { switch self {
case .iconOnly: case .iconOnly:
return "Icon only" return "Icon only".localized()
case .iconAndText: case .iconAndText:
return "Icon and text" return "Icon and text".localized()
} }
} }
} }

View File

@ -77,7 +77,7 @@ struct ExportSettings: View {
var body: some View { var body: some View {
Button(action: { model.toggleExportGroupSelection(group) }) { Button(action: { model.toggleExportGroupSelection(group) }) {
HStack { HStack {
Text(group.label) Text(group.label.localized())
Spacer() Spacer()
Image(systemName: "checkmark") Image(systemName: "checkmark")
.foregroundColor(.accentColor) .foregroundColor(.accentColor)

View File

@ -98,7 +98,7 @@ struct ImportSettingsSheetView: View {
var body: some View { var body: some View {
Button(action: { model.toggleExportGroupSelection(group) }) { Button(action: { model.toggleExportGroupSelection(group) }) {
HStack { HStack {
Text(group.label) Text(group.label.localized())
Spacer() Spacer()
Image(systemName: "checkmark") Image(systemName: "checkmark")
.foregroundColor(.accentColor) .foregroundColor(.accentColor)