From a3534d42fabee935b329afadc60ee4b088cc4c8c Mon Sep 17 00:00:00 2001 From: forresst Date: Thu, 23 Jun 2022 11:07:25 +0200 Subject: [PATCH 1/8] feat: add translations for modal search Algolia --- .../src/theme/SearchBar/index.tsx | 145 ++++++++++++++++++ .../locales/ar/theme-search-algolia.json | 24 +++ .../locales/base/theme-search-algolia.json | 48 ++++++ .../locales/bn/theme-search-algolia.json | 24 +++ .../locales/cs/theme-search-algolia.json | 24 +++ .../locales/da/theme-search-algolia.json | 24 +++ .../locales/de/theme-search-algolia.json | 24 +++ .../locales/es/theme-search-algolia.json | 24 +++ .../locales/fa/theme-search-algolia.json | 24 +++ .../locales/fil/theme-search-algolia.json | 24 +++ .../locales/fr/theme-search-algolia.json | 24 +++ .../locales/he/theme-search-algolia.json | 24 +++ .../locales/hi/theme-search-algolia.json | 24 +++ .../locales/it/theme-search-algolia.json | 24 +++ .../locales/ja/theme-search-algolia.json | 24 +++ .../locales/ko/theme-search-algolia.json | 24 +++ .../locales/pl/theme-search-algolia.json | 24 +++ .../locales/pt-BR/theme-search-algolia.json | 24 +++ .../locales/pt-PT/theme-search-algolia.json | 24 +++ .../locales/ru/theme-search-algolia.json | 24 +++ .../locales/sr/theme-search-algolia.json | 24 +++ .../locales/tr/theme-search-algolia.json | 24 +++ .../locales/vi/theme-search-algolia.json | 24 +++ .../locales/zh-Hans/theme-search-algolia.json | 24 +++ .../locales/zh-Hant/theme-search-algolia.json | 24 +++ 25 files changed, 745 insertions(+) diff --git a/packages/docusaurus-theme-search-algolia/src/theme/SearchBar/index.tsx b/packages/docusaurus-theme-search-algolia/src/theme/SearchBar/index.tsx index beef496dffcd..2aa0e9fbc26c 100644 --- a/packages/docusaurus-theme-search-algolia/src/theme/SearchBar/index.tsx +++ b/packages/docusaurus-theme-search-algolia/src/theme/SearchBar/index.tsx @@ -20,6 +20,7 @@ import Translate, {translate} from '@docusaurus/Translate'; import type { DocSearchModal as DocSearchModalType, DocSearchModalProps, + DocSearchTranslations, } from '@docsearch/react'; import type { InternalDocSearchHit, @@ -221,6 +222,149 @@ function DocSearch({ description: 'The ARIA label and placeholder for search button', }); + const translatedModal: DocSearchTranslations = { + modal: { + searchBox: { + resetButtonTitle: translate({ + id: 'theme.SearchModal.searchBox.resetButtonTitle', + message: 'Clear the query', + description: 'The label for search box reset button', + }), + resetButtonAriaLabel: translate({ + id: 'theme.SearchModal.searchBox.resetButtonAriaLabel', + message: 'Clear the query', + description: 'The ARIA label for search box reset button', + }), + cancelButtonText: translate({ + id: 'theme.SearchModal.searchBox.cancelButtonText', + message: 'Cancel', + description: 'The label for search box cancel button', + }), + cancelButtonAriaLabel: translate({ + id: 'theme.SearchModal.searchBox.cancelButtonAriaLabel', + message: 'Cancel', + description: 'The ARIA label for search box cancel button', + }), + }, + startScreen: { + recentSearchesTitle: translate({ + id: 'theme.SearchModal.startScreen.recentSearchesTitle', + message: 'Recent', + description: 'The title for recent searches', + }), + noRecentSearchesText: translate({ + id: 'theme.SearchModal.startScreen.noRecentSearchesText', + message: 'No recent searches', + description: 'The text when no recent searches', + }), + saveRecentSearchButtonTitle: translate({ + id: 'theme.SearchModal.startScreen.saveRecentSearchButtonTitle', + message: 'Save this search', + description: 'The label for save recent search button', + }), + removeRecentSearchButtonTitle: translate({ + id: 'theme.SearchModal.startScreen.removeRecentSearchButtonTitle', + message: 'Remove this search from history', + description: 'The label for remove recent search button', + }), + favoriteSearchesTitle: translate({ + id: 'theme.SearchModal.startScreen.favoriteSearchesTitle', + message: 'Favorite', + description: 'The title for favorite searches', + }), + removeFavoriteSearchButtonTitle: translate({ + id: 'theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle', + message: 'Remove this search from favorites', + description: 'The label for remove favorite search button', + }), + }, + errorScreen: { + titleText: translate({ + id: 'theme.SearchModal.errorScreen.titleText', + message: 'Unable to fetch results', + description: 'The title for error screen of search modal', + }), + helpText: translate({ + id: 'theme.SearchModal.errorScreen.helpText', + message: 'You might want to check your network connection.', + description: 'The help text for error screen of search modal', + }), + }, + footer: { + selectText: translate({ + id: 'theme.SearchModal.footer.selectText', + message: 'to select', + description: 'The explanatory text of the action for the enter key', + }), + selectKeyAriaLabel: translate({ + id: 'theme.SearchModal.footer.selectKeyAriaLabel', + message: 'Enter key', + description: + 'The ARIA label for the Enter key button that makes the selection', + }), + navigateText: translate({ + id: 'theme.SearchModal.footer.navigateText', + message: 'to navigate', + description: + 'The explanatory text of the action for the Arrow up and Arrow down key', + }), + navigateUpKeyAriaLabel: translate({ + id: 'theme.SearchModal.footer.navigateUpKeyAriaLabel', + message: 'Arrow up', + description: + 'The ARIA label for the Arrow up key button that makes the navigation', + }), + navigateDownKeyAriaLabel: translate({ + id: 'theme.SearchModal.footer.navigateDownKeyAriaLabel', + message: 'Arrow down', + description: + 'The ARIA label for the Arrow down key button that makes the navigation', + }), + closeText: translate({ + id: 'theme.SearchModal.footer.closeText', + message: 'to close', + description: 'The explanatory text of the action for Escape key', + }), + closeKeyAriaLabel: translate({ + id: 'theme.SearchModal.footer.closeKeyAriaLabel', + message: 'Escape key', + description: + 'The ARIA label for the Escape key button that close the modal', + }), + searchByText: translate({ + id: 'theme.SearchModal.footer.searchByText', + message: 'Search by', + description: 'The text explain that the search is making by Algolia', + }), + }, + noResultsScreen: { + noResultsText: translate({ + id: 'theme.SearchModal.noResultsScreen.noResultsText', + message: 'No results for', + description: + 'The text explains that there are no results for the following search', + }), + suggestedQueryText: translate({ + id: 'theme.SearchModal.noResultsScreen.suggestedQueryText', + message: 'Try searching for', + description: + 'The text for the suggested query when no results are found for the following search', + }), + reportMissingResultsText: translate({ + id: 'theme.SearchModal.noResultsScreen.reportMissingResultsText', + message: 'Believe this query should return results?', + description: + 'The text for the question where the user thinks there are missing results', + }), + reportMissingResultsLinkText: translate({ + id: 'theme.SearchModal.noResultsScreen.reportMissingResultsLinkText', + message: 'Let us know.', + description: 'The text for the link to report missing results', + }), + }, + }, + }; + return ( <> @@ -263,6 +407,7 @@ function DocSearch({ })} {...props} searchParameters={searchParameters} + translations={translatedModal} />, searchContainer.current, )} diff --git a/packages/docusaurus-theme-translations/locales/ar/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/ar/theme-search-algolia.json index 3163cef69570..2e3dd5620354 100644 --- a/packages/docusaurus-theme-translations/locales/ar/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/ar/theme-search-algolia.json @@ -1,6 +1,30 @@ { "theme.SearchBar.label": "بحث", "theme.SearchBar.seeAll": "See all {count} results", + "theme.SearchModal.errorScreen.helpText": "You might want to check your network connection.", + "theme.SearchModal.errorScreen.titleText": "Unable to fetch results", + "theme.SearchModal.footer.closeKeyAriaLabel": "Escape key", + "theme.SearchModal.footer.closeText": "to close", + "theme.SearchModal.footer.navigateDownKeyAriaLabel": "Arrow down", + "theme.SearchModal.footer.navigateText": "to navigate", + "theme.SearchModal.footer.navigateUpKeyAriaLabel": "Arrow up", + "theme.SearchModal.footer.searchByText": "Search by", + "theme.SearchModal.footer.selectKeyAriaLabel": "Enter key", + "theme.SearchModal.footer.selectText": "to select", + "theme.SearchModal.noResultsScreen.noResultsText": "No results for", + "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", + "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", + "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", + "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", + "theme.SearchModal.searchBox.cancelButtonText": "Cancel", + "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", + "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", + "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", + "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", + "theme.SearchModal.startScreen.recentSearchesTitle": "Recent", + "theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle": "Remove this search from favorites", + "theme.SearchModal.startScreen.removeRecentSearchButtonTitle": "Remove this search from history", + "theme.SearchModal.startScreen.saveRecentSearchButtonTitle": "Save this search", "theme.SearchPage.algoliaLabel": "البحث بواسطه Algolia", "theme.SearchPage.documentsFound.plurals": "تم العثور على مستند واحد|تم العثور على {count} مستندات", "theme.SearchPage.emptyResultsTitle": "ابحث في الوثائق", diff --git a/packages/docusaurus-theme-translations/locales/base/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/base/theme-search-algolia.json index 053c35c0a385..95019e1d0be6 100644 --- a/packages/docusaurus-theme-translations/locales/base/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/base/theme-search-algolia.json @@ -2,6 +2,54 @@ "theme.SearchBar.label": "Search", "theme.SearchBar.label___DESCRIPTION": "The ARIA label and placeholder for search button", "theme.SearchBar.seeAll": "See all {count} results", + "theme.SearchModal.errorScreen.helpText": "You might want to check your network connection.", + "theme.SearchModal.errorScreen.helpText___DESCRIPTION": "The help text for error screen of search modal", + "theme.SearchModal.errorScreen.titleText": "Unable to fetch results", + "theme.SearchModal.errorScreen.titleText___DESCRIPTION": "The title for error screen of search modal", + "theme.SearchModal.footer.closeKeyAriaLabel": "Escape key", + "theme.SearchModal.footer.closeKeyAriaLabel___DESCRIPTION": "The ARIA label for the Escape key button that close the modal", + "theme.SearchModal.footer.closeText": "to close", + "theme.SearchModal.footer.closeText___DESCRIPTION": "The explanatory text of the action for Escape key", + "theme.SearchModal.footer.navigateDownKeyAriaLabel": "Arrow down", + "theme.SearchModal.footer.navigateDownKeyAriaLabel___DESCRIPTION": "The ARIA label for the Arrow down key button that makes the navigation", + "theme.SearchModal.footer.navigateText": "to navigate", + "theme.SearchModal.footer.navigateText___DESCRIPTION": "The explanatory text of the action for the Arrow up and Arrow down key", + "theme.SearchModal.footer.navigateUpKeyAriaLabel": "Arrow up", + "theme.SearchModal.footer.navigateUpKeyAriaLabel___DESCRIPTION": "The ARIA label for the Arrow up key button that makes the navigation", + "theme.SearchModal.footer.searchByText": "Search by", + "theme.SearchModal.footer.searchByText___DESCRIPTION": "The text explain that the search is making by Algolia", + "theme.SearchModal.footer.selectKeyAriaLabel": "Enter key", + "theme.SearchModal.footer.selectKeyAriaLabel___DESCRIPTION": "The ARIA label for the Enter key button that makes the selection", + "theme.SearchModal.footer.selectText": "to select", + "theme.SearchModal.footer.selectText___DESCRIPTION": "The explanatory text of the action for the enter key", + "theme.SearchModal.noResultsScreen.noResultsText": "No results for", + "theme.SearchModal.noResultsScreen.noResultsText___DESCRIPTION": "The text explains that there are no results for the following search", + "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", + "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText___DESCRIPTION": "The text for the link to report missing results", + "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", + "theme.SearchModal.noResultsScreen.reportMissingResultsText___DESCRIPTION": "The text for the question where the user thinks there are missing results", + "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", + "theme.SearchModal.noResultsScreen.suggestedQueryText___DESCRIPTION": "The text for the suggested query when no results are found for the following search", + "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", + "theme.SearchModal.searchBox.cancelButtonAriaLabel___DESCRIPTION": "The ARIA label for search box cancel button", + "theme.SearchModal.searchBox.cancelButtonText": "Cancel", + "theme.SearchModal.searchBox.cancelButtonText___DESCRIPTION": "The label for search box cancel button", + "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", + "theme.SearchModal.searchBox.resetButtonAriaLabel___DESCRIPTION": "The ARIA label for search box reset button", + "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", + "theme.SearchModal.searchBox.resetButtonTitle___DESCRIPTION": "The label for search box reset button", + "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", + "theme.SearchModal.startScreen.favoriteSearchesTitle___DESCRIPTION": "The title for favorite searches", + "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", + "theme.SearchModal.startScreen.noRecentSearchesText___DESCRIPTION": "The text when no recent searches", + "theme.SearchModal.startScreen.recentSearchesTitle": "Recent", + "theme.SearchModal.startScreen.recentSearchesTitle___DESCRIPTION": "The title for recent searches", + "theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle": "Remove this search from favorites", + "theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle___DESCRIPTION": "The label for remove favorite search button", + "theme.SearchModal.startScreen.removeRecentSearchButtonTitle": "Remove this search from history", + "theme.SearchModal.startScreen.removeRecentSearchButtonTitle___DESCRIPTION": "The label for remove recent search button", + "theme.SearchModal.startScreen.saveRecentSearchButtonTitle": "Save this search", + "theme.SearchModal.startScreen.saveRecentSearchButtonTitle___DESCRIPTION": "The label for save recent search button", "theme.SearchPage.algoliaLabel": "Search by Algolia", "theme.SearchPage.algoliaLabel___DESCRIPTION": "The ARIA label for Algolia mention", "theme.SearchPage.documentsFound.plurals": "One document found|{count} documents found", diff --git a/packages/docusaurus-theme-translations/locales/bn/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/bn/theme-search-algolia.json index 5866b43939ba..dedd0a76731d 100644 --- a/packages/docusaurus-theme-translations/locales/bn/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/bn/theme-search-algolia.json @@ -1,6 +1,30 @@ { "theme.SearchBar.label": "সার্চ", "theme.SearchBar.seeAll": "See all {count} results", + "theme.SearchModal.errorScreen.helpText": "You might want to check your network connection.", + "theme.SearchModal.errorScreen.titleText": "Unable to fetch results", + "theme.SearchModal.footer.closeKeyAriaLabel": "Escape key", + "theme.SearchModal.footer.closeText": "to close", + "theme.SearchModal.footer.navigateDownKeyAriaLabel": "Arrow down", + "theme.SearchModal.footer.navigateText": "to navigate", + "theme.SearchModal.footer.navigateUpKeyAriaLabel": "Arrow up", + "theme.SearchModal.footer.searchByText": "Search by", + "theme.SearchModal.footer.selectKeyAriaLabel": "Enter key", + "theme.SearchModal.footer.selectText": "to select", + "theme.SearchModal.noResultsScreen.noResultsText": "No results for", + "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", + "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", + "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", + "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", + "theme.SearchModal.searchBox.cancelButtonText": "Cancel", + "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", + "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", + "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", + "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", + "theme.SearchModal.startScreen.recentSearchesTitle": "Recent", + "theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle": "Remove this search from favorites", + "theme.SearchModal.startScreen.removeRecentSearchButtonTitle": "Remove this search from history", + "theme.SearchModal.startScreen.saveRecentSearchButtonTitle": "Save this search", "theme.SearchPage.algoliaLabel": "আলগোলিয়া দ্বারা অনুসন্ধান করুন", "theme.SearchPage.documentsFound.plurals": "একটি ডকুমেন্ট পাওয়া গেছে|{count} ডকুমেন্টস পাওয়া গেছে", "theme.SearchPage.emptyResultsTitle": "ডকুমেন্টেশন অনুসন্ধান করুন", diff --git a/packages/docusaurus-theme-translations/locales/cs/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/cs/theme-search-algolia.json index 5fa020f0d778..ceeb6819cbd8 100644 --- a/packages/docusaurus-theme-translations/locales/cs/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/cs/theme-search-algolia.json @@ -1,6 +1,30 @@ { "theme.SearchBar.label": "Hledat", "theme.SearchBar.seeAll": "See all {count} results", + "theme.SearchModal.errorScreen.helpText": "You might want to check your network connection.", + "theme.SearchModal.errorScreen.titleText": "Unable to fetch results", + "theme.SearchModal.footer.closeKeyAriaLabel": "Escape key", + "theme.SearchModal.footer.closeText": "to close", + "theme.SearchModal.footer.navigateDownKeyAriaLabel": "Arrow down", + "theme.SearchModal.footer.navigateText": "to navigate", + "theme.SearchModal.footer.navigateUpKeyAriaLabel": "Arrow up", + "theme.SearchModal.footer.searchByText": "Search by", + "theme.SearchModal.footer.selectKeyAriaLabel": "Enter key", + "theme.SearchModal.footer.selectText": "to select", + "theme.SearchModal.noResultsScreen.noResultsText": "No results for", + "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", + "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", + "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", + "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", + "theme.SearchModal.searchBox.cancelButtonText": "Cancel", + "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", + "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", + "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", + "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", + "theme.SearchModal.startScreen.recentSearchesTitle": "Recent", + "theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle": "Remove this search from favorites", + "theme.SearchModal.startScreen.removeRecentSearchButtonTitle": "Remove this search from history", + "theme.SearchModal.startScreen.saveRecentSearchButtonTitle": "Save this search", "theme.SearchPage.algoliaLabel": "Vyhledávání od Algolia", "theme.SearchPage.documentsFound.plurals": "Jeden dokument nalezen|{count} dokumenty nalezeny|{count} dokumentů nalezeno", "theme.SearchPage.emptyResultsTitle": "Prohledat dokumentaci", diff --git a/packages/docusaurus-theme-translations/locales/da/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/da/theme-search-algolia.json index 7d5a5364d146..49da1e99b7c9 100644 --- a/packages/docusaurus-theme-translations/locales/da/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/da/theme-search-algolia.json @@ -1,6 +1,30 @@ { "theme.SearchBar.label": "Søg", "theme.SearchBar.seeAll": "See all {count} results", + "theme.SearchModal.errorScreen.helpText": "You might want to check your network connection.", + "theme.SearchModal.errorScreen.titleText": "Unable to fetch results", + "theme.SearchModal.footer.closeKeyAriaLabel": "Escape key", + "theme.SearchModal.footer.closeText": "to close", + "theme.SearchModal.footer.navigateDownKeyAriaLabel": "Arrow down", + "theme.SearchModal.footer.navigateText": "to navigate", + "theme.SearchModal.footer.navigateUpKeyAriaLabel": "Arrow up", + "theme.SearchModal.footer.searchByText": "Search by", + "theme.SearchModal.footer.selectKeyAriaLabel": "Enter key", + "theme.SearchModal.footer.selectText": "to select", + "theme.SearchModal.noResultsScreen.noResultsText": "No results for", + "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", + "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", + "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", + "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", + "theme.SearchModal.searchBox.cancelButtonText": "Cancel", + "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", + "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", + "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", + "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", + "theme.SearchModal.startScreen.recentSearchesTitle": "Recent", + "theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle": "Remove this search from favorites", + "theme.SearchModal.startScreen.removeRecentSearchButtonTitle": "Remove this search from history", + "theme.SearchModal.startScreen.saveRecentSearchButtonTitle": "Save this search", "theme.SearchPage.algoliaLabel": "Søg med Algolia", "theme.SearchPage.documentsFound.plurals": "Et dokument fundet|{count} dokumenter fundet", "theme.SearchPage.emptyResultsTitle": "Søg i dokumentationen", diff --git a/packages/docusaurus-theme-translations/locales/de/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/de/theme-search-algolia.json index e0816abc0a81..db20605847f4 100644 --- a/packages/docusaurus-theme-translations/locales/de/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/de/theme-search-algolia.json @@ -1,6 +1,30 @@ { "theme.SearchBar.label": "Suche", "theme.SearchBar.seeAll": "Alle {count} Ergebnisse anzeigen", + "theme.SearchModal.errorScreen.helpText": "You might want to check your network connection.", + "theme.SearchModal.errorScreen.titleText": "Unable to fetch results", + "theme.SearchModal.footer.closeKeyAriaLabel": "Escape key", + "theme.SearchModal.footer.closeText": "to close", + "theme.SearchModal.footer.navigateDownKeyAriaLabel": "Arrow down", + "theme.SearchModal.footer.navigateText": "to navigate", + "theme.SearchModal.footer.navigateUpKeyAriaLabel": "Arrow up", + "theme.SearchModal.footer.searchByText": "Search by", + "theme.SearchModal.footer.selectKeyAriaLabel": "Enter key", + "theme.SearchModal.footer.selectText": "to select", + "theme.SearchModal.noResultsScreen.noResultsText": "No results for", + "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", + "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", + "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", + "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", + "theme.SearchModal.searchBox.cancelButtonText": "Cancel", + "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", + "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", + "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", + "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", + "theme.SearchModal.startScreen.recentSearchesTitle": "Recent", + "theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle": "Remove this search from favorites", + "theme.SearchModal.startScreen.removeRecentSearchButtonTitle": "Remove this search from history", + "theme.SearchModal.startScreen.saveRecentSearchButtonTitle": "Save this search", "theme.SearchPage.algoliaLabel": "Suche von Algolia", "theme.SearchPage.documentsFound.plurals": "Ein Dokument gefunden|{count} Dokumente gefunden", "theme.SearchPage.emptyResultsTitle": "Suche in der Dokumentation", diff --git a/packages/docusaurus-theme-translations/locales/es/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/es/theme-search-algolia.json index 2641c1e1d5b1..add8d19f08eb 100644 --- a/packages/docusaurus-theme-translations/locales/es/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/es/theme-search-algolia.json @@ -1,6 +1,30 @@ { "theme.SearchBar.label": "Buscar", "theme.SearchBar.seeAll": "See all {count} results", + "theme.SearchModal.errorScreen.helpText": "You might want to check your network connection.", + "theme.SearchModal.errorScreen.titleText": "Unable to fetch results", + "theme.SearchModal.footer.closeKeyAriaLabel": "Escape key", + "theme.SearchModal.footer.closeText": "to close", + "theme.SearchModal.footer.navigateDownKeyAriaLabel": "Arrow down", + "theme.SearchModal.footer.navigateText": "to navigate", + "theme.SearchModal.footer.navigateUpKeyAriaLabel": "Arrow up", + "theme.SearchModal.footer.searchByText": "Search by", + "theme.SearchModal.footer.selectKeyAriaLabel": "Enter key", + "theme.SearchModal.footer.selectText": "to select", + "theme.SearchModal.noResultsScreen.noResultsText": "No results for", + "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", + "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", + "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", + "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", + "theme.SearchModal.searchBox.cancelButtonText": "Cancel", + "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", + "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", + "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", + "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", + "theme.SearchModal.startScreen.recentSearchesTitle": "Recent", + "theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle": "Remove this search from favorites", + "theme.SearchModal.startScreen.removeRecentSearchButtonTitle": "Remove this search from history", + "theme.SearchModal.startScreen.saveRecentSearchButtonTitle": "Save this search", "theme.SearchPage.algoliaLabel": "Búsqueda por Algolia", "theme.SearchPage.documentsFound.plurals": "Un documento encontrado|{count} documentos encontrados", "theme.SearchPage.emptyResultsTitle": "Búsqueda en la documentación", diff --git a/packages/docusaurus-theme-translations/locales/fa/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/fa/theme-search-algolia.json index f8e9441a58be..5de8afcf86db 100644 --- a/packages/docusaurus-theme-translations/locales/fa/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/fa/theme-search-algolia.json @@ -1,6 +1,30 @@ { "theme.SearchBar.label": "جستجو", "theme.SearchBar.seeAll": "نمایش {count} نتیجه", + "theme.SearchModal.errorScreen.helpText": "You might want to check your network connection.", + "theme.SearchModal.errorScreen.titleText": "Unable to fetch results", + "theme.SearchModal.footer.closeKeyAriaLabel": "Escape key", + "theme.SearchModal.footer.closeText": "to close", + "theme.SearchModal.footer.navigateDownKeyAriaLabel": "Arrow down", + "theme.SearchModal.footer.navigateText": "to navigate", + "theme.SearchModal.footer.navigateUpKeyAriaLabel": "Arrow up", + "theme.SearchModal.footer.searchByText": "Search by", + "theme.SearchModal.footer.selectKeyAriaLabel": "Enter key", + "theme.SearchModal.footer.selectText": "to select", + "theme.SearchModal.noResultsScreen.noResultsText": "No results for", + "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", + "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", + "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", + "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", + "theme.SearchModal.searchBox.cancelButtonText": "Cancel", + "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", + "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", + "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", + "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", + "theme.SearchModal.startScreen.recentSearchesTitle": "Recent", + "theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle": "Remove this search from favorites", + "theme.SearchModal.startScreen.removeRecentSearchButtonTitle": "Remove this search from history", + "theme.SearchModal.startScreen.saveRecentSearchButtonTitle": "Save this search", "theme.SearchPage.algoliaLabel": "جستجو با Algolia", "theme.SearchPage.documentsFound.plurals": "یک مورد پیدا شد|{count} مورد پیدا شد", "theme.SearchPage.emptyResultsTitle": "جستجو در متن", diff --git a/packages/docusaurus-theme-translations/locales/fil/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/fil/theme-search-algolia.json index a232ab50ae85..eb8bf1c84caa 100644 --- a/packages/docusaurus-theme-translations/locales/fil/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/fil/theme-search-algolia.json @@ -1,6 +1,30 @@ { "theme.SearchBar.label": "Maghanap", "theme.SearchBar.seeAll": "See all {count} results", + "theme.SearchModal.errorScreen.helpText": "You might want to check your network connection.", + "theme.SearchModal.errorScreen.titleText": "Unable to fetch results", + "theme.SearchModal.footer.closeKeyAriaLabel": "Escape key", + "theme.SearchModal.footer.closeText": "to close", + "theme.SearchModal.footer.navigateDownKeyAriaLabel": "Arrow down", + "theme.SearchModal.footer.navigateText": "to navigate", + "theme.SearchModal.footer.navigateUpKeyAriaLabel": "Arrow up", + "theme.SearchModal.footer.searchByText": "Search by", + "theme.SearchModal.footer.selectKeyAriaLabel": "Enter key", + "theme.SearchModal.footer.selectText": "to select", + "theme.SearchModal.noResultsScreen.noResultsText": "No results for", + "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", + "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", + "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", + "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", + "theme.SearchModal.searchBox.cancelButtonText": "Cancel", + "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", + "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", + "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", + "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", + "theme.SearchModal.startScreen.recentSearchesTitle": "Recent", + "theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle": "Remove this search from favorites", + "theme.SearchModal.startScreen.removeRecentSearchButtonTitle": "Remove this search from history", + "theme.SearchModal.startScreen.saveRecentSearchButtonTitle": "Save this search", "theme.SearchPage.algoliaLabel": "Paghahanap hatid ng Algolia", "theme.SearchPage.documentsFound.plurals": "Isang dokumento ang nahanap|{count} na mga dokumento ang nahanap", "theme.SearchPage.emptyResultsTitle": "Maghanap sa dokumentasyón", diff --git a/packages/docusaurus-theme-translations/locales/fr/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/fr/theme-search-algolia.json index f80e0dfac117..e389857b768b 100644 --- a/packages/docusaurus-theme-translations/locales/fr/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/fr/theme-search-algolia.json @@ -1,6 +1,30 @@ { "theme.SearchBar.label": "Chercher", "theme.SearchBar.seeAll": "Voir les {count} résultats", + "theme.SearchModal.errorScreen.helpText": "Vous pouvez vérifier votre connexion réseau.", + "theme.SearchModal.errorScreen.titleText": "Impossible de récupérer les résultats", + "theme.SearchModal.footer.closeKeyAriaLabel": "Touche Echap", + "theme.SearchModal.footer.closeText": "pour fermer", + "theme.SearchModal.footer.navigateDownKeyAriaLabel": "Flèche vers le bas", + "theme.SearchModal.footer.navigateText": "pour naviguer", + "theme.SearchModal.footer.navigateUpKeyAriaLabel": "flèche vers le haut", + "theme.SearchModal.footer.searchByText": "Recherche via", + "theme.SearchModal.footer.selectKeyAriaLabel": "Touche Entrée", + "theme.SearchModal.footer.selectText": "pour sélectionner", + "theme.SearchModal.noResultsScreen.noResultsText": "Aucun résultat pour", + "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Faites-le nous savoir.", + "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Vous pensez que cette requête doit donner des résultats ?", + "theme.SearchModal.noResultsScreen.suggestedQueryText": "Essayez de chercher", + "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Annuler", + "theme.SearchModal.searchBox.cancelButtonText": "Annuler", + "theme.SearchModal.searchBox.resetButtonAriaLabel": "Effacer la requête", + "theme.SearchModal.searchBox.resetButtonTitle": "Effacer la requête", + "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favoris", + "theme.SearchModal.startScreen.noRecentSearchesText": "Aucune recherche récente", + "theme.SearchModal.startScreen.recentSearchesTitle": "Récemment", + "theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle": "Supprimer cette recherche des favoris", + "theme.SearchModal.startScreen.removeRecentSearchButtonTitle": "Supprimer cette recherche de l'historique", + "theme.SearchModal.startScreen.saveRecentSearchButtonTitle": "Sauvegarder cette recherche", "theme.SearchPage.algoliaLabel": "Recherche par Algolia", "theme.SearchPage.documentsFound.plurals": "Un document trouvé|{count} documents trouvés", "theme.SearchPage.emptyResultsTitle": "Rechercher dans la documentation", diff --git a/packages/docusaurus-theme-translations/locales/he/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/he/theme-search-algolia.json index b970ec4bc7ac..d1742bafc534 100644 --- a/packages/docusaurus-theme-translations/locales/he/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/he/theme-search-algolia.json @@ -1,6 +1,30 @@ { "theme.SearchBar.label": "חיפוש", "theme.SearchBar.seeAll": "See all {count} results", + "theme.SearchModal.errorScreen.helpText": "You might want to check your network connection.", + "theme.SearchModal.errorScreen.titleText": "Unable to fetch results", + "theme.SearchModal.footer.closeKeyAriaLabel": "Escape key", + "theme.SearchModal.footer.closeText": "to close", + "theme.SearchModal.footer.navigateDownKeyAriaLabel": "Arrow down", + "theme.SearchModal.footer.navigateText": "to navigate", + "theme.SearchModal.footer.navigateUpKeyAriaLabel": "Arrow up", + "theme.SearchModal.footer.searchByText": "Search by", + "theme.SearchModal.footer.selectKeyAriaLabel": "Enter key", + "theme.SearchModal.footer.selectText": "to select", + "theme.SearchModal.noResultsScreen.noResultsText": "No results for", + "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", + "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", + "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", + "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", + "theme.SearchModal.searchBox.cancelButtonText": "Cancel", + "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", + "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", + "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", + "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", + "theme.SearchModal.startScreen.recentSearchesTitle": "Recent", + "theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle": "Remove this search from favorites", + "theme.SearchModal.startScreen.removeRecentSearchButtonTitle": "Remove this search from history", + "theme.SearchModal.startScreen.saveRecentSearchButtonTitle": "Save this search", "theme.SearchPage.algoliaLabel": "חיפוש by Algolia", "theme.SearchPage.documentsFound.plurals": "נמצא מסמך אחד|{count} מסמכים נמצאו|{count} מסמכים נמצאו|{count} מסמכים נמצאו", "theme.SearchPage.emptyResultsTitle": "חפש בדוקומנטאציה", diff --git a/packages/docusaurus-theme-translations/locales/hi/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/hi/theme-search-algolia.json index 04f8cc5ba05a..ce12ce19a141 100644 --- a/packages/docusaurus-theme-translations/locales/hi/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/hi/theme-search-algolia.json @@ -1,6 +1,30 @@ { "theme.SearchBar.label": "खोज करें", "theme.SearchBar.seeAll": "See all {count} results", + "theme.SearchModal.errorScreen.helpText": "You might want to check your network connection.", + "theme.SearchModal.errorScreen.titleText": "Unable to fetch results", + "theme.SearchModal.footer.closeKeyAriaLabel": "Escape key", + "theme.SearchModal.footer.closeText": "to close", + "theme.SearchModal.footer.navigateDownKeyAriaLabel": "Arrow down", + "theme.SearchModal.footer.navigateText": "to navigate", + "theme.SearchModal.footer.navigateUpKeyAriaLabel": "Arrow up", + "theme.SearchModal.footer.searchByText": "Search by", + "theme.SearchModal.footer.selectKeyAriaLabel": "Enter key", + "theme.SearchModal.footer.selectText": "to select", + "theme.SearchModal.noResultsScreen.noResultsText": "No results for", + "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", + "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", + "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", + "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", + "theme.SearchModal.searchBox.cancelButtonText": "Cancel", + "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", + "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", + "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", + "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", + "theme.SearchModal.startScreen.recentSearchesTitle": "Recent", + "theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle": "Remove this search from favorites", + "theme.SearchModal.startScreen.removeRecentSearchButtonTitle": "Remove this search from history", + "theme.SearchModal.startScreen.saveRecentSearchButtonTitle": "Save this search", "theme.SearchPage.algoliaLabel": "अल्गोलिया द्वारा खोजें", "theme.SearchPage.documentsFound.plurals": "एक डॉक्यूमेंट मिला|{count} डॉक्यूमेंट मिलें", "theme.SearchPage.emptyResultsTitle": "डॉक्यूमेंटेशन में खोजें", diff --git a/packages/docusaurus-theme-translations/locales/it/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/it/theme-search-algolia.json index 36efa98738d6..832b253657e6 100644 --- a/packages/docusaurus-theme-translations/locales/it/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/it/theme-search-algolia.json @@ -1,6 +1,30 @@ { "theme.SearchBar.label": "Cerca", "theme.SearchBar.seeAll": "See all {count} results", + "theme.SearchModal.errorScreen.helpText": "You might want to check your network connection.", + "theme.SearchModal.errorScreen.titleText": "Unable to fetch results", + "theme.SearchModal.footer.closeKeyAriaLabel": "Escape key", + "theme.SearchModal.footer.closeText": "to close", + "theme.SearchModal.footer.navigateDownKeyAriaLabel": "Arrow down", + "theme.SearchModal.footer.navigateText": "to navigate", + "theme.SearchModal.footer.navigateUpKeyAriaLabel": "Arrow up", + "theme.SearchModal.footer.searchByText": "Search by", + "theme.SearchModal.footer.selectKeyAriaLabel": "Enter key", + "theme.SearchModal.footer.selectText": "to select", + "theme.SearchModal.noResultsScreen.noResultsText": "No results for", + "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", + "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", + "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", + "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", + "theme.SearchModal.searchBox.cancelButtonText": "Cancel", + "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", + "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", + "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", + "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", + "theme.SearchModal.startScreen.recentSearchesTitle": "Recent", + "theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle": "Remove this search from favorites", + "theme.SearchModal.startScreen.removeRecentSearchButtonTitle": "Remove this search from history", + "theme.SearchModal.startScreen.saveRecentSearchButtonTitle": "Save this search", "theme.SearchPage.algoliaLabel": "Ricerca tramite Algolia", "theme.SearchPage.documentsFound.plurals": "Un documento trovato|{count} documenti trovati", "theme.SearchPage.emptyResultsTitle": "Cerca nella documentazione", diff --git a/packages/docusaurus-theme-translations/locales/ja/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/ja/theme-search-algolia.json index 21c13e5dce20..2af5517b9c3f 100644 --- a/packages/docusaurus-theme-translations/locales/ja/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/ja/theme-search-algolia.json @@ -1,6 +1,30 @@ { "theme.SearchBar.label": "検索", "theme.SearchBar.seeAll": "See all {count} results", + "theme.SearchModal.errorScreen.helpText": "You might want to check your network connection.", + "theme.SearchModal.errorScreen.titleText": "Unable to fetch results", + "theme.SearchModal.footer.closeKeyAriaLabel": "Escape key", + "theme.SearchModal.footer.closeText": "to close", + "theme.SearchModal.footer.navigateDownKeyAriaLabel": "Arrow down", + "theme.SearchModal.footer.navigateText": "to navigate", + "theme.SearchModal.footer.navigateUpKeyAriaLabel": "Arrow up", + "theme.SearchModal.footer.searchByText": "Search by", + "theme.SearchModal.footer.selectKeyAriaLabel": "Enter key", + "theme.SearchModal.footer.selectText": "to select", + "theme.SearchModal.noResultsScreen.noResultsText": "No results for", + "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", + "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", + "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", + "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", + "theme.SearchModal.searchBox.cancelButtonText": "Cancel", + "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", + "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", + "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", + "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", + "theme.SearchModal.startScreen.recentSearchesTitle": "Recent", + "theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle": "Remove this search from favorites", + "theme.SearchModal.startScreen.removeRecentSearchButtonTitle": "Remove this search from history", + "theme.SearchModal.startScreen.saveRecentSearchButtonTitle": "Save this search", "theme.SearchPage.algoliaLabel": "Algoliaで検索", "theme.SearchPage.documentsFound.plurals": "{count}件のドキュメントが見つかりました", "theme.SearchPage.emptyResultsTitle": "ドキュメントを検索", diff --git a/packages/docusaurus-theme-translations/locales/ko/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/ko/theme-search-algolia.json index 345a288abbf0..61d803a91a93 100644 --- a/packages/docusaurus-theme-translations/locales/ko/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/ko/theme-search-algolia.json @@ -1,6 +1,30 @@ { "theme.SearchBar.label": "검색", "theme.SearchBar.seeAll": "{count}개의 결과 확인하기", + "theme.SearchModal.errorScreen.helpText": "You might want to check your network connection.", + "theme.SearchModal.errorScreen.titleText": "Unable to fetch results", + "theme.SearchModal.footer.closeKeyAriaLabel": "Escape key", + "theme.SearchModal.footer.closeText": "to close", + "theme.SearchModal.footer.navigateDownKeyAriaLabel": "Arrow down", + "theme.SearchModal.footer.navigateText": "to navigate", + "theme.SearchModal.footer.navigateUpKeyAriaLabel": "Arrow up", + "theme.SearchModal.footer.searchByText": "Search by", + "theme.SearchModal.footer.selectKeyAriaLabel": "Enter key", + "theme.SearchModal.footer.selectText": "to select", + "theme.SearchModal.noResultsScreen.noResultsText": "No results for", + "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", + "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", + "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", + "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", + "theme.SearchModal.searchBox.cancelButtonText": "Cancel", + "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", + "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", + "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", + "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", + "theme.SearchModal.startScreen.recentSearchesTitle": "Recent", + "theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle": "Remove this search from favorites", + "theme.SearchModal.startScreen.removeRecentSearchButtonTitle": "Remove this search from history", + "theme.SearchModal.startScreen.saveRecentSearchButtonTitle": "Save this search", "theme.SearchPage.algoliaLabel": "Algolia로 검색", "theme.SearchPage.documentsFound.plurals": "{count}개 문서를 찾았습니다.", "theme.SearchPage.emptyResultsTitle": "문서를 검색합니다.", diff --git a/packages/docusaurus-theme-translations/locales/pl/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/pl/theme-search-algolia.json index 93424aa892a8..e2e154cef0ba 100644 --- a/packages/docusaurus-theme-translations/locales/pl/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/pl/theme-search-algolia.json @@ -1,6 +1,30 @@ { "theme.SearchBar.label": "Szukaj", "theme.SearchBar.seeAll": "Wyświetl wszystkie {count} wyników", + "theme.SearchModal.errorScreen.helpText": "You might want to check your network connection.", + "theme.SearchModal.errorScreen.titleText": "Unable to fetch results", + "theme.SearchModal.footer.closeKeyAriaLabel": "Escape key", + "theme.SearchModal.footer.closeText": "to close", + "theme.SearchModal.footer.navigateDownKeyAriaLabel": "Arrow down", + "theme.SearchModal.footer.navigateText": "to navigate", + "theme.SearchModal.footer.navigateUpKeyAriaLabel": "Arrow up", + "theme.SearchModal.footer.searchByText": "Search by", + "theme.SearchModal.footer.selectKeyAriaLabel": "Enter key", + "theme.SearchModal.footer.selectText": "to select", + "theme.SearchModal.noResultsScreen.noResultsText": "No results for", + "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", + "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", + "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", + "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", + "theme.SearchModal.searchBox.cancelButtonText": "Cancel", + "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", + "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", + "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", + "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", + "theme.SearchModal.startScreen.recentSearchesTitle": "Recent", + "theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle": "Remove this search from favorites", + "theme.SearchModal.startScreen.removeRecentSearchButtonTitle": "Remove this search from history", + "theme.SearchModal.startScreen.saveRecentSearchButtonTitle": "Save this search", "theme.SearchPage.algoliaLabel": "Dostawca rozwiązania Algolia", "theme.SearchPage.documentsFound.plurals": "Jeden dokument znaleziony|{count} dokumenty znalezione|{count} dokumentów znalezionych", "theme.SearchPage.emptyResultsTitle": "Wyszukaj w dokumentacji", diff --git a/packages/docusaurus-theme-translations/locales/pt-BR/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/pt-BR/theme-search-algolia.json index 8ba752bb1363..c33de9825209 100644 --- a/packages/docusaurus-theme-translations/locales/pt-BR/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/pt-BR/theme-search-algolia.json @@ -1,6 +1,30 @@ { "theme.SearchBar.label": "Buscar", "theme.SearchBar.seeAll": "See all {count} results", + "theme.SearchModal.errorScreen.helpText": "You might want to check your network connection.", + "theme.SearchModal.errorScreen.titleText": "Unable to fetch results", + "theme.SearchModal.footer.closeKeyAriaLabel": "Escape key", + "theme.SearchModal.footer.closeText": "to close", + "theme.SearchModal.footer.navigateDownKeyAriaLabel": "Arrow down", + "theme.SearchModal.footer.navigateText": "to navigate", + "theme.SearchModal.footer.navigateUpKeyAriaLabel": "Arrow up", + "theme.SearchModal.footer.searchByText": "Search by", + "theme.SearchModal.footer.selectKeyAriaLabel": "Enter key", + "theme.SearchModal.footer.selectText": "to select", + "theme.SearchModal.noResultsScreen.noResultsText": "No results for", + "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", + "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", + "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", + "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", + "theme.SearchModal.searchBox.cancelButtonText": "Cancel", + "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", + "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", + "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", + "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", + "theme.SearchModal.startScreen.recentSearchesTitle": "Recent", + "theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle": "Remove this search from favorites", + "theme.SearchModal.startScreen.removeRecentSearchButtonTitle": "Remove this search from history", + "theme.SearchModal.startScreen.saveRecentSearchButtonTitle": "Save this search", "theme.SearchPage.algoliaLabel": "Busca feita por Algolia", "theme.SearchPage.documentsFound.plurals": "Um documento encontrado|{count} documentos encontrados", "theme.SearchPage.emptyResultsTitle": "Busca da documentação", diff --git a/packages/docusaurus-theme-translations/locales/pt-PT/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/pt-PT/theme-search-algolia.json index 27ab1b3c58a5..0894be4126e2 100644 --- a/packages/docusaurus-theme-translations/locales/pt-PT/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/pt-PT/theme-search-algolia.json @@ -1,6 +1,30 @@ { "theme.SearchBar.label": "Pesquisar", "theme.SearchBar.seeAll": "See all {count} results", + "theme.SearchModal.errorScreen.helpText": "You might want to check your network connection.", + "theme.SearchModal.errorScreen.titleText": "Unable to fetch results", + "theme.SearchModal.footer.closeKeyAriaLabel": "Escape key", + "theme.SearchModal.footer.closeText": "to close", + "theme.SearchModal.footer.navigateDownKeyAriaLabel": "Arrow down", + "theme.SearchModal.footer.navigateText": "to navigate", + "theme.SearchModal.footer.navigateUpKeyAriaLabel": "Arrow up", + "theme.SearchModal.footer.searchByText": "Search by", + "theme.SearchModal.footer.selectKeyAriaLabel": "Enter key", + "theme.SearchModal.footer.selectText": "to select", + "theme.SearchModal.noResultsScreen.noResultsText": "No results for", + "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", + "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", + "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", + "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", + "theme.SearchModal.searchBox.cancelButtonText": "Cancel", + "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", + "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", + "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", + "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", + "theme.SearchModal.startScreen.recentSearchesTitle": "Recent", + "theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle": "Remove this search from favorites", + "theme.SearchModal.startScreen.removeRecentSearchButtonTitle": "Remove this search from history", + "theme.SearchModal.startScreen.saveRecentSearchButtonTitle": "Save this search", "theme.SearchPage.algoliaLabel": "Pesquisa por Algolia", "theme.SearchPage.documentsFound.plurals": "Um documento encontrado|{count} documentos encontrados", "theme.SearchPage.emptyResultsTitle": "Pesquisar pela documentação", diff --git a/packages/docusaurus-theme-translations/locales/ru/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/ru/theme-search-algolia.json index 2142bc727590..2bf64731efcf 100644 --- a/packages/docusaurus-theme-translations/locales/ru/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/ru/theme-search-algolia.json @@ -1,6 +1,30 @@ { "theme.SearchBar.label": "Поиск", "theme.SearchBar.seeAll": "Посмотреть все результаты ({count})", + "theme.SearchModal.errorScreen.helpText": "You might want to check your network connection.", + "theme.SearchModal.errorScreen.titleText": "Unable to fetch results", + "theme.SearchModal.footer.closeKeyAriaLabel": "Escape key", + "theme.SearchModal.footer.closeText": "to close", + "theme.SearchModal.footer.navigateDownKeyAriaLabel": "Arrow down", + "theme.SearchModal.footer.navigateText": "to navigate", + "theme.SearchModal.footer.navigateUpKeyAriaLabel": "Arrow up", + "theme.SearchModal.footer.searchByText": "Search by", + "theme.SearchModal.footer.selectKeyAriaLabel": "Enter key", + "theme.SearchModal.footer.selectText": "to select", + "theme.SearchModal.noResultsScreen.noResultsText": "No results for", + "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", + "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", + "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", + "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", + "theme.SearchModal.searchBox.cancelButtonText": "Cancel", + "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", + "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", + "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", + "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", + "theme.SearchModal.startScreen.recentSearchesTitle": "Recent", + "theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle": "Remove this search from favorites", + "theme.SearchModal.startScreen.removeRecentSearchButtonTitle": "Remove this search from history", + "theme.SearchModal.startScreen.saveRecentSearchButtonTitle": "Save this search", "theme.SearchPage.algoliaLabel": "Поиск от Algolia", "theme.SearchPage.documentsFound.plurals": "{count} документ|{count} документа|{count} документов", "theme.SearchPage.emptyResultsTitle": "Поиск по сайту", diff --git a/packages/docusaurus-theme-translations/locales/sr/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/sr/theme-search-algolia.json index cb43c520b88d..8527ae7cbece 100644 --- a/packages/docusaurus-theme-translations/locales/sr/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/sr/theme-search-algolia.json @@ -1,6 +1,30 @@ { "theme.SearchBar.label": "Тражи", "theme.SearchBar.seeAll": "See all {count} results", + "theme.SearchModal.errorScreen.helpText": "You might want to check your network connection.", + "theme.SearchModal.errorScreen.titleText": "Unable to fetch results", + "theme.SearchModal.footer.closeKeyAriaLabel": "Escape key", + "theme.SearchModal.footer.closeText": "to close", + "theme.SearchModal.footer.navigateDownKeyAriaLabel": "Arrow down", + "theme.SearchModal.footer.navigateText": "to navigate", + "theme.SearchModal.footer.navigateUpKeyAriaLabel": "Arrow up", + "theme.SearchModal.footer.searchByText": "Search by", + "theme.SearchModal.footer.selectKeyAriaLabel": "Enter key", + "theme.SearchModal.footer.selectText": "to select", + "theme.SearchModal.noResultsScreen.noResultsText": "No results for", + "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", + "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", + "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", + "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", + "theme.SearchModal.searchBox.cancelButtonText": "Cancel", + "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", + "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", + "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", + "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", + "theme.SearchModal.startScreen.recentSearchesTitle": "Recent", + "theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle": "Remove this search from favorites", + "theme.SearchModal.startScreen.removeRecentSearchButtonTitle": "Remove this search from history", + "theme.SearchModal.startScreen.saveRecentSearchButtonTitle": "Save this search", "theme.SearchPage.algoliaLabel": "Претрага из Algolia", "theme.SearchPage.documentsFound.plurals": "Један пронађен документ|{count} пронађених докумената", "theme.SearchPage.emptyResultsTitle": "Тражи документацију", diff --git a/packages/docusaurus-theme-translations/locales/tr/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/tr/theme-search-algolia.json index 0b0965cf5027..987ab40e970e 100644 --- a/packages/docusaurus-theme-translations/locales/tr/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/tr/theme-search-algolia.json @@ -1,6 +1,30 @@ { "theme.SearchBar.label": "Ara", "theme.SearchBar.seeAll": "See all {count} results", + "theme.SearchModal.errorScreen.helpText": "You might want to check your network connection.", + "theme.SearchModal.errorScreen.titleText": "Unable to fetch results", + "theme.SearchModal.footer.closeKeyAriaLabel": "Escape key", + "theme.SearchModal.footer.closeText": "to close", + "theme.SearchModal.footer.navigateDownKeyAriaLabel": "Arrow down", + "theme.SearchModal.footer.navigateText": "to navigate", + "theme.SearchModal.footer.navigateUpKeyAriaLabel": "Arrow up", + "theme.SearchModal.footer.searchByText": "Search by", + "theme.SearchModal.footer.selectKeyAriaLabel": "Enter key", + "theme.SearchModal.footer.selectText": "to select", + "theme.SearchModal.noResultsScreen.noResultsText": "No results for", + "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", + "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", + "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", + "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", + "theme.SearchModal.searchBox.cancelButtonText": "Cancel", + "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", + "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", + "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", + "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", + "theme.SearchModal.startScreen.recentSearchesTitle": "Recent", + "theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle": "Remove this search from favorites", + "theme.SearchModal.startScreen.removeRecentSearchButtonTitle": "Remove this search from history", + "theme.SearchModal.startScreen.saveRecentSearchButtonTitle": "Save this search", "theme.SearchPage.algoliaLabel": "Algolia ile Ara", "theme.SearchPage.documentsFound.plurals": "Bir döküman bulundu|{count} döküman bulundu", "theme.SearchPage.emptyResultsTitle": "Dokümanlarda ara", diff --git a/packages/docusaurus-theme-translations/locales/vi/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/vi/theme-search-algolia.json index d1e1fea0f1de..5c9d62bfb066 100644 --- a/packages/docusaurus-theme-translations/locales/vi/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/vi/theme-search-algolia.json @@ -1,6 +1,30 @@ { "theme.SearchBar.label": "Tìm kiếm", "theme.SearchBar.seeAll": "Xem {count} kết quả", + "theme.SearchModal.errorScreen.helpText": "You might want to check your network connection.", + "theme.SearchModal.errorScreen.titleText": "Unable to fetch results", + "theme.SearchModal.footer.closeKeyAriaLabel": "Escape key", + "theme.SearchModal.footer.closeText": "to close", + "theme.SearchModal.footer.navigateDownKeyAriaLabel": "Arrow down", + "theme.SearchModal.footer.navigateText": "to navigate", + "theme.SearchModal.footer.navigateUpKeyAriaLabel": "Arrow up", + "theme.SearchModal.footer.searchByText": "Search by", + "theme.SearchModal.footer.selectKeyAriaLabel": "Enter key", + "theme.SearchModal.footer.selectText": "to select", + "theme.SearchModal.noResultsScreen.noResultsText": "No results for", + "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", + "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", + "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", + "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", + "theme.SearchModal.searchBox.cancelButtonText": "Cancel", + "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", + "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", + "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", + "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", + "theme.SearchModal.startScreen.recentSearchesTitle": "Recent", + "theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle": "Remove this search from favorites", + "theme.SearchModal.startScreen.removeRecentSearchButtonTitle": "Remove this search from history", + "theme.SearchModal.startScreen.saveRecentSearchButtonTitle": "Save this search", "theme.SearchPage.algoliaLabel": "Tìm kiếm với Algolia", "theme.SearchPage.documentsFound.plurals": "Tìm thấy một kết quả|Tìm thấy {count} kết quả", "theme.SearchPage.emptyResultsTitle": "Tìm kiếm", diff --git a/packages/docusaurus-theme-translations/locales/zh-Hans/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/zh-Hans/theme-search-algolia.json index 7cc4c33e56da..25490b29952a 100644 --- a/packages/docusaurus-theme-translations/locales/zh-Hans/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/zh-Hans/theme-search-algolia.json @@ -1,6 +1,30 @@ { "theme.SearchBar.label": "搜索", "theme.SearchBar.seeAll": "查看全部 {count} 个结果", + "theme.SearchModal.errorScreen.helpText": "You might want to check your network connection.", + "theme.SearchModal.errorScreen.titleText": "Unable to fetch results", + "theme.SearchModal.footer.closeKeyAriaLabel": "Escape key", + "theme.SearchModal.footer.closeText": "to close", + "theme.SearchModal.footer.navigateDownKeyAriaLabel": "Arrow down", + "theme.SearchModal.footer.navigateText": "to navigate", + "theme.SearchModal.footer.navigateUpKeyAriaLabel": "Arrow up", + "theme.SearchModal.footer.searchByText": "Search by", + "theme.SearchModal.footer.selectKeyAriaLabel": "Enter key", + "theme.SearchModal.footer.selectText": "to select", + "theme.SearchModal.noResultsScreen.noResultsText": "No results for", + "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", + "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", + "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", + "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", + "theme.SearchModal.searchBox.cancelButtonText": "Cancel", + "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", + "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", + "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", + "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", + "theme.SearchModal.startScreen.recentSearchesTitle": "Recent", + "theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle": "Remove this search from favorites", + "theme.SearchModal.startScreen.removeRecentSearchButtonTitle": "Remove this search from history", + "theme.SearchModal.startScreen.saveRecentSearchButtonTitle": "Save this search", "theme.SearchPage.algoliaLabel": "通过 Algolia 搜索", "theme.SearchPage.documentsFound.plurals": "找到 {count} 份文件", "theme.SearchPage.emptyResultsTitle": "在文档中搜索", diff --git a/packages/docusaurus-theme-translations/locales/zh-Hant/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/zh-Hant/theme-search-algolia.json index 69f908f89198..3a50d7dd6a55 100644 --- a/packages/docusaurus-theme-translations/locales/zh-Hant/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/zh-Hant/theme-search-algolia.json @@ -1,6 +1,30 @@ { "theme.SearchBar.label": "搜尋", "theme.SearchBar.seeAll": "查看全部 {count} 個結果", + "theme.SearchModal.errorScreen.helpText": "You might want to check your network connection.", + "theme.SearchModal.errorScreen.titleText": "Unable to fetch results", + "theme.SearchModal.footer.closeKeyAriaLabel": "Escape key", + "theme.SearchModal.footer.closeText": "to close", + "theme.SearchModal.footer.navigateDownKeyAriaLabel": "Arrow down", + "theme.SearchModal.footer.navigateText": "to navigate", + "theme.SearchModal.footer.navigateUpKeyAriaLabel": "Arrow up", + "theme.SearchModal.footer.searchByText": "Search by", + "theme.SearchModal.footer.selectKeyAriaLabel": "Enter key", + "theme.SearchModal.footer.selectText": "to select", + "theme.SearchModal.noResultsScreen.noResultsText": "No results for", + "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", + "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", + "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", + "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", + "theme.SearchModal.searchBox.cancelButtonText": "Cancel", + "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", + "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", + "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", + "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", + "theme.SearchModal.startScreen.recentSearchesTitle": "Recent", + "theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle": "Remove this search from favorites", + "theme.SearchModal.startScreen.removeRecentSearchButtonTitle": "Remove this search from history", + "theme.SearchModal.startScreen.saveRecentSearchButtonTitle": "Save this search", "theme.SearchPage.algoliaLabel": "透過 Algolia 搜尋", "theme.SearchPage.documentsFound.plurals": "找到 {count} 份文件", "theme.SearchPage.emptyResultsTitle": "在文件中搜尋", From b177a48f8a65105b86be4fd81a28d3365b5b36b4 Mon Sep 17 00:00:00 2001 From: Joshua Chen Date: Thu, 23 Jun 2022 18:17:11 +0800 Subject: [PATCH 2/8] zh --- .../locales/zh-Hans/theme-search-algolia.json | 48 +++++++++---------- .../locales/zh-Hant/theme-search-algolia.json | 48 +++++++++---------- 2 files changed, 48 insertions(+), 48 deletions(-) diff --git a/packages/docusaurus-theme-translations/locales/zh-Hans/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/zh-Hans/theme-search-algolia.json index 25490b29952a..7657806a4b2d 100644 --- a/packages/docusaurus-theme-translations/locales/zh-Hans/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/zh-Hans/theme-search-algolia.json @@ -1,30 +1,30 @@ { "theme.SearchBar.label": "搜索", "theme.SearchBar.seeAll": "查看全部 {count} 个结果", - "theme.SearchModal.errorScreen.helpText": "You might want to check your network connection.", - "theme.SearchModal.errorScreen.titleText": "Unable to fetch results", - "theme.SearchModal.footer.closeKeyAriaLabel": "Escape key", - "theme.SearchModal.footer.closeText": "to close", - "theme.SearchModal.footer.navigateDownKeyAriaLabel": "Arrow down", - "theme.SearchModal.footer.navigateText": "to navigate", - "theme.SearchModal.footer.navigateUpKeyAriaLabel": "Arrow up", - "theme.SearchModal.footer.searchByText": "Search by", - "theme.SearchModal.footer.selectKeyAriaLabel": "Enter key", - "theme.SearchModal.footer.selectText": "to select", - "theme.SearchModal.noResultsScreen.noResultsText": "No results for", - "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", - "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", - "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", - "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", - "theme.SearchModal.searchBox.cancelButtonText": "Cancel", - "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", - "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", - "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", - "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", - "theme.SearchModal.startScreen.recentSearchesTitle": "Recent", - "theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle": "Remove this search from favorites", - "theme.SearchModal.startScreen.removeRecentSearchButtonTitle": "Remove this search from history", - "theme.SearchModal.startScreen.saveRecentSearchButtonTitle": "Save this search", + "theme.SearchModal.errorScreen.helpText": "你可能需要检查网络连接。", + "theme.SearchModal.errorScreen.titleText": "无法获取结果", + "theme.SearchModal.footer.closeKeyAriaLabel": "Esc 键", + "theme.SearchModal.footer.closeText": "关闭", + "theme.SearchModal.footer.navigateDownKeyAriaLabel": "向下键", + "theme.SearchModal.footer.navigateText": "导航", + "theme.SearchModal.footer.navigateUpKeyAriaLabel": "向上键", + "theme.SearchModal.footer.searchByText": "搜索提供", + "theme.SearchModal.footer.selectKeyAriaLabel": "Enter 键", + "theme.SearchModal.footer.selectText": "选中", + "theme.SearchModal.noResultsScreen.noResultsText": "没有结果:", + "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "请告知我们。", + "theme.SearchModal.noResultsScreen.reportMissingResultsText": "认为这个查询应该有结果?", + "theme.SearchModal.noResultsScreen.suggestedQueryText": "试试搜索", + "theme.SearchModal.searchBox.cancelButtonAriaLabel": "取消", + "theme.SearchModal.searchBox.cancelButtonText": "取消", + "theme.SearchModal.searchBox.resetButtonAriaLabel": "清除查询", + "theme.SearchModal.searchBox.resetButtonTitle": "清除查询", + "theme.SearchModal.startScreen.favoriteSearchesTitle": "收藏", + "theme.SearchModal.startScreen.noRecentSearchesText": "没有最近搜索", + "theme.SearchModal.startScreen.recentSearchesTitle": "最近搜索", + "theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle": "从收藏列表中删除这个搜索", + "theme.SearchModal.startScreen.removeRecentSearchButtonTitle": "从历史记录中删除这个搜索", + "theme.SearchModal.startScreen.saveRecentSearchButtonTitle": "保存这个搜索", "theme.SearchPage.algoliaLabel": "通过 Algolia 搜索", "theme.SearchPage.documentsFound.plurals": "找到 {count} 份文件", "theme.SearchPage.emptyResultsTitle": "在文档中搜索", diff --git a/packages/docusaurus-theme-translations/locales/zh-Hant/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/zh-Hant/theme-search-algolia.json index 3a50d7dd6a55..b24405413eb2 100644 --- a/packages/docusaurus-theme-translations/locales/zh-Hant/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/zh-Hant/theme-search-algolia.json @@ -1,30 +1,30 @@ { "theme.SearchBar.label": "搜尋", "theme.SearchBar.seeAll": "查看全部 {count} 個結果", - "theme.SearchModal.errorScreen.helpText": "You might want to check your network connection.", - "theme.SearchModal.errorScreen.titleText": "Unable to fetch results", - "theme.SearchModal.footer.closeKeyAriaLabel": "Escape key", - "theme.SearchModal.footer.closeText": "to close", - "theme.SearchModal.footer.navigateDownKeyAriaLabel": "Arrow down", - "theme.SearchModal.footer.navigateText": "to navigate", - "theme.SearchModal.footer.navigateUpKeyAriaLabel": "Arrow up", - "theme.SearchModal.footer.searchByText": "Search by", - "theme.SearchModal.footer.selectKeyAriaLabel": "Enter key", - "theme.SearchModal.footer.selectText": "to select", - "theme.SearchModal.noResultsScreen.noResultsText": "No results for", - "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", - "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", - "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", - "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", - "theme.SearchModal.searchBox.cancelButtonText": "Cancel", - "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", - "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", - "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", - "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", - "theme.SearchModal.startScreen.recentSearchesTitle": "Recent", - "theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle": "Remove this search from favorites", - "theme.SearchModal.startScreen.removeRecentSearchButtonTitle": "Remove this search from history", - "theme.SearchModal.startScreen.saveRecentSearchButtonTitle": "Save this search", + "theme.SearchModal.errorScreen.helpText": "你可能需要檢查網路連接。", + "theme.SearchModal.errorScreen.titleText": "無法獲取結果", + "theme.SearchModal.footer.closeKeyAriaLabel": "Esc 鍵", + "theme.SearchModal.footer.closeText": "關閉", + "theme.SearchModal.footer.navigateDownKeyAriaLabel": "向下鍵", + "theme.SearchModal.footer.navigateText": "導航", + "theme.SearchModal.footer.navigateUpKeyAriaLabel": "向上鍵", + "theme.SearchModal.footer.searchByText": "搜索提供", + "theme.SearchModal.footer.selectKeyAriaLabel": "Enter 鍵", + "theme.SearchModal.footer.selectText": "選中", + "theme.SearchModal.noResultsScreen.noResultsText": "沒有結果:", + "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "請告知我們。", + "theme.SearchModal.noResultsScreen.reportMissingResultsText": "認為這個查詢應該有結果?", + "theme.SearchModal.noResultsScreen.suggestedQueryText": "試試搜索", + "theme.SearchModal.searchBox.cancelButtonAriaLabel": "取消", + "theme.SearchModal.searchBox.cancelButtonText": "取消", + "theme.SearchModal.searchBox.resetButtonAriaLabel": "清除查詢", + "theme.SearchModal.searchBox.resetButtonTitle": "清除查詢", + "theme.SearchModal.startScreen.favoriteSearchesTitle": "收藏", + "theme.SearchModal.startScreen.noRecentSearchesText": "沒有最近搜索", + "theme.SearchModal.startScreen.recentSearchesTitle": "最近搜索", + "theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle": "從收藏列表中刪除這個搜索", + "theme.SearchModal.startScreen.removeRecentSearchButtonTitle": "從歷史記錄中刪除這個搜索", + "theme.SearchModal.startScreen.saveRecentSearchButtonTitle": "保存這個搜索", "theme.SearchPage.algoliaLabel": "透過 Algolia 搜尋", "theme.SearchPage.documentsFound.plurals": "找到 {count} 份文件", "theme.SearchPage.emptyResultsTitle": "在文件中搜尋", From 6ac9a3f3bd5753c3d4dea78488243ed57d4dd547 Mon Sep 17 00:00:00 2001 From: forresst Date: Thu, 23 Jun 2022 16:46:58 +0200 Subject: [PATCH 3/8] extract translations to a separate file and delete duplicate translations --- .../src/theme/SearchBar/index.tsx | 164 +---------------- .../src/theme/SearchBar/translations.ts | 173 ++++++++++++++++++ .../locales/ar/theme-search-algolia.json | 3 +- .../locales/base/theme-search-algolia.json | 10 +- .../locales/bn/theme-search-algolia.json | 3 +- .../locales/cs/theme-search-algolia.json | 3 +- .../locales/da/theme-search-algolia.json | 3 +- .../locales/de/theme-search-algolia.json | 3 +- .../locales/es/theme-search-algolia.json | 3 +- .../locales/fa/theme-search-algolia.json | 3 +- .../locales/fil/theme-search-algolia.json | 3 +- .../locales/fr/theme-search-algolia.json | 3 +- .../locales/he/theme-search-algolia.json | 3 +- .../locales/hi/theme-search-algolia.json | 3 +- .../locales/it/theme-search-algolia.json | 3 +- .../locales/ja/theme-search-algolia.json | 3 +- .../locales/ko/theme-search-algolia.json | 3 +- .../locales/pl/theme-search-algolia.json | 3 +- .../locales/pt-BR/theme-search-algolia.json | 3 +- .../locales/pt-PT/theme-search-algolia.json | 3 +- .../locales/ru/theme-search-algolia.json | 3 +- .../locales/sr/theme-search-algolia.json | 3 +- .../locales/tr/theme-search-algolia.json | 3 +- .../locales/vi/theme-search-algolia.json | 3 +- .../locales/zh-Hans/theme-search-algolia.json | 3 +- .../locales/zh-Hant/theme-search-algolia.json | 3 +- 26 files changed, 208 insertions(+), 208 deletions(-) create mode 100644 packages/docusaurus-theme-search-algolia/src/theme/SearchBar/translations.ts diff --git a/packages/docusaurus-theme-search-algolia/src/theme/SearchBar/index.tsx b/packages/docusaurus-theme-search-algolia/src/theme/SearchBar/index.tsx index 2aa0e9fbc26c..edf6f9b6eb72 100644 --- a/packages/docusaurus-theme-search-algolia/src/theme/SearchBar/index.tsx +++ b/packages/docusaurus-theme-search-algolia/src/theme/SearchBar/index.tsx @@ -15,12 +15,15 @@ import Head from '@docusaurus/Head'; import {isRegexpStringMatch, useSearchPage} from '@docusaurus/theme-common'; import {DocSearchButton, useDocSearchKeyboardEvents} from '@docsearch/react'; import {useAlgoliaContextualFacetFilters} from '@docusaurus/theme-search-algolia/client'; -import Translate, {translate} from '@docusaurus/Translate'; +import Translate from '@docusaurus/Translate'; +import { + docSearchTranslations, + placeholderDocSearchTranslation, +} from './translations'; import type { DocSearchModal as DocSearchModalType, DocSearchModalProps, - DocSearchTranslations, } from '@docsearch/react'; import type { InternalDocSearchHit, @@ -216,155 +219,6 @@ function DocSearch({ searchButtonRef, }); - const translatedSearchLabel = translate({ - id: 'theme.SearchBar.label', - message: 'Search', - description: 'The ARIA label and placeholder for search button', - }); - - const translatedModal: DocSearchTranslations = { - modal: { - searchBox: { - resetButtonTitle: translate({ - id: 'theme.SearchModal.searchBox.resetButtonTitle', - message: 'Clear the query', - description: 'The label for search box reset button', - }), - resetButtonAriaLabel: translate({ - id: 'theme.SearchModal.searchBox.resetButtonAriaLabel', - message: 'Clear the query', - description: 'The ARIA label for search box reset button', - }), - cancelButtonText: translate({ - id: 'theme.SearchModal.searchBox.cancelButtonText', - message: 'Cancel', - description: 'The label for search box cancel button', - }), - cancelButtonAriaLabel: translate({ - id: 'theme.SearchModal.searchBox.cancelButtonAriaLabel', - message: 'Cancel', - description: 'The ARIA label for search box cancel button', - }), - }, - startScreen: { - recentSearchesTitle: translate({ - id: 'theme.SearchModal.startScreen.recentSearchesTitle', - message: 'Recent', - description: 'The title for recent searches', - }), - noRecentSearchesText: translate({ - id: 'theme.SearchModal.startScreen.noRecentSearchesText', - message: 'No recent searches', - description: 'The text when no recent searches', - }), - saveRecentSearchButtonTitle: translate({ - id: 'theme.SearchModal.startScreen.saveRecentSearchButtonTitle', - message: 'Save this search', - description: 'The label for save recent search button', - }), - removeRecentSearchButtonTitle: translate({ - id: 'theme.SearchModal.startScreen.removeRecentSearchButtonTitle', - message: 'Remove this search from history', - description: 'The label for remove recent search button', - }), - favoriteSearchesTitle: translate({ - id: 'theme.SearchModal.startScreen.favoriteSearchesTitle', - message: 'Favorite', - description: 'The title for favorite searches', - }), - removeFavoriteSearchButtonTitle: translate({ - id: 'theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle', - message: 'Remove this search from favorites', - description: 'The label for remove favorite search button', - }), - }, - errorScreen: { - titleText: translate({ - id: 'theme.SearchModal.errorScreen.titleText', - message: 'Unable to fetch results', - description: 'The title for error screen of search modal', - }), - helpText: translate({ - id: 'theme.SearchModal.errorScreen.helpText', - message: 'You might want to check your network connection.', - description: 'The help text for error screen of search modal', - }), - }, - footer: { - selectText: translate({ - id: 'theme.SearchModal.footer.selectText', - message: 'to select', - description: 'The explanatory text of the action for the enter key', - }), - selectKeyAriaLabel: translate({ - id: 'theme.SearchModal.footer.selectKeyAriaLabel', - message: 'Enter key', - description: - 'The ARIA label for the Enter key button that makes the selection', - }), - navigateText: translate({ - id: 'theme.SearchModal.footer.navigateText', - message: 'to navigate', - description: - 'The explanatory text of the action for the Arrow up and Arrow down key', - }), - navigateUpKeyAriaLabel: translate({ - id: 'theme.SearchModal.footer.navigateUpKeyAriaLabel', - message: 'Arrow up', - description: - 'The ARIA label for the Arrow up key button that makes the navigation', - }), - navigateDownKeyAriaLabel: translate({ - id: 'theme.SearchModal.footer.navigateDownKeyAriaLabel', - message: 'Arrow down', - description: - 'The ARIA label for the Arrow down key button that makes the navigation', - }), - closeText: translate({ - id: 'theme.SearchModal.footer.closeText', - message: 'to close', - description: 'The explanatory text of the action for Escape key', - }), - closeKeyAriaLabel: translate({ - id: 'theme.SearchModal.footer.closeKeyAriaLabel', - message: 'Escape key', - description: - 'The ARIA label for the Escape key button that close the modal', - }), - searchByText: translate({ - id: 'theme.SearchModal.footer.searchByText', - message: 'Search by', - description: 'The text explain that the search is making by Algolia', - }), - }, - noResultsScreen: { - noResultsText: translate({ - id: 'theme.SearchModal.noResultsScreen.noResultsText', - message: 'No results for', - description: - 'The text explains that there are no results for the following search', - }), - suggestedQueryText: translate({ - id: 'theme.SearchModal.noResultsScreen.suggestedQueryText', - message: 'Try searching for', - description: - 'The text for the suggested query when no results are found for the following search', - }), - reportMissingResultsText: translate({ - id: 'theme.SearchModal.noResultsScreen.reportMissingResultsText', - message: 'Believe this query should return results?', - description: - 'The text for the question where the user thinks there are missing results', - }), - reportMissingResultsLinkText: translate({ - id: 'theme.SearchModal.noResultsScreen.reportMissingResultsLinkText', - message: 'Let us know.', - description: 'The text for the link to report missing results', - }), - }, - }, - }; - return ( <> @@ -384,10 +238,7 @@ function DocSearch({ onMouseOver={importDocSearchModalIfNeeded} onClick={onOpen} ref={searchButtonRef} - translations={{ - buttonText: translatedSearchLabel, - buttonAriaLabel: translatedSearchLabel, - }} + translations={docSearchTranslations.button} /> {isOpen && @@ -407,7 +258,8 @@ function DocSearch({ })} {...props} searchParameters={searchParameters} - translations={translatedModal} + placeholder={placeholderDocSearchTranslation} + translations={docSearchTranslations.modal} />, searchContainer.current, )} diff --git a/packages/docusaurus-theme-search-algolia/src/theme/SearchBar/translations.ts b/packages/docusaurus-theme-search-algolia/src/theme/SearchBar/translations.ts new file mode 100644 index 000000000000..79142928588f --- /dev/null +++ b/packages/docusaurus-theme-search-algolia/src/theme/SearchBar/translations.ts @@ -0,0 +1,173 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +import {translate} from '@docusaurus/Translate'; + +import type {DocSearchTranslations} from '@docsearch/react'; + +const docSearchTranslations: DocSearchTranslations = { + button: { + buttonText: translate({ + id: 'theme.SearchBar.label', + message: 'Search', + description: 'The ARIA label and placeholder for search button', + }), + buttonAriaLabel: translate({ + id: 'theme.SearchBar.label', + message: 'Search', + description: 'The ARIA label and placeholder for search button', + }), + }, + modal: { + searchBox: { + resetButtonTitle: translate({ + id: 'theme.SearchModal.searchBox.resetButtonTitle', + message: 'Clear the query', + description: 'The label and ARIA label for search box reset button', + }), + resetButtonAriaLabel: translate({ + id: 'theme.SearchModal.searchBox.resetButtonTitle', + message: 'Clear the query', + description: 'The label and ARIA label for search box reset button', + }), + cancelButtonText: translate({ + id: 'theme.SearchModal.searchBox.cancelButtonText', + message: 'Cancel', + description: 'The label and ARIA label for search box cancel button', + }), + cancelButtonAriaLabel: translate({ + id: 'theme.SearchModal.searchBox.cancelButtonText', + message: 'Cancel', + description: 'The label and ARIA label for search box cancel button', + }), + }, + startScreen: { + recentSearchesTitle: translate({ + id: 'theme.SearchModal.startScreen.recentSearchesTitle', + message: 'Recent', + description: 'The title for recent searches', + }), + noRecentSearchesText: translate({ + id: 'theme.SearchModal.startScreen.noRecentSearchesText', + message: 'No recent searches', + description: 'The text when no recent searches', + }), + saveRecentSearchButtonTitle: translate({ + id: 'theme.SearchModal.startScreen.saveRecentSearchButtonTitle', + message: 'Save this search', + description: 'The label for save recent search button', + }), + removeRecentSearchButtonTitle: translate({ + id: 'theme.SearchModal.startScreen.removeRecentSearchButtonTitle', + message: 'Remove this search from history', + description: 'The label for remove recent search button', + }), + favoriteSearchesTitle: translate({ + id: 'theme.SearchModal.startScreen.favoriteSearchesTitle', + message: 'Favorite', + description: 'The title for favorite searches', + }), + removeFavoriteSearchButtonTitle: translate({ + id: 'theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle', + message: 'Remove this search from favorites', + description: 'The label for remove favorite search button', + }), + }, + errorScreen: { + titleText: translate({ + id: 'theme.SearchModal.errorScreen.titleText', + message: 'Unable to fetch results', + description: 'The title for error screen of search modal', + }), + helpText: translate({ + id: 'theme.SearchModal.errorScreen.helpText', + message: 'You might want to check your network connection.', + description: 'The help text for error screen of search modal', + }), + }, + footer: { + selectText: translate({ + id: 'theme.SearchModal.footer.selectText', + message: 'to select', + description: 'The explanatory text of the action for the enter key', + }), + selectKeyAriaLabel: translate({ + id: 'theme.SearchModal.footer.selectKeyAriaLabel', + message: 'Enter key', + description: + 'The ARIA label for the Enter key button that makes the selection', + }), + navigateText: translate({ + id: 'theme.SearchModal.footer.navigateText', + message: 'to navigate', + description: + 'The explanatory text of the action for the Arrow up and Arrow down key', + }), + navigateUpKeyAriaLabel: translate({ + id: 'theme.SearchModal.footer.navigateUpKeyAriaLabel', + message: 'Arrow up', + description: + 'The ARIA label for the Arrow up key button that makes the navigation', + }), + navigateDownKeyAriaLabel: translate({ + id: 'theme.SearchModal.footer.navigateDownKeyAriaLabel', + message: 'Arrow down', + description: + 'The ARIA label for the Arrow down key button that makes the navigation', + }), + closeText: translate({ + id: 'theme.SearchModal.footer.closeText', + message: 'to close', + description: 'The explanatory text of the action for Escape key', + }), + closeKeyAriaLabel: translate({ + id: 'theme.SearchModal.footer.closeKeyAriaLabel', + message: 'Escape key', + description: + 'The ARIA label for the Escape key button that close the modal', + }), + searchByText: translate({ + id: 'theme.SearchModal.footer.searchByText', + message: 'Search by', + description: 'The text explain that the search is making by Algolia', + }), + }, + noResultsScreen: { + noResultsText: translate({ + id: 'theme.SearchModal.noResultsScreen.noResultsText', + message: 'No results for', + description: + 'The text explains that there are no results for the following search', + }), + suggestedQueryText: translate({ + id: 'theme.SearchModal.noResultsScreen.suggestedQueryText', + message: 'Try searching for', + description: + 'The text for the suggested query when no results are found for the following search', + }), + reportMissingResultsText: translate({ + id: 'theme.SearchModal.noResultsScreen.reportMissingResultsText', + message: 'Believe this query should return results?', + description: + 'The text for the question where the user thinks there are missing results', + }), + reportMissingResultsLinkText: translate({ + id: 'theme.SearchModal.noResultsScreen.reportMissingResultsLinkText', + message: 'Let us know.', + description: 'The text for the link to report missing results', + }), + }, + }, +}; + +const placeholderDocSearchTranslation = translate({ + id: 'theme.SearchModal.placeholder', + message: 'Search docs', + description: 'The placeholder of the input of the DocSearch pop-up modal', +}); + +export default {docSearchTranslations, placeholderDocSearchTranslation}; diff --git a/packages/docusaurus-theme-translations/locales/ar/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/ar/theme-search-algolia.json index 2e3dd5620354..2bb921137a7d 100644 --- a/packages/docusaurus-theme-translations/locales/ar/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/ar/theme-search-algolia.json @@ -15,9 +15,8 @@ "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", - "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", + "theme.SearchModal.placeholder": "Search docs", "theme.SearchModal.searchBox.cancelButtonText": "Cancel", - "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", diff --git a/packages/docusaurus-theme-translations/locales/base/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/base/theme-search-algolia.json index 95019e1d0be6..dc394f4d8819 100644 --- a/packages/docusaurus-theme-translations/locales/base/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/base/theme-search-algolia.json @@ -30,14 +30,12 @@ "theme.SearchModal.noResultsScreen.reportMissingResultsText___DESCRIPTION": "The text for the question where the user thinks there are missing results", "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", "theme.SearchModal.noResultsScreen.suggestedQueryText___DESCRIPTION": "The text for the suggested query when no results are found for the following search", - "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", - "theme.SearchModal.searchBox.cancelButtonAriaLabel___DESCRIPTION": "The ARIA label for search box cancel button", + "theme.SearchModal.placeholder": "Search docs", + "theme.SearchModal.placeholder___DESCRIPTION": "The placeholder of the input of the DocSearch pop-up modal", "theme.SearchModal.searchBox.cancelButtonText": "Cancel", - "theme.SearchModal.searchBox.cancelButtonText___DESCRIPTION": "The label for search box cancel button", - "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", - "theme.SearchModal.searchBox.resetButtonAriaLabel___DESCRIPTION": "The ARIA label for search box reset button", + "theme.SearchModal.searchBox.cancelButtonText___DESCRIPTION": "The label and ARIA label for search box cancel button", "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", - "theme.SearchModal.searchBox.resetButtonTitle___DESCRIPTION": "The label for search box reset button", + "theme.SearchModal.searchBox.resetButtonTitle___DESCRIPTION": "The label and ARIA label for search box reset button", "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", "theme.SearchModal.startScreen.favoriteSearchesTitle___DESCRIPTION": "The title for favorite searches", "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", diff --git a/packages/docusaurus-theme-translations/locales/bn/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/bn/theme-search-algolia.json index dedd0a76731d..b6d157a5a50a 100644 --- a/packages/docusaurus-theme-translations/locales/bn/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/bn/theme-search-algolia.json @@ -15,9 +15,8 @@ "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", - "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", + "theme.SearchModal.placeholder": "Search docs", "theme.SearchModal.searchBox.cancelButtonText": "Cancel", - "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", diff --git a/packages/docusaurus-theme-translations/locales/cs/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/cs/theme-search-algolia.json index ceeb6819cbd8..8c8d092d0132 100644 --- a/packages/docusaurus-theme-translations/locales/cs/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/cs/theme-search-algolia.json @@ -15,9 +15,8 @@ "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", - "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", + "theme.SearchModal.placeholder": "Search docs", "theme.SearchModal.searchBox.cancelButtonText": "Cancel", - "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", diff --git a/packages/docusaurus-theme-translations/locales/da/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/da/theme-search-algolia.json index 49da1e99b7c9..be4f09438456 100644 --- a/packages/docusaurus-theme-translations/locales/da/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/da/theme-search-algolia.json @@ -15,9 +15,8 @@ "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", - "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", + "theme.SearchModal.placeholder": "Search docs", "theme.SearchModal.searchBox.cancelButtonText": "Cancel", - "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", diff --git a/packages/docusaurus-theme-translations/locales/de/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/de/theme-search-algolia.json index db20605847f4..5aa48122ad13 100644 --- a/packages/docusaurus-theme-translations/locales/de/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/de/theme-search-algolia.json @@ -15,9 +15,8 @@ "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", - "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", + "theme.SearchModal.placeholder": "Search docs", "theme.SearchModal.searchBox.cancelButtonText": "Cancel", - "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", diff --git a/packages/docusaurus-theme-translations/locales/es/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/es/theme-search-algolia.json index add8d19f08eb..23989d2277ea 100644 --- a/packages/docusaurus-theme-translations/locales/es/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/es/theme-search-algolia.json @@ -15,9 +15,8 @@ "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", - "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", + "theme.SearchModal.placeholder": "Search docs", "theme.SearchModal.searchBox.cancelButtonText": "Cancel", - "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", diff --git a/packages/docusaurus-theme-translations/locales/fa/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/fa/theme-search-algolia.json index 5de8afcf86db..fac59483e71e 100644 --- a/packages/docusaurus-theme-translations/locales/fa/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/fa/theme-search-algolia.json @@ -15,9 +15,8 @@ "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", - "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", + "theme.SearchModal.placeholder": "Search docs", "theme.SearchModal.searchBox.cancelButtonText": "Cancel", - "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", diff --git a/packages/docusaurus-theme-translations/locales/fil/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/fil/theme-search-algolia.json index eb8bf1c84caa..d17d797dedf0 100644 --- a/packages/docusaurus-theme-translations/locales/fil/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/fil/theme-search-algolia.json @@ -15,9 +15,8 @@ "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", - "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", + "theme.SearchModal.placeholder": "Search docs", "theme.SearchModal.searchBox.cancelButtonText": "Cancel", - "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", diff --git a/packages/docusaurus-theme-translations/locales/fr/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/fr/theme-search-algolia.json index e389857b768b..acd695988714 100644 --- a/packages/docusaurus-theme-translations/locales/fr/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/fr/theme-search-algolia.json @@ -15,9 +15,8 @@ "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Faites-le nous savoir.", "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Vous pensez que cette requête doit donner des résultats ?", "theme.SearchModal.noResultsScreen.suggestedQueryText": "Essayez de chercher", - "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Annuler", + "theme.SearchModal.placeholder": "Rechercher des docs", "theme.SearchModal.searchBox.cancelButtonText": "Annuler", - "theme.SearchModal.searchBox.resetButtonAriaLabel": "Effacer la requête", "theme.SearchModal.searchBox.resetButtonTitle": "Effacer la requête", "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favoris", "theme.SearchModal.startScreen.noRecentSearchesText": "Aucune recherche récente", diff --git a/packages/docusaurus-theme-translations/locales/he/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/he/theme-search-algolia.json index d1742bafc534..75f2ca642c22 100644 --- a/packages/docusaurus-theme-translations/locales/he/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/he/theme-search-algolia.json @@ -15,9 +15,8 @@ "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", - "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", + "theme.SearchModal.placeholder": "Search docs", "theme.SearchModal.searchBox.cancelButtonText": "Cancel", - "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", diff --git a/packages/docusaurus-theme-translations/locales/hi/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/hi/theme-search-algolia.json index ce12ce19a141..f718a2fac5f2 100644 --- a/packages/docusaurus-theme-translations/locales/hi/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/hi/theme-search-algolia.json @@ -15,9 +15,8 @@ "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", - "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", + "theme.SearchModal.placeholder": "Search docs", "theme.SearchModal.searchBox.cancelButtonText": "Cancel", - "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", diff --git a/packages/docusaurus-theme-translations/locales/it/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/it/theme-search-algolia.json index 832b253657e6..e0a216586630 100644 --- a/packages/docusaurus-theme-translations/locales/it/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/it/theme-search-algolia.json @@ -15,9 +15,8 @@ "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", - "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", + "theme.SearchModal.placeholder": "Search docs", "theme.SearchModal.searchBox.cancelButtonText": "Cancel", - "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", diff --git a/packages/docusaurus-theme-translations/locales/ja/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/ja/theme-search-algolia.json index 2af5517b9c3f..ca381283d01c 100644 --- a/packages/docusaurus-theme-translations/locales/ja/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/ja/theme-search-algolia.json @@ -15,9 +15,8 @@ "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", - "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", + "theme.SearchModal.placeholder": "Search docs", "theme.SearchModal.searchBox.cancelButtonText": "Cancel", - "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", diff --git a/packages/docusaurus-theme-translations/locales/ko/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/ko/theme-search-algolia.json index 61d803a91a93..7c0c841079a3 100644 --- a/packages/docusaurus-theme-translations/locales/ko/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/ko/theme-search-algolia.json @@ -15,9 +15,8 @@ "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", - "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", + "theme.SearchModal.placeholder": "Search docs", "theme.SearchModal.searchBox.cancelButtonText": "Cancel", - "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", diff --git a/packages/docusaurus-theme-translations/locales/pl/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/pl/theme-search-algolia.json index e2e154cef0ba..e12024e2a974 100644 --- a/packages/docusaurus-theme-translations/locales/pl/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/pl/theme-search-algolia.json @@ -15,9 +15,8 @@ "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", - "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", + "theme.SearchModal.placeholder": "Search docs", "theme.SearchModal.searchBox.cancelButtonText": "Cancel", - "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", diff --git a/packages/docusaurus-theme-translations/locales/pt-BR/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/pt-BR/theme-search-algolia.json index c33de9825209..e5c8f17454fd 100644 --- a/packages/docusaurus-theme-translations/locales/pt-BR/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/pt-BR/theme-search-algolia.json @@ -15,9 +15,8 @@ "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", - "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", + "theme.SearchModal.placeholder": "Search docs", "theme.SearchModal.searchBox.cancelButtonText": "Cancel", - "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", diff --git a/packages/docusaurus-theme-translations/locales/pt-PT/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/pt-PT/theme-search-algolia.json index 0894be4126e2..1d1ab1ef63c3 100644 --- a/packages/docusaurus-theme-translations/locales/pt-PT/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/pt-PT/theme-search-algolia.json @@ -15,9 +15,8 @@ "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", - "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", + "theme.SearchModal.placeholder": "Search docs", "theme.SearchModal.searchBox.cancelButtonText": "Cancel", - "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", diff --git a/packages/docusaurus-theme-translations/locales/ru/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/ru/theme-search-algolia.json index 2bf64731efcf..36152fa3e810 100644 --- a/packages/docusaurus-theme-translations/locales/ru/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/ru/theme-search-algolia.json @@ -15,9 +15,8 @@ "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", - "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", + "theme.SearchModal.placeholder": "Search docs", "theme.SearchModal.searchBox.cancelButtonText": "Cancel", - "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", diff --git a/packages/docusaurus-theme-translations/locales/sr/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/sr/theme-search-algolia.json index 8527ae7cbece..4c6e05d55e0c 100644 --- a/packages/docusaurus-theme-translations/locales/sr/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/sr/theme-search-algolia.json @@ -15,9 +15,8 @@ "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", - "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", + "theme.SearchModal.placeholder": "Search docs", "theme.SearchModal.searchBox.cancelButtonText": "Cancel", - "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", diff --git a/packages/docusaurus-theme-translations/locales/tr/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/tr/theme-search-algolia.json index 987ab40e970e..743d2072ddae 100644 --- a/packages/docusaurus-theme-translations/locales/tr/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/tr/theme-search-algolia.json @@ -15,9 +15,8 @@ "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", - "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", + "theme.SearchModal.placeholder": "Search docs", "theme.SearchModal.searchBox.cancelButtonText": "Cancel", - "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", diff --git a/packages/docusaurus-theme-translations/locales/vi/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/vi/theme-search-algolia.json index 5c9d62bfb066..705d39addbb1 100644 --- a/packages/docusaurus-theme-translations/locales/vi/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/vi/theme-search-algolia.json @@ -15,9 +15,8 @@ "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", - "theme.SearchModal.searchBox.cancelButtonAriaLabel": "Cancel", + "theme.SearchModal.placeholder": "Search docs", "theme.SearchModal.searchBox.cancelButtonText": "Cancel", - "theme.SearchModal.searchBox.resetButtonAriaLabel": "Clear the query", "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", diff --git a/packages/docusaurus-theme-translations/locales/zh-Hans/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/zh-Hans/theme-search-algolia.json index 7657806a4b2d..f1302345b3c1 100644 --- a/packages/docusaurus-theme-translations/locales/zh-Hans/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/zh-Hans/theme-search-algolia.json @@ -15,9 +15,8 @@ "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "请告知我们。", "theme.SearchModal.noResultsScreen.reportMissingResultsText": "认为这个查询应该有结果?", "theme.SearchModal.noResultsScreen.suggestedQueryText": "试试搜索", - "theme.SearchModal.searchBox.cancelButtonAriaLabel": "取消", + "theme.SearchModal.placeholder": "Search docs", "theme.SearchModal.searchBox.cancelButtonText": "取消", - "theme.SearchModal.searchBox.resetButtonAriaLabel": "清除查询", "theme.SearchModal.searchBox.resetButtonTitle": "清除查询", "theme.SearchModal.startScreen.favoriteSearchesTitle": "收藏", "theme.SearchModal.startScreen.noRecentSearchesText": "没有最近搜索", diff --git a/packages/docusaurus-theme-translations/locales/zh-Hant/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/zh-Hant/theme-search-algolia.json index b24405413eb2..ca4b3d30657d 100644 --- a/packages/docusaurus-theme-translations/locales/zh-Hant/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/zh-Hant/theme-search-algolia.json @@ -15,9 +15,8 @@ "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "請告知我們。", "theme.SearchModal.noResultsScreen.reportMissingResultsText": "認為這個查詢應該有結果?", "theme.SearchModal.noResultsScreen.suggestedQueryText": "試試搜索", - "theme.SearchModal.searchBox.cancelButtonAriaLabel": "取消", + "theme.SearchModal.placeholder": "Search docs", "theme.SearchModal.searchBox.cancelButtonText": "取消", - "theme.SearchModal.searchBox.resetButtonAriaLabel": "清除查詢", "theme.SearchModal.searchBox.resetButtonTitle": "清除查詢", "theme.SearchModal.startScreen.favoriteSearchesTitle": "收藏", "theme.SearchModal.startScreen.noRecentSearchesText": "沒有最近搜索", From a689bc4eda91fa990bca14e13293b587a101bd4a Mon Sep 17 00:00:00 2001 From: Joshua Chen Date: Fri, 24 Jun 2022 00:16:49 +0800 Subject: [PATCH 4/8] Update packages/docusaurus-theme-search-algolia/src/theme/SearchBar/translations.ts --- .../src/theme/SearchBar/translations.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docusaurus-theme-search-algolia/src/theme/SearchBar/translations.ts b/packages/docusaurus-theme-search-algolia/src/theme/SearchBar/translations.ts index 79142928588f..36eb5e90b49c 100644 --- a/packages/docusaurus-theme-search-algolia/src/theme/SearchBar/translations.ts +++ b/packages/docusaurus-theme-search-algolia/src/theme/SearchBar/translations.ts @@ -170,4 +170,4 @@ const placeholderDocSearchTranslation = translate({ description: 'The placeholder of the input of the DocSearch pop-up modal', }); -export default {docSearchTranslations, placeholderDocSearchTranslation}; +export {docSearchTranslations, placeholderDocSearchTranslation}; From 8151ab4528dfdcca5a296ee62e40705f6365e2d0 Mon Sep 17 00:00:00 2001 From: Joshua Chen Date: Fri, 24 Jun 2022 00:18:15 +0800 Subject: [PATCH 5/8] Update theme-search-algolia.json --- .../locales/zh-Hans/theme-search-algolia.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docusaurus-theme-translations/locales/zh-Hans/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/zh-Hans/theme-search-algolia.json index f1302345b3c1..fb86932938f7 100644 --- a/packages/docusaurus-theme-translations/locales/zh-Hans/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/zh-Hans/theme-search-algolia.json @@ -15,7 +15,7 @@ "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "请告知我们。", "theme.SearchModal.noResultsScreen.reportMissingResultsText": "认为这个查询应该有结果?", "theme.SearchModal.noResultsScreen.suggestedQueryText": "试试搜索", - "theme.SearchModal.placeholder": "Search docs", + "theme.SearchModal.placeholder": "搜索文档", "theme.SearchModal.searchBox.cancelButtonText": "取消", "theme.SearchModal.searchBox.resetButtonTitle": "清除查询", "theme.SearchModal.startScreen.favoriteSearchesTitle": "收藏", From 64a10bb662954bbddfc92a365e9750c160980be4 Mon Sep 17 00:00:00 2001 From: Joshua Chen Date: Fri, 24 Jun 2022 00:18:46 +0800 Subject: [PATCH 6/8] Update theme-search-algolia.json --- .../locales/zh-Hant/theme-search-algolia.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docusaurus-theme-translations/locales/zh-Hant/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/zh-Hant/theme-search-algolia.json index ca4b3d30657d..9749e912f216 100644 --- a/packages/docusaurus-theme-translations/locales/zh-Hant/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/zh-Hant/theme-search-algolia.json @@ -15,7 +15,7 @@ "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "請告知我們。", "theme.SearchModal.noResultsScreen.reportMissingResultsText": "認為這個查詢應該有結果?", "theme.SearchModal.noResultsScreen.suggestedQueryText": "試試搜索", - "theme.SearchModal.placeholder": "Search docs", + "theme.SearchModal.placeholder": "搜索文檔", "theme.SearchModal.searchBox.cancelButtonText": "取消", "theme.SearchModal.searchBox.resetButtonTitle": "清除查詢", "theme.SearchModal.startScreen.favoriteSearchesTitle": "收藏", From 0208ef13d3f2efb0f7394664d3b9f415c9097f41 Mon Sep 17 00:00:00 2001 From: Joshua Chen Date: Fri, 24 Jun 2022 00:24:10 +0800 Subject: [PATCH 7/8] refactor --- .../src/theme-search-algolia.d.ts | 7 +++++++ .../src/theme/SearchBar/index.tsx | 11 ++++------- .../index.ts} | 15 +++++++-------- 3 files changed, 18 insertions(+), 15 deletions(-) rename packages/docusaurus-theme-search-algolia/src/theme/{SearchBar/translations.ts => SearchTranslations/index.ts} (95%) diff --git a/packages/docusaurus-theme-search-algolia/src/theme-search-algolia.d.ts b/packages/docusaurus-theme-search-algolia/src/theme-search-algolia.d.ts index 1aea75deabb3..9cf09fed4d05 100644 --- a/packages/docusaurus-theme-search-algolia/src/theme-search-algolia.d.ts +++ b/packages/docusaurus-theme-search-algolia/src/theme-search-algolia.d.ts @@ -33,3 +33,10 @@ declare module '@theme/SearchPage' { declare module '@theme/SearchBar' { export default function SearchBar(): JSX.Element; } + +declare module '@theme/SearchTranslations' { + import type {DocSearchTranslations} from '@docsearch/react'; + + const translations: DocSearchTranslations & {placeholder: string}; + export default translations; +} diff --git a/packages/docusaurus-theme-search-algolia/src/theme/SearchBar/index.tsx b/packages/docusaurus-theme-search-algolia/src/theme/SearchBar/index.tsx index edf6f9b6eb72..1bcd4f1182b3 100644 --- a/packages/docusaurus-theme-search-algolia/src/theme/SearchBar/index.tsx +++ b/packages/docusaurus-theme-search-algolia/src/theme/SearchBar/index.tsx @@ -16,10 +16,7 @@ import {isRegexpStringMatch, useSearchPage} from '@docusaurus/theme-common'; import {DocSearchButton, useDocSearchKeyboardEvents} from '@docsearch/react'; import {useAlgoliaContextualFacetFilters} from '@docusaurus/theme-search-algolia/client'; import Translate from '@docusaurus/Translate'; -import { - docSearchTranslations, - placeholderDocSearchTranslation, -} from './translations'; +import translations from '@theme/SearchTranslations'; import type { DocSearchModal as DocSearchModalType, @@ -238,7 +235,7 @@ function DocSearch({ onMouseOver={importDocSearchModalIfNeeded} onClick={onOpen} ref={searchButtonRef} - translations={docSearchTranslations.button} + translations={translations.button} /> {isOpen && @@ -258,8 +255,8 @@ function DocSearch({ })} {...props} searchParameters={searchParameters} - placeholder={placeholderDocSearchTranslation} - translations={docSearchTranslations.modal} + placeholder={translations.placeholder} + translations={translations.modal} />, searchContainer.current, )} diff --git a/packages/docusaurus-theme-search-algolia/src/theme/SearchBar/translations.ts b/packages/docusaurus-theme-search-algolia/src/theme/SearchTranslations/index.ts similarity index 95% rename from packages/docusaurus-theme-search-algolia/src/theme/SearchBar/translations.ts rename to packages/docusaurus-theme-search-algolia/src/theme/SearchTranslations/index.ts index 36eb5e90b49c..40d0f44ec00a 100644 --- a/packages/docusaurus-theme-search-algolia/src/theme/SearchBar/translations.ts +++ b/packages/docusaurus-theme-search-algolia/src/theme/SearchTranslations/index.ts @@ -9,7 +9,7 @@ import {translate} from '@docusaurus/Translate'; import type {DocSearchTranslations} from '@docsearch/react'; -const docSearchTranslations: DocSearchTranslations = { +const translations: DocSearchTranslations & {placeholder: string} = { button: { buttonText: translate({ id: 'theme.SearchBar.label', @@ -162,12 +162,11 @@ const docSearchTranslations: DocSearchTranslations = { }), }, }, + placeholder: translate({ + id: 'theme.SearchModal.placeholder', + message: 'Search docs', + description: 'The placeholder of the input of the DocSearch pop-up modal', + }), }; -const placeholderDocSearchTranslation = translate({ - id: 'theme.SearchModal.placeholder', - message: 'Search docs', - description: 'The placeholder of the input of the DocSearch pop-up modal', -}); - -export {docSearchTranslations, placeholderDocSearchTranslation}; +export default translations; From b79c730731c50b6cdc2a714e959fe0123d3aacea Mon Sep 17 00:00:00 2001 From: Forresst Date: Tue, 5 Jul 2022 08:54:52 +0200 Subject: [PATCH 8/8] fix translations ar and vi --- .../locales/ar/theme-search-algolia.json | 23 +++++++++++++++++++ .../locales/vi/theme-search-algolia.json | 23 +++++++++++++++++++ 2 files changed, 46 insertions(+) diff --git a/packages/docusaurus-theme-translations/locales/ar/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/ar/theme-search-algolia.json index 894f72493be6..69ce6e9ce659 100644 --- a/packages/docusaurus-theme-translations/locales/ar/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/ar/theme-search-algolia.json @@ -1,6 +1,29 @@ { "theme.SearchBar.label": "بحث", "theme.SearchBar.seeAll": "مشاهدة جميع {count} نتائج", + "theme.SearchModal.errorScreen.helpText": "You might want to check your network connection.", + "theme.SearchModal.errorScreen.titleText": "Unable to fetch results", + "theme.SearchModal.footer.closeKeyAriaLabel": "Escape key", + "theme.SearchModal.footer.closeText": "to close", + "theme.SearchModal.footer.navigateDownKeyAriaLabel": "Arrow down", + "theme.SearchModal.footer.navigateText": "to navigate", + "theme.SearchModal.footer.navigateUpKeyAriaLabel": "Arrow up", + "theme.SearchModal.footer.searchByText": "Search by", + "theme.SearchModal.footer.selectKeyAriaLabel": "Enter key", + "theme.SearchModal.footer.selectText": "to select", + "theme.SearchModal.noResultsScreen.noResultsText": "No results for", + "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", + "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", + "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", + "theme.SearchModal.placeholder": "Search docs", + "theme.SearchModal.searchBox.cancelButtonText": "Cancel", + "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", + "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", + "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", + "theme.SearchModal.startScreen.recentSearchesTitle": "Recent", + "theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle": "Remove this search from favorites", + "theme.SearchModal.startScreen.removeRecentSearchButtonTitle": "Remove this search from history", + "theme.SearchModal.startScreen.saveRecentSearchButtonTitle": "Save this search", "theme.SearchPage.algoliaLabel": "البحث بواسطه Algolia", "theme.SearchPage.documentsFound.plurals": "تم العثور على مستند واحد|تم العثور على {count} مستندات", "theme.SearchPage.emptyResultsTitle": "ابحث في الوثائق", diff --git a/packages/docusaurus-theme-translations/locales/vi/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/vi/theme-search-algolia.json index 4904fe292dec..6b445316b938 100644 --- a/packages/docusaurus-theme-translations/locales/vi/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/vi/theme-search-algolia.json @@ -1,6 +1,29 @@ { "theme.SearchBar.label": "Tìm kiếm", "theme.SearchBar.seeAll": "Xem tất cả {count} kết quả", + "theme.SearchModal.errorScreen.helpText": "You might want to check your network connection.", + "theme.SearchModal.errorScreen.titleText": "Unable to fetch results", + "theme.SearchModal.footer.closeKeyAriaLabel": "Escape key", + "theme.SearchModal.footer.closeText": "to close", + "theme.SearchModal.footer.navigateDownKeyAriaLabel": "Arrow down", + "theme.SearchModal.footer.navigateText": "to navigate", + "theme.SearchModal.footer.navigateUpKeyAriaLabel": "Arrow up", + "theme.SearchModal.footer.searchByText": "Search by", + "theme.SearchModal.footer.selectKeyAriaLabel": "Enter key", + "theme.SearchModal.footer.selectText": "to select", + "theme.SearchModal.noResultsScreen.noResultsText": "No results for", + "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "Let us know.", + "theme.SearchModal.noResultsScreen.reportMissingResultsText": "Believe this query should return results?", + "theme.SearchModal.noResultsScreen.suggestedQueryText": "Try searching for", + "theme.SearchModal.placeholder": "Search docs", + "theme.SearchModal.searchBox.cancelButtonText": "Cancel", + "theme.SearchModal.searchBox.resetButtonTitle": "Clear the query", + "theme.SearchModal.startScreen.favoriteSearchesTitle": "Favorite", + "theme.SearchModal.startScreen.noRecentSearchesText": "No recent searches", + "theme.SearchModal.startScreen.recentSearchesTitle": "Recent", + "theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle": "Remove this search from favorites", + "theme.SearchModal.startScreen.removeRecentSearchButtonTitle": "Remove this search from history", + "theme.SearchModal.startScreen.saveRecentSearchButtonTitle": "Save this search", "theme.SearchPage.algoliaLabel": "Tìm kiếm với Algolia", "theme.SearchPage.documentsFound.plurals": "Tìm thấy một kết quả|Tìm thấy {count} kết quả", "theme.SearchPage.emptyResultsTitle": "Tìm kiếm",