Skip to content

Commit 4ed322e

Browse files
authored
NTP: Omnibar i18n (#1827)
* Prefix omnibar translation keys for consistency * Add omnibar translations
1 parent 2397249 commit 4ed322e

File tree

12 files changed

+275
-35
lines changed

12 files changed

+275
-35
lines changed

special-pages/pages/new-tab/app/omnibar/components/AiChatForm.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ export function AiChatForm({ chat, autoFocus, onChange, onSubmit }) {
9090
ref={textAreaRef}
9191
class={styles.textarea}
9292
value={chat}
93-
placeholder={t('aiChatForm_placeholder')}
94-
aria-label={t('aiChatForm_placeholder')}
93+
placeholder={t('omnibar_aiChatFormPlaceholder')}
94+
aria-label={t('omnibar_aiChatFormPlaceholder')}
9595
autoComplete="off"
9696
rows={1}
9797
onKeyDown={handleKeyDown}
@@ -101,7 +101,7 @@ export function AiChatForm({ chat, autoFocus, onChange, onSubmit }) {
101101
<button
102102
type="submit"
103103
class={styles.submitButton}
104-
aria-label={t('aiChatForm_submitButtonLabel')}
104+
aria-label={t('omnibar_aiChatFormSubmitButtonLabel')}
105105
disabled={chat.length === 0}
106106
onClick={handleClickSubmit}
107107
onAuxClick={handleClickSubmit}

special-pages/pages/new-tab/app/omnibar/components/SearchForm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ export function SearchForm({ term, autoFocus, onChangeTerm, onOpenSuggestion, on
6969
type="text"
7070
role="combobox"
7171
class={styles.input}
72-
placeholder={t('searchForm_placeholder')}
73-
aria-label={t('searchForm_placeholder')}
72+
placeholder={t('omnibar_searchFormPlaceholder')}
73+
aria-label={t('omnibar_searchFormPlaceholder')}
7474
aria-expanded={suggestions.length > 0}
7575
aria-haspopup="listbox"
7676
aria-controls={suggestionsListId}

special-pages/pages/new-tab/app/omnibar/strings.json

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
"title": "Search",
44
"description": "Title of the omnibar widget in the customizer panel."
55
},
6-
"aiChatForm_placeholder": {
6+
"omnibar_aiChatFormPlaceholder": {
77
"title": "Chat privately with Duck.ai",
88
"description": "Placeholder text for the AI chat input field."
99
},
10-
"aiChatForm_submitButtonLabel": {
10+
"omnibar_aiChatFormSubmitButtonLabel": {
1111
"title": "Send",
1212
"description": "Accesible label for the AI chat submit button."
1313
},
@@ -27,16 +27,8 @@
2727
"title": "Duck.ai",
2828
"description": "Label for the AI chat tab."
2929
},
30-
"searchForm_placeholder": {
30+
"omnibar_searchFormPlaceholder": {
3131
"title": "Search or enter address",
3232
"description": "Placeholder text for the search input field."
33-
},
34-
"searchForm_searchButtonLabel": {
35-
"title": "Web search",
36-
"description": "Accessible label for the web search submit button."
37-
},
38-
"searchForm_aiButtonLabel": {
39-
"title": "Duck.ai",
40-
"description": "Accessible label for the AI chat button in search form."
4133
}
4234
}

special-pages/pages/new-tab/public/locales/de/new-tab.json

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,38 @@
124124
"title" : "{count} Versuche von anderen Netzwerken",
125125
"note" : "An aggregated count of blocked entries not present in the main list. For example, '200 attempts from other networks'"
126126
},
127+
"omnibar_menuTitle" : {
128+
"title" : "Suche",
129+
"description" : "Title of the omnibar widget in the customizer panel."
130+
},
131+
"omnibar_aiChatFormPlaceholder" : {
132+
"title" : "Privat mit Duck.ai chatten",
133+
"description" : "Placeholder text for the AI chat input field."
134+
},
135+
"omnibar_aiChatFormSubmitButtonLabel" : {
136+
"title" : "Senden",
137+
"description" : "Accesible label for the AI chat submit button."
138+
},
139+
"omnibar_logoAlt" : {
140+
"title" : "DuckDuckGo",
141+
"description" : "Alt text for the DuckDuckGo logo."
142+
},
143+
"omnibar_tabSwitcherLabel" : {
144+
"title" : "Suche & Duck.ai Tabwechsel-Bildschirm",
145+
"description" : "Accessible label for the tab switcher between search and AI modes."
146+
},
147+
"omnibar_searchTabLabel" : {
148+
"title" : "Suche",
149+
"description" : "Label for the search tab."
150+
},
151+
"omnibar_aiTabLabel" : {
152+
"title" : "Duck.ai",
153+
"description" : "Label for the AI chat tab."
154+
},
155+
"omnibar_searchFormPlaceholder" : {
156+
"title" : "Adresse suchen oder eingeben",
157+
"description" : "Placeholder text for the search input field."
158+
},
127159
"nextSteps_sectionTitle" : {
128160
"title" : "Nächste Schritte",
129161
"note" : "Text that goes in the Next Steps bubble above the first card"
@@ -368,4 +400,4 @@
368400
"title" : "Zusätzliches ausblenden",
369401
"note" : "Button label that hides the expanded browsing history items."
370402
}
371-
}
403+
}

special-pages/pages/new-tab/public/locales/en/new-tab.json

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,11 @@
129129
"title": "Search",
130130
"description": "Title of the omnibar widget in the customizer panel."
131131
},
132-
"aiChatForm_placeholder": {
132+
"omnibar_aiChatFormPlaceholder": {
133133
"title": "Chat privately with Duck.ai",
134134
"description": "Placeholder text for the AI chat input field."
135135
},
136-
"aiChatForm_submitButtonLabel": {
136+
"omnibar_aiChatFormSubmitButtonLabel": {
137137
"title": "Send",
138138
"description": "Accesible label for the AI chat submit button."
139139
},
@@ -153,18 +153,10 @@
153153
"title": "Duck.ai",
154154
"description": "Label for the AI chat tab."
155155
},
156-
"searchForm_placeholder": {
156+
"omnibar_searchFormPlaceholder": {
157157
"title": "Search or enter address",
158158
"description": "Placeholder text for the search input field."
159159
},
160-
"searchForm_searchButtonLabel": {
161-
"title": "Web search",
162-
"description": "Accessible label for the web search submit button."
163-
},
164-
"searchForm_aiButtonLabel": {
165-
"title": "Duck.ai",
166-
"description": "Accessible label for the AI chat button in search form."
167-
},
168160
"nextSteps_sectionTitle": {
169161
"title": "Next Steps",
170162
"note": "Text that goes in the Next Steps bubble above the first card"

special-pages/pages/new-tab/public/locales/es/new-tab.json

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,38 @@
124124
"title" : "{count} intentos de otras redes",
125125
"note" : "An aggregated count of blocked entries not present in the main list. For example, '200 attempts from other networks'"
126126
},
127+
"omnibar_menuTitle" : {
128+
"title" : "Buscar",
129+
"description" : "Title of the omnibar widget in the customizer panel."
130+
},
131+
"omnibar_aiChatFormPlaceholder" : {
132+
"title" : "Chatea en privado con Duck.ai",
133+
"description" : "Placeholder text for the AI chat input field."
134+
},
135+
"omnibar_aiChatFormSubmitButtonLabel" : {
136+
"title" : "Enviar",
137+
"description" : "Accesible label for the AI chat submit button."
138+
},
139+
"omnibar_logoAlt" : {
140+
"title" : "DuckDuckGo",
141+
"description" : "Alt text for the DuckDuckGo logo."
142+
},
143+
"omnibar_tabSwitcherLabel" : {
144+
"title" : "Selector de pestañas de búsqueda y Duck.ai",
145+
"description" : "Accessible label for the tab switcher between search and AI modes."
146+
},
147+
"omnibar_searchTabLabel" : {
148+
"title" : "Buscar",
149+
"description" : "Label for the search tab."
150+
},
151+
"omnibar_aiTabLabel" : {
152+
"title" : "Duck.ai",
153+
"description" : "Label for the AI chat tab."
154+
},
155+
"omnibar_searchFormPlaceholder" : {
156+
"title" : "Buscar o introducir dirección",
157+
"description" : "Placeholder text for the search input field."
158+
},
127159
"nextSteps_sectionTitle" : {
128160
"title" : "Próximos pasos",
129161
"note" : "Text that goes in the Next Steps bubble above the first card"
@@ -368,4 +400,4 @@
368400
"title" : "Ocultar adicional",
369401
"note" : "Button label that hides the expanded browsing history items."
370402
}
371-
}
403+
}

special-pages/pages/new-tab/public/locales/fr/new-tab.json

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,38 @@
124124
"title" : "{count} tentatives provenant d'autres réseaux",
125125
"note" : "An aggregated count of blocked entries not present in the main list. For example, '200 attempts from other networks'"
126126
},
127+
"omnibar_menuTitle" : {
128+
"title" : "Rechercher",
129+
"description" : "Title of the omnibar widget in the customizer panel."
130+
},
131+
"omnibar_aiChatFormPlaceholder" : {
132+
"title" : "Discutez en privé avec Duck.ai",
133+
"description" : "Placeholder text for the AI chat input field."
134+
},
135+
"omnibar_aiChatFormSubmitButtonLabel" : {
136+
"title" : "Envoyer",
137+
"description" : "Accesible label for the AI chat submit button."
138+
},
139+
"omnibar_logoAlt" : {
140+
"title" : "DuckDuckGo",
141+
"description" : "Alt text for the DuckDuckGo logo."
142+
},
143+
"omnibar_tabSwitcherLabel" : {
144+
"title" : "Sélecteur d'onglets de recherche et de Duck.ai",
145+
"description" : "Accessible label for the tab switcher between search and AI modes."
146+
},
147+
"omnibar_searchTabLabel" : {
148+
"title" : "Rechercher",
149+
"description" : "Label for the search tab."
150+
},
151+
"omnibar_aiTabLabel" : {
152+
"title" : "Duck.ai",
153+
"description" : "Label for the AI chat tab."
154+
},
155+
"omnibar_searchFormPlaceholder" : {
156+
"title" : "Rechercher ou saisir une adresse",
157+
"description" : "Placeholder text for the search input field."
158+
},
127159
"nextSteps_sectionTitle" : {
128160
"title" : "Étapes suivantes",
129161
"note" : "Text that goes in the Next Steps bubble above the first card"
@@ -368,4 +400,4 @@
368400
"title" : "Masquer les éléments supplémentaires",
369401
"note" : "Button label that hides the expanded browsing history items."
370402
}
371-
}
403+
}

special-pages/pages/new-tab/public/locales/it/new-tab.json

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,38 @@
124124
"title" : "{count} tentativi da altre reti",
125125
"note" : "An aggregated count of blocked entries not present in the main list. For example, '200 attempts from other networks'"
126126
},
127+
"omnibar_menuTitle" : {
128+
"title" : "Ricerca",
129+
"description" : "Title of the omnibar widget in the customizer panel."
130+
},
131+
"omnibar_aiChatFormPlaceholder" : {
132+
"title" : "Chatta in privato con Duck.ai",
133+
"description" : "Placeholder text for the AI chat input field."
134+
},
135+
"omnibar_aiChatFormSubmitButtonLabel" : {
136+
"title" : "Invia",
137+
"description" : "Accesible label for the AI chat submit button."
138+
},
139+
"omnibar_logoAlt" : {
140+
"title" : "DuckDuckGo",
141+
"description" : "Alt text for the DuckDuckGo logo."
142+
},
143+
"omnibar_tabSwitcherLabel" : {
144+
"title" : "Selettore delle schede Ricerca e Duck.ai",
145+
"description" : "Accessible label for the tab switcher between search and AI modes."
146+
},
147+
"omnibar_searchTabLabel" : {
148+
"title" : "Ricerca",
149+
"description" : "Label for the search tab."
150+
},
151+
"omnibar_aiTabLabel" : {
152+
"title" : "Duck.ai",
153+
"description" : "Label for the AI chat tab."
154+
},
155+
"omnibar_searchFormPlaceholder" : {
156+
"title" : "Cerca o digita l'indirizzo",
157+
"description" : "Placeholder text for the search input field."
158+
},
127159
"nextSteps_sectionTitle" : {
128160
"title" : "Passaggi successivi",
129161
"note" : "Text that goes in the Next Steps bubble above the first card"
@@ -368,4 +400,4 @@
368400
"title" : "Nascondi altro",
369401
"note" : "Button label that hides the expanded browsing history items."
370402
}
371-
}
403+
}

