Skip to content

Commit

Permalink
refactor: feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Sep 30, 2024
1 parent e583c02 commit 93bf4d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 46 deletions.
4 changes: 4 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,7 @@ pnpm run docs:translation:compare <lang> upstream/v2
```

<!-- TODO: add an example once we have got one -->

### Translating Search text

The search box is powered by Algolia and you will need to translate the properties. Inspire yourself from `.vitepress/config/zh.ts` `zhSearch` variable.
46 changes: 0 additions & 46 deletions packages/docs/.vitepress/config/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,49 +155,3 @@ export const enConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
},
},
}

// options to translate instructions of algolia tool to your language.
// you just need to do the same we did with the chinese configuration.
export const enSearch: DefaultTheme.AlgoliaSearchOptions['locales'] = {
en: {
placeholder: 'Search for Documents',
translations: {
button: {
buttonText: 'Search for Documents',
buttonAriaLabel: 'Search for Documents',
},
modal: {
searchBox: {
resetButtonTitle: 'Clear the search criteria',
resetButtonAriaLabel: 'Clear the search criteria',
cancelButtonText: 'Cancel',
cancelButtonAriaLabel: 'Cancel',
},
startScreen: {
recentSearchesTitle: 'Search History',
noRecentSearchesText: 'No search history',
saveRecentSearchButtonTitle: 'Save to Search History',
removeRecentSearchButtonTitle: 'Remove from search history',
favoriteSearchesTitle: 'Favorite',
removeFavoriteSearchButtonTitle: 'Remove from Favorites',
},
errorScreen: {
titleText: 'Unable to get results',
helpText: 'You may need to check your internet connection',
},
footer: {
selectText: 'Option',
navigateText: 'Switch modes or data streams',
closeText: 'close',
searchByText: 'Search for suppliers',
},
noResultsScreen: {
noResultsText: 'No results could be found',
suggestedQueryText: 'You can try querying',
reportMissingResultsText: 'Do you think the query should yield results?',
reportMissingResultsLinkText: 'Click on Feedback',
},
},
},
},
}

0 comments on commit 93bf4d0

Please sign in to comment.