docSearchTranslations
-
-
-```ts
-const translations: DocSearchTranslations = {
- button: {
- buttonText: 'Search',
- buttonAriaLabel: 'Search',
- },
- modal: {
- searchBox: {
- resetButtonTitle: 'Clear the query',
- resetButtonAriaLabel: 'Clear the query',
- cancelButtonText: 'Cancel',
- cancelButtonAriaLabel: 'Cancel',
- },
- startScreen: {
- recentSearchesTitle: 'Recent',
- noRecentSearchesText: 'No recent searches',
- saveRecentSearchButtonTitle: 'Save this search',
- removeRecentSearchButtonTitle: 'Remove this search from history',
- favoriteSearchesTitle: 'Favorite',
- removeFavoriteSearchButtonTitle: 'Remove this search from favorites',
- },
- errorScreen: {
- titleText: 'Unable to fetch results',
- helpText: 'You might want to check your network connection.',
- },
- footer: {
- selectText: 'to select',
- selectKeyAriaLabel: 'Enter key',
- navigateText: 'to navigate',
- navigateUpKeyAriaLabel: 'Arrow up',
- navigateDownKeyAriaLabel: 'Arrow down',
- closeText: 'to close',
- closeKeyAriaLabel: 'Escape key',
- searchByText: 'Search by',
- },
- noResultsScreen: {
- noResultsText: 'No results for',
- suggestedQueryText: 'Try searching for',
- reportMissingResultsText: 'Believe this query should return results?',
- reportMissingResultsLinkText: 'Let us know.',
- },
- },
-};
-```
-
-
-
-
-## `getMissingResultsUrl`
-
-> `type: ({ query: string }) => string` | **optional**
-
-Function to return the URL of your documentation repository.
-
-```jsx
-