mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-24 03:58:49 +02:00
feat: mark some text labels as translatable (#6482)
* feat: mark some text labels as translatable * tweak
This commit is contained in:
parent
b8fbf7c530
commit
0e13356e1b
54 changed files with 193 additions and 7 deletions
|
@ -16,7 +16,7 @@ import Head from '@docusaurus/Head';
|
|||
import {isRegexpStringMatch, useSearchPage} from '@docusaurus/theme-common';
|
||||
import {DocSearchButton, useDocSearchKeyboardEvents} from '@docsearch/react';
|
||||
import {useAlgoliaContextualFacetFilters} from '@docusaurus/theme-search-algolia/client';
|
||||
import {translate} from '@docusaurus/Translate';
|
||||
import Translate, {translate} from '@docusaurus/Translate';
|
||||
import styles from './styles.module.css';
|
||||
|
||||
import type {
|
||||
|
@ -59,7 +59,11 @@ function ResultsFooter({state, onClose}: ResultsFooterProps) {
|
|||
|
||||
return (
|
||||
<Link to={generateSearchPageLink(state.query)} onClick={onClose}>
|
||||
See all {state.context.nbHits} results
|
||||
<Translate
|
||||
id="theme.SearchBar.seeAll"
|
||||
values={{count: state.context.nbHits}}>
|
||||
{'See all {count} results'}
|
||||
</Translate>
|
||||
</Link>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue