Skip to content

NTP: Omnibar i18n #1827

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ export function AiChatForm({ chat, autoFocus, onChange, onSubmit }) {
ref={textAreaRef}
class={styles.textarea}
value={chat}
placeholder={t('aiChatForm_placeholder')}
aria-label={t('aiChatForm_placeholder')}
placeholder={t('omnibar_aiChatFormPlaceholder')}
aria-label={t('omnibar_aiChatFormPlaceholder')}
autoComplete="off"
rows={1}
onKeyDown={handleKeyDown}
Expand All @@ -101,7 +101,7 @@ export function AiChatForm({ chat, autoFocus, onChange, onSubmit }) {
<button
type="submit"
class={styles.submitButton}
aria-label={t('aiChatForm_submitButtonLabel')}
aria-label={t('omnibar_aiChatFormSubmitButtonLabel')}
disabled={chat.length === 0}
onClick={handleClickSubmit}
onAuxClick={handleClickSubmit}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ export function SearchForm({ term, autoFocus, onChangeTerm, onOpenSuggestion, on
type="text"
role="combobox"
class={styles.input}
placeholder={t('searchForm_placeholder')}
aria-label={t('searchForm_placeholder')}
placeholder={t('omnibar_searchFormPlaceholder')}
aria-label={t('omnibar_searchFormPlaceholder')}
aria-expanded={suggestions.length > 0}
aria-haspopup="listbox"
aria-controls={suggestionsListId}
Expand Down
14 changes: 3 additions & 11 deletions special-pages/pages/new-tab/app/omnibar/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"title": "Search",
"description": "Title of the omnibar widget in the customizer panel."
},
"aiChatForm_placeholder": {
"omnibar_aiChatFormPlaceholder": {
"title": "Chat privately with Duck.ai",
"description": "Placeholder text for the AI chat input field."
},
"aiChatForm_submitButtonLabel": {
"omnibar_aiChatFormSubmitButtonLabel": {
"title": "Send",
"description": "Accesible label for the AI chat submit button."
},
Expand All @@ -27,16 +27,8 @@
"title": "Duck.ai",
"description": "Label for the AI chat tab."
},
"searchForm_placeholder": {
"omnibar_searchFormPlaceholder": {
"title": "Search or enter address",
"description": "Placeholder text for the search input field."
},
"searchForm_searchButtonLabel": {
"title": "Web search",
"description": "Accessible label for the web search submit button."
},
"searchForm_aiButtonLabel": {
"title": "Duck.ai",
"description": "Accessible label for the AI chat button in search form."
}
}
34 changes: 33 additions & 1 deletion special-pages/pages/new-tab/public/locales/de/new-tab.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,38 @@
"title" : "{count} Versuche von anderen Netzwerken",
"note" : "An aggregated count of blocked entries not present in the main list. For example, '200 attempts from other networks'"
},
"omnibar_menuTitle" : {
"title" : "Suche",
"description" : "Title of the omnibar widget in the customizer panel."
},
"omnibar_aiChatFormPlaceholder" : {
"title" : "Privat mit Duck.ai chatten",
"description" : "Placeholder text for the AI chat input field."
},
"omnibar_aiChatFormSubmitButtonLabel" : {
"title" : "Senden",
"description" : "Accesible label for the AI chat submit button."
},
"omnibar_logoAlt" : {
"title" : "DuckDuckGo",
"description" : "Alt text for the DuckDuckGo logo."
},
"omnibar_tabSwitcherLabel" : {
"title" : "Suche & Duck.ai Tabwechsel-Bildschirm",
"description" : "Accessible label for the tab switcher between search and AI modes."
},
"omnibar_searchTabLabel" : {
"title" : "Suche",
"description" : "Label for the search tab."
},
"omnibar_aiTabLabel" : {
"title" : "Duck.ai",
"description" : "Label for the AI chat tab."
},
"omnibar_searchFormPlaceholder" : {
"title" : "Adresse suchen oder eingeben",
"description" : "Placeholder text for the search input field."
},
"nextSteps_sectionTitle" : {
"title" : "Nächste Schritte",
"note" : "Text that goes in the Next Steps bubble above the first card"
Expand Down Expand Up @@ -368,4 +400,4 @@
"title" : "Zusätzliches ausblenden",
"note" : "Button label that hides the expanded browsing history items."
}
}
}
14 changes: 3 additions & 11 deletions special-pages/pages/new-tab/public/locales/en/new-tab.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,11 @@
"title": "Search",
"description": "Title of the omnibar widget in the customizer panel."
},
"aiChatForm_placeholder": {
"omnibar_aiChatFormPlaceholder": {
"title": "Chat privately with Duck.ai",
"description": "Placeholder text for the AI chat input field."
},
"aiChatForm_submitButtonLabel": {
"omnibar_aiChatFormSubmitButtonLabel": {
"title": "Send",
"description": "Accesible label for the AI chat submit button."
},
Expand All @@ -153,18 +153,10 @@
"title": "Duck.ai",
"description": "Label for the AI chat tab."
},
"searchForm_placeholder": {
"omnibar_searchFormPlaceholder": {
"title": "Search or enter address",
"description": "Placeholder text for the search input field."
},
"searchForm_searchButtonLabel": {
"title": "Web search",
"description": "Accessible label for the web search submit button."
},
"searchForm_aiButtonLabel": {
"title": "Duck.ai",
"description": "Accessible label for the AI chat button in search form."
},
"nextSteps_sectionTitle": {
"title": "Next Steps",
"note": "Text that goes in the Next Steps bubble above the first card"
Expand Down
34 changes: 33 additions & 1 deletion special-pages/pages/new-tab/public/locales/es/new-tab.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,38 @@
"title" : "{count} intentos de otras redes",
"note" : "An aggregated count of blocked entries not present in the main list. For example, '200 attempts from other networks'"
},
"omnibar_menuTitle" : {
"title" : "Buscar",
"description" : "Title of the omnibar widget in the customizer panel."
},
"omnibar_aiChatFormPlaceholder" : {
"title" : "Chatea en privado con Duck.ai",
"description" : "Placeholder text for the AI chat input field."
},
"omnibar_aiChatFormSubmitButtonLabel" : {
"title" : "Enviar",
"description" : "Accesible label for the AI chat submit button."
},
"omnibar_logoAlt" : {
"title" : "DuckDuckGo",
"description" : "Alt text for the DuckDuckGo logo."
},
"omnibar_tabSwitcherLabel" : {
"title" : "Selector de pestañas de búsqueda y Duck.ai",
"description" : "Accessible label for the tab switcher between search and AI modes."
},
"omnibar_searchTabLabel" : {
"title" : "Buscar",
"description" : "Label for the search tab."
},
"omnibar_aiTabLabel" : {
"title" : "Duck.ai",
"description" : "Label for the AI chat tab."
},
"omnibar_searchFormPlaceholder" : {
"title" : "Buscar o introducir dirección",
"description" : "Placeholder text for the search input field."
},
"nextSteps_sectionTitle" : {
"title" : "Próximos pasos",
"note" : "Text that goes in the Next Steps bubble above the first card"
Expand Down Expand Up @@ -368,4 +400,4 @@
"title" : "Ocultar adicional",
"note" : "Button label that hides the expanded browsing history items."
}
}
}
34 changes: 33 additions & 1 deletion special-pages/pages/new-tab/public/locales/fr/new-tab.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,38 @@
"title" : "{count} tentatives provenant d'autres réseaux",
"note" : "An aggregated count of blocked entries not present in the main list. For example, '200 attempts from other networks'"
},
"omnibar_menuTitle" : {
"title" : "Rechercher",
"description" : "Title of the omnibar widget in the customizer panel."
},
"omnibar_aiChatFormPlaceholder" : {
"title" : "Discutez en privé avec Duck.ai",
"description" : "Placeholder text for the AI chat input field."
},
"omnibar_aiChatFormSubmitButtonLabel" : {
"title" : "Envoyer",
"description" : "Accesible label for the AI chat submit button."
},
"omnibar_logoAlt" : {
"title" : "DuckDuckGo",
"description" : "Alt text for the DuckDuckGo logo."
},
"omnibar_tabSwitcherLabel" : {
"title" : "Sélecteur d'onglets de recherche et de Duck.ai",
"description" : "Accessible label for the tab switcher between search and AI modes."
},
"omnibar_searchTabLabel" : {
"title" : "Rechercher",
"description" : "Label for the search tab."
},
"omnibar_aiTabLabel" : {
"title" : "Duck.ai",
"description" : "Label for the AI chat tab."
},
"omnibar_searchFormPlaceholder" : {
"title" : "Rechercher ou saisir une adresse",
"description" : "Placeholder text for the search input field."
},
"nextSteps_sectionTitle" : {
"title" : "Étapes suivantes",
"note" : "Text that goes in the Next Steps bubble above the first card"
Expand Down Expand Up @@ -368,4 +400,4 @@
"title" : "Masquer les éléments supplémentaires",
"note" : "Button label that hides the expanded browsing history items."
}
}
}
34 changes: 33 additions & 1 deletion special-pages/pages/new-tab/public/locales/it/new-tab.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,38 @@
"title" : "{count} tentativi da altre reti",
"note" : "An aggregated count of blocked entries not present in the main list. For example, '200 attempts from other networks'"
},
"omnibar_menuTitle" : {
"title" : "Ricerca",
"description" : "Title of the omnibar widget in the customizer panel."
},
"omnibar_aiChatFormPlaceholder" : {
"title" : "Chatta in privato con Duck.ai",
"description" : "Placeholder text for the AI chat input field."
},
"omnibar_aiChatFormSubmitButtonLabel" : {
"title" : "Invia",
"description" : "Accesible label for the AI chat submit button."
},
"omnibar_logoAlt" : {
"title" : "DuckDuckGo",
"description" : "Alt text for the DuckDuckGo logo."
},
"omnibar_tabSwitcherLabel" : {
"title" : "Selettore delle schede Ricerca e Duck.ai",
"description" : "Accessible label for the tab switcher between search and AI modes."
},
"omnibar_searchTabLabel" : {
"title" : "Ricerca",
"description" : "Label for the search tab."
},
"omnibar_aiTabLabel" : {
"title" : "Duck.ai",
"description" : "Label for the AI chat tab."
},
"omnibar_searchFormPlaceholder" : {
"title" : "Cerca o digita l'indirizzo",
"description" : "Placeholder text for the search input field."
},
"nextSteps_sectionTitle" : {
"title" : "Passaggi successivi",
"note" : "Text that goes in the Next Steps bubble above the first card"
Expand Down Expand Up @@ -368,4 +400,4 @@
"title" : "Nascondi altro",
"note" : "Button label that hides the expanded browsing history items."
}
}
}
34 changes: 33 additions & 1 deletion special-pages/pages/new-tab/public/locales/nl/new-tab.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,38 @@
"title" : "{count} pogingen van andere netwerken",
"note" : "An aggregated count of blocked entries not present in the main list. For example, '200 attempts from other networks'"
},
"omnibar_menuTitle" : {
"title" : "Zoeken",
"description" : "Title of the omnibar widget in the customizer panel."
},
"omnibar_aiChatFormPlaceholder" : {
"title" : "Privé chatten met Duck.ai",
"description" : "Placeholder text for the AI chat input field."
},
"omnibar_aiChatFormSubmitButtonLabel" : {
"title" : "Versturen",
"description" : "Accesible label for the AI chat submit button."
},
"omnibar_logoAlt" : {
"title" : "DuckDuckGo",
"description" : "Alt text for the DuckDuckGo logo."
},
"omnibar_tabSwitcherLabel" : {
"title" : "Zoeken en Duck.ai tabbladschakelaar",
"description" : "Accessible label for the tab switcher between search and AI modes."
},
"omnibar_searchTabLabel" : {
"title" : "Zoeken",
"description" : "Label for the search tab."
},
"omnibar_aiTabLabel" : {
"title" : "Duck.ai",
"description" : "Label for the AI chat tab."
},
"omnibar_searchFormPlaceholder" : {
"title" : "Zoek of voer een adres in",
"description" : "Placeholder text for the search input field."
},
"nextSteps_sectionTitle" : {
"title" : "Volgende stappen",
"note" : "Text that goes in the Next Steps bubble above the first card"
Expand Down Expand Up @@ -368,4 +400,4 @@
"title" : "Aanvullende gegevens verbergen",
"note" : "Button label that hides the expanded browsing history items."
}
}
}
34 changes: 33 additions & 1 deletion special-pages/pages/new-tab/public/locales/pl/new-tab.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,38 @@
"title" : "Liczba prób z innych sieci: {count}",
"note" : "An aggregated count of blocked entries not present in the main list. For example, '200 attempts from other networks'"
},
"omnibar_menuTitle" : {
"title" : "Szukaj",
"description" : "Title of the omnibar widget in the customizer panel."
},
"omnibar_aiChatFormPlaceholder" : {
"title" : "Czatuj prywatnie z Duck.ai",
"description" : "Placeholder text for the AI chat input field."
},
"omnibar_aiChatFormSubmitButtonLabel" : {
"title" : "Wyślij",
"description" : "Accesible label for the AI chat submit button."
},
"omnibar_logoAlt" : {
"title" : "DuckDuckGo",
"description" : "Alt text for the DuckDuckGo logo."
},
"omnibar_tabSwitcherLabel" : {
"title" : "Przełącznik karty wyszukiwania i Duck.ai",
"description" : "Accessible label for the tab switcher between search and AI modes."
},
"omnibar_searchTabLabel" : {
"title" : "Szukaj",
"description" : "Label for the search tab."
},
"omnibar_aiTabLabel" : {
"title" : "Duck.ai",
"description" : "Label for the AI chat tab."
},
"omnibar_searchFormPlaceholder" : {
"title" : "Wyszukaj lub wprowadź adres",
"description" : "Placeholder text for the search input field."
},
"nextSteps_sectionTitle" : {
"title" : "Dalsze kroki",
"note" : "Text that goes in the Next Steps bubble above the first card"
Expand Down Expand Up @@ -368,4 +400,4 @@
"title" : "Ukryj dodatkowe",
"note" : "Button label that hides the expanded browsing history items."
}
}
}
Loading
Loading