diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-07-07 13:09:13 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-07-07 13:09:13 +0200 |
| commit | 3fdaeab6a7fa19b0c5424de487efc37c0994c86e (patch) | |
| tree | 09af4c1d54924350b4e6c89fb4f284170e89b945 /Map/Presentation/Base Components/SearchBar.swift | |
| parent | 933078c10e99002c8a5f647e476819f0f1706a14 (diff) | |
More localization and map preferences
Diffstat (limited to 'Map/Presentation/Base Components/SearchBar.swift')
| -rw-r--r-- | Map/Presentation/Base Components/SearchBar.swift | 10 |
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) } } |