aboutsummaryrefslogtreecommitdiff
path: root/Map/Presentation/Base Components/SearchBar.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Map/Presentation/Base Components/SearchBar.swift')
-rw-r--r--Map/Presentation/Base Components/SearchBar.swift10
1 files changed, 5 insertions, 5 deletions
diff --git a/Map/Presentation/Base Components/SearchBar.swift b/Map/Presentation/Base Components/SearchBar.swift
index cd2c378..cf19ddd 100644
--- a/Map/Presentation/Base Components/SearchBar.swift
+++ b/Map/Presentation/Base Components/SearchBar.swift
@@ -26,7 +26,7 @@ struct SearchBar: View {
var body: some View {
HStack(spacing: 2.0) {
ZStack {
- TextField("Search", text: $term)
+ TextField("search_bar.label", text: $term)
.textFieldStyle(.roundedBorder)
.padding(.trailing, 16.0)
.focused($isSearchFocused)
@@ -51,18 +51,18 @@ struct SearchBar: View {
.font(.Theme.SmallControl.regular)
}.keyboardShortcut(
"g", modifiers: EventModifiers([.command, .shift])
- ).help("Find Previous (⇧⌘G)")
+ ).help("search_bar.previous.help")
Button(action: onNext) {
Image(systemName: "chevron.right")
.font(.Theme.SmallControl.regular)
}.keyboardShortcut(
"g", modifiers: EventModifiers([.command])
- ).help("Find Next (⌘G)")
+ ).help("search_bar.next.help")
Button(action: onDismiss) {
- Text("Done")
+ Text("search_bar.done")
.font(.Theme.SmallControl.regular)
}.keyboardShortcut(.escape, modifiers: EventModifiers())
- .help("Done (⎋)")
+ .help("search_bar.done.help")
}.padding(4.0)
}
}