Skip to content

Commit

Permalink
feat: add more translate to locales (#417)
Browse files Browse the repository at this point in the history
- add `theme.SearchBar.searchInContext`
- add `theme.SearchBar.seeAllOutsideContext`
  • Loading branch information
Airkro authored Jun 6, 2024
1 parent e81f6f9 commit 0ee814b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions docusaurus-search-local/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"theme.SearchBar.label": "Suche",
"theme.SearchBar.seeAll": "Alle Ergebnisse anzeigen",
"theme.SearchBar.noResultsText": "Keine Ergebnisse",
"theme.SearchBar.searchInContext": "Alle Ergebnisse innerhalb von \"{context}\" anzeigen",
"theme.SearchBar.seeAllOutsideContext": "Alle Ergebnisse außerhalb von \"{context}\" anzeigen",
"theme.SearchPage.existingResultsTitle": "Suchergebnisse für \"{query}\"",
"theme.SearchPage.emptyResultsTitle": "Suche in der Dokumentation",
"theme.SearchPage.documentsFound.plurals": "1 Dokument gefunden|{count} Dokumente gefunden",
Expand Down
4 changes: 3 additions & 1 deletion docusaurus-search-local/locales/vi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"theme.SearchBar.label": "Tìm kiếm...",
"theme.SearchBar.seeAll": "Xem tất cả kết quả được tìm thấy",
"theme.SearchBar.noResultsText": "Không tìm thấy kết quả nào",
"theme.SearchPage.existingResultsTitle": "Tìm kiếm theo tiêu đề: “{query}”",
"theme.SearchBar.searchInContext": "Xem tất cả kết quả bên trong \"{context}\"",
"theme.SearchBar.seeAllOutsideContext": "Xem tất cả kết quả bên ngoài \"{context}\"",
"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",
Expand Down
4 changes: 3 additions & 1 deletion docusaurus-search-local/locales/zh-Hans.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"theme.SearchBar.label": "搜索",
"theme.SearchBar.seeAll": "查看全部结果",
"theme.SearchBar.noResultsText": "没有找到任何文档",
"theme.SearchPage.existingResultsTitle": "“{query}” 的搜索结果",
"theme.SearchBar.searchInContext": "查看“{context}”以内的全部结果",
"theme.SearchBar.seeAllOutsideContext": "查看“{context}”以外的全部结果",
"theme.SearchPage.existingResultsTitle": "“{query}”的搜索结果",
"theme.SearchPage.emptyResultsTitle": "搜索文档",
"theme.SearchPage.documentsFound.plurals": "共找到 {count} 篇文档",
"theme.SearchPage.noResultsText": "没有找到任何文档",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,15 +184,15 @@ export default function SearchBar({
linkText = translate(
{
id: "theme.SearchBar.seeAllOutsideContext",
message: "See results outside {context}",
message: 'See all results outside "{context}"',
},
{ context: translatedSearchContext }
);
} else {
linkText = translate(
{
id: "theme.SearchBar.searchInContext",
message: "See all results in {context}",
message: 'See all results within "{context}"',
},
{ context: translatedSearchContext }
);
Expand Down

0 comments on commit 0ee814b

Please sign in to comment.