Skip to content

Commit 60f8479

Browse files
committed
docs: refine docs about translations
1 parent 74f3fa5 commit 60f8479

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ yarn add nodejieba
9292
| highlightSearchTermsOnTargetPage | boolean | `false` | Highlight search terms on target page. |
9393
| searchResultLimits | number | `8` | Limit the search results. |
9494
| searchResultContextMaxLength | number | `50` | Set the max length of characters of each search result to show. |
95-
| translations | TranslationMap | - | Set translations of this plugin, see [docs below](#translations). |
95+
| translations | TranslationMap | - | Set translations of this plugin, see [docs below](#translations). |
9696

9797
### Translations
9898

@@ -106,12 +106,13 @@ To make this plugin localized, pass a `translations` option which defaults to:
106106
"search_results_for": "Search results for \"{{ keyword }}\"",
107107
"search_the_documentation": "Search the documentation",
108108
"count_documents_found": "{{ count }} document found",
109-
// `*_plural` can be omitted if it is the same as singular.
110109
"count_documents_found_plural": "{{ count }} documents found",
111110
"no_documents_were_found": "No documents were found"
112111
}
113112
```
114113

114+
Note that `*_plural` can be omitted if it is the same as singular.
115+
115116
## Custom Styles
116117

117118
This plugin is shipped with polished styles just like the Algolia Search on the Docusaurus v2 website. Feel free to override these css custom properties (css variables) below.

0 commit comments

Comments
 (0)