Skip to content

Commit

Permalink
feat: add theme.SearchPage.searchContext.everywhere to locales (#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
Airkro authored Jun 5, 2024
1 parent b82d17a commit 5e13bda
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ module.exports = {

### I18N

Since v0.25.0, we support [docusaurus i18n system](<(https://docusaurus.io/docs/i18n/introduction)>), and provided `en` and `zh-CN` translations out of the box.
Since v0.25.0, we support [docusaurus i18n system](<(https://docusaurus.io/docs/i18n/introduction)>), and provided `en` / `de` / `vi` and `zh-CN` translations out of the box.

For other languages, please follow the official tutorial about how to [translate plugin data](https://docusaurus.io/docs/i18n/tutorial#translate-plugin-data). And translate `theme.SearchBar.*` and `theme.SearchPage.*` in `i18n/*/code.json`.

Expand Down
3 changes: 2 additions & 1 deletion docusaurus-search-local/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
"theme.SearchPage.existingResultsTitle": "Suchergebnisse für \"{query}\"",
"theme.SearchPage.emptyResultsTitle": "Suche in der Dokumentation",
"theme.SearchPage.documentsFound.plurals": "1 Dokument gefunden|{count} Dokumente gefunden",
"theme.SearchPage.noResultsText": "Es wurden keine Dokumente gefunden"
"theme.SearchPage.noResultsText": "Es wurden keine Dokumente gefunden",
"theme.SearchPage.searchContext.everywhere": "Überall"
}
3 changes: 2 additions & 1 deletion docusaurus-search-local/locales/vi.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
"theme.SearchPage.existingResultsTitle": "Tìm kiếm theo tiêu đề: “{query}”",
"theme.SearchPage.emptyResultsTitle": "Tìm kiếm theo tiêu đề",
"theme.SearchPage.documentsFound.plurals": "Có {count} kết quả được tìm thấy",
"theme.SearchPage.noResultsText": "Không tìm thấy kết quả nào"
"theme.SearchPage.noResultsText": "Không tìm thấy kết quả nào",
"theme.SearchPage.searchContext.everywhere": "Mọi nơi"
}
3 changes: 2 additions & 1 deletion docusaurus-search-local/locales/zh-Hans.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
"theme.SearchPage.existingResultsTitle": "“{query}” 的搜索结果",
"theme.SearchPage.emptyResultsTitle": "搜索文档",
"theme.SearchPage.documentsFound.plurals": "共找到 {count} 篇文档",
"theme.SearchPage.noResultsText": "没有找到任何文档"
"theme.SearchPage.noResultsText": "没有找到任何文档",
"theme.SearchPage.searchContext.everywhere": "所有"
}
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ function SearchPageContent(): React.ReactElement {
<option value="">
{translate({
id: "theme.SearchPage.searchContext.everywhere",
message: "everywhere",
message: "Everywhere",
})}
</option>
)}
Expand Down

0 comments on commit 5e13bda

Please sign in to comment.