special-pages/pages/new-tab/public/locales/nl/new-tab.json

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,38 @@
124124
"title" : "{count} pogingen van andere netwerken",
125125
"note" : "An aggregated count of blocked entries not present in the main list. For example, '200 attempts from other networks'"
126126
},
127+
"omnibar_menuTitle" : {
128+
"title" : "Zoeken",
129+
"description" : "Title of the omnibar widget in the customizer panel."
130+
},
131+
"omnibar_aiChatFormPlaceholder" : {
132+
"title" : "Privé chatten met Duck.ai",
133+
"description" : "Placeholder text for the AI chat input field."
134+
},
135+
"omnibar_aiChatFormSubmitButtonLabel" : {
136+
"title" : "Versturen",
137+
"description" : "Accesible label for the AI chat submit button."
138+
},
139+
"omnibar_logoAlt" : {
140+
"title" : "DuckDuckGo",
141+
"description" : "Alt text for the DuckDuckGo logo."
142+
},
143+
"omnibar_tabSwitcherLabel" : {
144+
"title" : "Zoeken en Duck.ai tabbladschakelaar",
145+
"description" : "Accessible label for the tab switcher between search and AI modes."
146+
},
147+
"omnibar_searchTabLabel" : {
148+
"title" : "Zoeken",
149+
"description" : "Label for the search tab."
150+
},
151+
"omnibar_aiTabLabel" : {
152+
"title" : "Duck.ai",
153+
"description" : "Label for the AI chat tab."
154+
},
155+
"omnibar_searchFormPlaceholder" : {
156+
"title" : "Zoek of voer een adres in",
157+
"description" : "Placeholder text for the search input field."
158+
},
127159
"nextSteps_sectionTitle" : {
128160
"title" : "Volgende stappen",
129161
"note" : "Text that goes in the Next Steps bubble above the first card"
@@ -368,4 +400,4 @@
368400
"title" : "Aanvullende gegevens verbergen",
369401
"note" : "Button label that hides the expanded browsing history items."
370402
}
371-
}
403+
}

