Skip to content

Commit

Permalink
Add search to Localizable.xcstrings
Browse files Browse the repository at this point in the history
It was using the default, which isn't localized
  • Loading branch information
mikaelacaron committed Oct 16, 2024
1 parent 5bf99c0 commit 7595807
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ struct DashboardView: View {
.listStyle(.inset)
}
.analyticsView("\(Self.self)")
.searchable(text: $viewModel.searchText)
.searchable(
text: $viewModel.searchText,
prompt: Text("Search", comment: "Prompt to search maintenance events")
)
.overlay {
if viewModel.isLoading {
ProgressView("Loading...")
Expand Down
37 changes: 3 additions & 34 deletions Basic-Car-Maintenance/Shared/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -4332,6 +4332,9 @@
}
}
},
"Search" : {
"comment" : "Prompt to search maintenance events"
},
"Select a vehicle" : {
"comment" : "Picker for selecting a vehicle",
"localizations" : {
Expand Down Expand Up @@ -4492,23 +4495,6 @@
}
}
},
"Sidebar" : {
"extractionState" : "stale",
"localizations" : {
"fa" : {
"stringUnit" : {
"state" : "translated",
"value" : "نوار کناری"
}
},
"ru" : {
"stringUnit" : {
"state" : "translated",
"value" : "Боковая панель"
}
}
}
},
"Sign Out" : {
"localizations" : {
"be" : {
Expand Down Expand Up @@ -5266,23 +5252,6 @@
}
}
},
"Unexpected error occured." : {
"extractionState" : "stale",
"localizations" : {
"fa" : {
"stringUnit" : {
"state" : "translated",
"value" : "خطای غیرمنتظره رخ داد."
}
},
"ru" : {
"stringUnit" : {
"state" : "translated",
"value" : "Произошла ошибка."
}
}
}
},
"Update" : {
"comment" : "Label for submit button on form to update an existing entry",
"localizations" : {
Expand Down

0 comments on commit 7595807

Please sign in to comment.