special-pages/pages/new-tab/public/locales/pl/new-tab.json

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,38 @@
124124
"title" : "Liczba prób z innych sieci: {count}",
125125
"note" : "An aggregated count of blocked entries not present in the main list. For example, '200 attempts from other networks'"
126126
},
127+
"omnibar_menuTitle" : {
128+
"title" : "Szukaj",
129+
"description" : "Title of the omnibar widget in the customizer panel."
130+
},
131+
"omnibar_aiChatFormPlaceholder" : {
132+
"title" : "Czatuj prywatnie z Duck.ai",
133+
"description" : "Placeholder text for the AI chat input field."
134+
},
135+
"omnibar_aiChatFormSubmitButtonLabel" : {
136+
"title" : "Wyślij",
137+
"description" : "Accesible label for the AI chat submit button."
138+
},
139+
"omnibar_logoAlt" : {
140+
"title" : "DuckDuckGo",
141+
"description" : "Alt text for the DuckDuckGo logo."
142+
},
143+
"omnibar_tabSwitcherLabel" : {
144+
"title" : "Przełącznik karty wyszukiwania i Duck.ai",
145+
"description" : "Accessible label for the tab switcher between search and AI modes."
146+
},
147+
"omnibar_searchTabLabel" : {
148+
"title" : "Szukaj",
149+
"description" : "Label for the search tab."
150+
},
151+
"omnibar_aiTabLabel" : {
152+
"title" : "Duck.ai",
153+
"description" : "Label for the AI chat tab."
154+
},
155+
"omnibar_searchFormPlaceholder" : {
156+
"title" : "Wyszukaj lub wprowadź adres",
157+
"description" : "Placeholder text for the search input field."
158+
},
127159
"nextSteps_sectionTitle" : {
128160
"title" : "Dalsze kroki",
129161
"note" : "Text that goes in the Next Steps bubble above the first card"
@@ -368,4 +400,4 @@
368400
"title" : "Ukryj dodatkowe",
369401
"note" : "Button label that hides the expanded browsing history items."
370402
}
371-
}
403+
}

0 commit comments

Comments
 (0)