diff --git a/packages/docusaurus-theme-classic/codeTranslations/base.json b/packages/docusaurus-theme-classic/codeTranslations/base.json index 6f43123bbe..4a54ea0d0e 100644 --- a/packages/docusaurus-theme-classic/codeTranslations/base.json +++ b/packages/docusaurus-theme-classic/codeTranslations/base.json @@ -14,7 +14,7 @@ "theme.SearchBar.label": "Search", "theme.SearchPage.algoliaLabel": "Search by Algolia", "theme.SearchPage.emptyResultsTitle": "Search the documentation", - "theme.SearchPage.existingResultsTitle": "Search results for", + "theme.SearchPage.existingResultsTitle": "Search results for \"{query}\"", "theme.SearchPage.fetchingNewResults": "Fetching new results...", "theme.SearchPage.inputLabel": "Search", "theme.SearchPage.inputPlaceholder": "Type your search here", @@ -59,10 +59,10 @@ "theme.docs.versions.latestVersionSuggestionLabel": "For up-to-date documentation, see the {latestVersionLink} ({versionLabel}).", "theme.docs.versions.unmaintainedVersionLabel": "This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained.", "theme.docs.versions.unreleasedVersionLabel": "This is unreleased documentation for {siteTitle} {versionLabel} version.", - "theme.lastUpdated.atDate": "on {date}", - "theme.lastUpdated.byUser": "by {user}", + "theme.lastUpdated.atDate": " on {date}", + "theme.lastUpdated.byUser": " by {user}", "theme.lastUpdated.lastUpdatedAtBy": "Last updated{atDate}{byUser}", "theme.tags.tagsListLabel": "Tags:", "theme.tags.tagsPageLink": "View All Tags", "theme.tags.tagsPageTitle": "Tags" -} \ No newline at end of file +} diff --git a/packages/docusaurus-theme-classic/codeTranslations/de.json b/packages/docusaurus-theme-classic/codeTranslations/de.json index ad96bfe8ae..8077a772ff 100644 --- a/packages/docusaurus-theme-classic/codeTranslations/de.json +++ b/packages/docusaurus-theme-classic/codeTranslations/de.json @@ -14,7 +14,7 @@ "theme.SearchBar.label": "Suche", "theme.SearchPage.algoliaLabel": "Suche von Algolia", "theme.SearchPage.emptyResultsTitle": "Suche in der Dokumentation", - "theme.SearchPage.existingResultsTitle": "Suchergebnisse für", + "theme.SearchPage.existingResultsTitle": "Suchergebnisse für \"{query}\"", "theme.SearchPage.fetchingNewResults": "Neue Ergebnisse abrufen...", "theme.SearchPage.inputLabel": "Suche", "theme.SearchPage.inputPlaceholder": "Geben Sie hier Ihre Suche ein", @@ -59,10 +59,10 @@ "theme.docs.versions.latestVersionSuggestionLabel": "For up-to-date documentation, see the {latestVersionLink} ({versionLabel}).", "theme.docs.versions.unmaintainedVersionLabel": "This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained.", "theme.docs.versions.unreleasedVersionLabel": "This is unreleased documentation for {siteTitle} {versionLabel} version.", - "theme.lastUpdated.atDate": "on {date}", - "theme.lastUpdated.byUser": "by {user}", + "theme.lastUpdated.atDate": " on {date}", + "theme.lastUpdated.byUser": " by {user}", "theme.lastUpdated.lastUpdatedAtBy": "Last updated{atDate}{byUser}", "theme.tags.tagsListLabel": "Tags:", "theme.tags.tagsPageLink": "Alle Tags anzeigen", "theme.tags.tagsPageTitle": "Tags" -} \ No newline at end of file +} diff --git a/packages/docusaurus-theme-classic/codeTranslations/fa.json b/packages/docusaurus-theme-classic/codeTranslations/fa.json index bcfae0eaa7..60d51213ff 100644 --- a/packages/docusaurus-theme-classic/codeTranslations/fa.json +++ b/packages/docusaurus-theme-classic/codeTranslations/fa.json @@ -14,7 +14,7 @@ "theme.SearchBar.label": "جستجو", "theme.SearchPage.algoliaLabel": "جستجو با Algolia", "theme.SearchPage.emptyResultsTitle": "جستجو در متن", - "theme.SearchPage.existingResultsTitle": "جستجو برای عبارت", + "theme.SearchPage.existingResultsTitle": "جستجو برای عبارت \"{query}\"", "theme.SearchPage.fetchingNewResults": "در حال دریافت نتایج...", "theme.SearchPage.inputLabel": "جستجو", "theme.SearchPage.inputPlaceholder": "عبارت مورد نظر را اینجا بنویسید", @@ -59,10 +59,10 @@ "theme.docs.versions.latestVersionSuggestionLabel": "For up-to-date documentation, see the {latestVersionLink} ({versionLabel}).", "theme.docs.versions.unmaintainedVersionLabel": "This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained.", "theme.docs.versions.unreleasedVersionLabel": "This is unreleased documentation for {siteTitle} {versionLabel} version.", - "theme.lastUpdated.atDate": "on {date}", - "theme.lastUpdated.byUser": "by {user}", + "theme.lastUpdated.atDate": " on {date}", + "theme.lastUpdated.byUser": " by {user}", "theme.lastUpdated.lastUpdatedAtBy": "Last updated{atDate}{byUser}", "theme.tags.tagsListLabel": ":برچسب ها", "theme.tags.tagsPageLink": "مشاهده تمام برچسب ها", "theme.tags.tagsPageTitle": "برچسب ها" -} \ No newline at end of file +} diff --git a/packages/docusaurus-theme-classic/codeTranslations/fr.json b/packages/docusaurus-theme-classic/codeTranslations/fr.json index 6fa2854f69..c431b036a1 100644 --- a/packages/docusaurus-theme-classic/codeTranslations/fr.json +++ b/packages/docusaurus-theme-classic/codeTranslations/fr.json @@ -14,7 +14,7 @@ "theme.SearchBar.label": "Chercher", "theme.SearchPage.algoliaLabel": "Recharche Algolia", "theme.SearchPage.emptyResultsTitle": "Rechercher dans la documentation", - "theme.SearchPage.existingResultsTitle": "Rechercher des résultats pour", + "theme.SearchPage.existingResultsTitle": "Rechercher des résultats pour \"{query}\"", "theme.SearchPage.fetchingNewResults": "Chargement de nouveaux résultats...", "theme.SearchPage.inputLabel": "Chercher", "theme.SearchPage.inputPlaceholder": "Tapez vôtre recherche ici", @@ -59,10 +59,10 @@ "theme.docs.versions.latestVersionSuggestionLabel": "Pour une documentation à jour, consultez la {latestVersionLink} ({versionLabel}).", "theme.docs.versions.unmaintainedVersionLabel": "Ceci est la documentation de {siteTitle} {versionLabel}, qui n'est plus activement maintenue.", "theme.docs.versions.unreleasedVersionLabel": "Ceci est la documentation de la prochaine version {versionLabel} de {siteTitle}.", - "theme.lastUpdated.atDate": "le {date}", - "theme.lastUpdated.byUser": "par {user}", + "theme.lastUpdated.atDate": " le {date}", + "theme.lastUpdated.byUser": " par {user}", "theme.lastUpdated.lastUpdatedAtBy": "Dernière mise à jour{atDate}{byUser}", "theme.tags.tagsListLabel": "Tags:", "theme.tags.tagsPageLink": "Voir tous les tags", "theme.tags.tagsPageTitle": "Tags" -} \ No newline at end of file +} diff --git a/packages/docusaurus-theme-classic/codeTranslations/ja.json b/packages/docusaurus-theme-classic/codeTranslations/ja.json new file mode 100644 index 0000000000..7ac7f72650 --- /dev/null +++ b/packages/docusaurus-theme-classic/codeTranslations/ja.json @@ -0,0 +1,68 @@ +{ + "theme.AnnouncementBar.closeButtonAriaLabel": "閉じる", + "theme.CodeBlock.copied": "コピーしました", + "theme.CodeBlock.copy": "コピー", + "theme.CodeBlock.copyButtonAriaLabel": "クリップボードにコードをコピー", + "theme.NotFound.p1": "お探しのページが見つかりませんでした。", + "theme.NotFound.p2": "このページにリンクしているサイトの所有者に連絡をしてリンクが壊れていることを伝えてください。", + "theme.NotFound.title": "ページが見つかりません", + "theme.Playground.liveEditor": "Live Editor", + "theme.Playground.result": "Result", + "theme.PwaReloadPopup.closeButtonAriaLabel": "閉じる", + "theme.PwaReloadPopup.info": "新しいバージョンがあります", + "theme.PwaReloadPopup.refreshButtonText": "更新", + "theme.SearchBar.label": "検索", + "theme.SearchPage.algoliaLabel": "Algoliaで検索", + "theme.SearchPage.emptyResultsTitle": "ドキュメントを検索", + "theme.SearchPage.existingResultsTitle": "『{query}』の検索結果", + "theme.SearchPage.fetchingNewResults": "新しい検索結果を取得しています...", + "theme.SearchPage.inputLabel": "検索", + "theme.SearchPage.inputPlaceholder": "ここに検索するキーワードを入力してください", + "theme.SearchPage.noResultsText": "検索結果が見つかりませんでした", + "theme.blog.paginator.navAriaLabel": "ブログ記事一覧のナビゲーション", + "theme.blog.paginator.newerEntries": "新しい記事", + "theme.blog.paginator.olderEntries": "過去の記事", + "theme.blog.post.date": "{year}年{month}{day}日", + "theme.blog.post.nPosts": "{count}件", + "theme.blog.post.onePost": "1件", + "theme.blog.post.paginator.navAriaLabel": "ブログ記事のナビゲーション", + "theme.blog.post.paginator.newerPost": "新しい記事", + "theme.blog.post.paginator.olderPost": "過去の記事", + "theme.blog.post.readMore": "もっと見る", + "theme.blog.post.readingTime": "約{readingTime}分", + "theme.blog.tagTitle": "「{tagName}」タグの記事が{nPosts}あります", + "theme.common.editThisPage": "このページを編集", + "theme.common.headingLinkTitle": "見出しへの直接リンク", + "theme.common.month.april": "4月", + "theme.common.month.august": "8月", + "theme.common.month.december": "12月", + "theme.common.month.february": "2月", + "theme.common.month.january": "1月", + "theme.common.month.july": "7月", + "theme.common.month.june": "6月", + "theme.common.month.march": "3月", + "theme.common.month.may": "5月", + "theme.common.month.november": "11月", + "theme.common.month.october": "10月", + "theme.common.month.september": "9月", + "theme.common.skipToMainContent": "メインコンテンツまでスキップ", + "theme.docs.paginator.navAriaLabel": "ドキュメントのナビゲーション", + "theme.docs.paginator.next": "次へ", + "theme.docs.paginator.previous": "前へ", + "theme.docs.sidebar.collapseButtonAriaLabel": "サイドバーを隠す", + "theme.docs.sidebar.collapseButtonTitle": "サイドバーを隠す", + "theme.docs.sidebar.expandButtonAriaLabel": "サイドバーを開く", + "theme.docs.sidebar.expandButtonTitle": "サイドバーを開く", + "theme.docs.sidebar.responsiveCloseButtonLabel": "メニューを閉じる", + "theme.docs.sidebar.responsiveOpenButtonLabel": "メニューを開く", + "theme.docs.versions.latestVersionLinkLabel": "最新バージョン", + "theme.docs.versions.latestVersionSuggestionLabel": "最新のドキュメントは{latestVersionLink} ({versionLabel}) を見てください。", + "theme.docs.versions.unmaintainedVersionLabel": "これは{siteTitle} {versionLabel}のドキュメントで現在はアクティブにメンテナンスされていません。", + "theme.docs.versions.unreleasedVersionLabel": "これはリリース前の{siteTitle} {versionLabel}のドキュメントです。.", + "theme.lastUpdated.atDate": "{date}に", + "theme.lastUpdated.byUser": "{user}が", + "theme.lastUpdated.lastUpdatedAtBy": "{atDate}{byUser}最終更新", + "theme.tags.tagsListLabel": "タグ:", + "theme.tags.tagsPageLink": "全てのタグを見る", + "theme.tags.tagsPageTitle": "タグ" +} diff --git a/packages/docusaurus-theme-classic/codeTranslations/ru.json b/packages/docusaurus-theme-classic/codeTranslations/ru.json index 7442c507e6..4c55626094 100644 --- a/packages/docusaurus-theme-classic/codeTranslations/ru.json +++ b/packages/docusaurus-theme-classic/codeTranslations/ru.json @@ -14,7 +14,7 @@ "theme.SearchBar.label": "Поиск", "theme.SearchPage.algoliaLabel": "Поиск предоставлен Algolia", "theme.SearchPage.emptyResultsTitle": "Поиск по сайту", - "theme.SearchPage.existingResultsTitle": "Результаты поиска по запросу", + "theme.SearchPage.existingResultsTitle": "Результаты поиска по запросу \"{query}\"", "theme.SearchPage.fetchingNewResults": "Загрузка новых результатов поиска...", "theme.SearchPage.inputLabel": "Поиск", "theme.SearchPage.inputPlaceholder": "Введите фразу для поиска", @@ -59,10 +59,10 @@ "theme.docs.versions.latestVersionSuggestionLabel": "For up-to-date documentation, see the {latestVersionLink} ({versionLabel}).", "theme.docs.versions.unmaintainedVersionLabel": "This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained.", "theme.docs.versions.unreleasedVersionLabel": "This is unreleased documentation for {siteTitle} {versionLabel} version.", - "theme.lastUpdated.atDate": "on {date}", - "theme.lastUpdated.byUser": "by {user}", + "theme.lastUpdated.atDate": " on {date}", + "theme.lastUpdated.byUser": " by {user}", "theme.lastUpdated.lastUpdatedAtBy": "Last updated{atDate}{byUser}", "theme.tags.tagsListLabel": "Теги:", "theme.tags.tagsPageLink": "Посмотреть все теги", "theme.tags.tagsPageTitle": "Теги" -} \ No newline at end of file +} diff --git a/packages/docusaurus-theme-classic/src/theme/LastUpdated/index.tsx b/packages/docusaurus-theme-classic/src/theme/LastUpdated/index.tsx index 338b7c9827..599ec83995 100644 --- a/packages/docusaurus-theme-classic/src/theme/LastUpdated/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/LastUpdated/index.tsx @@ -27,7 +27,7 @@ function LastUpdatedAtDate({lastUpdatedAt}: {lastUpdatedAt: number}) { ), }}> - {'on {date}'} + {' on {date}'} ); } @@ -40,7 +40,7 @@ function LastUpdatedByUser({lastUpdatedBy}: {lastUpdatedBy: string}) { values={{ user: {lastUpdatedBy}, }}> - {'by {user}'} + {' by {user}'} ); } @@ -61,18 +61,12 @@ export default function LastUpdated({ description="The sentence used to display when a page has been last updated, and by who" values={{ atDate: lastUpdatedAt ? ( - <> - {' '} - - + ) : ( '' ), byUser: lastUpdatedBy ? ( - <> - {' '} - - + ) : ( '' ), diff --git a/packages/docusaurus-theme-search-algolia/src/theme/SearchPage/index.js b/packages/docusaurus-theme-search-algolia/src/theme/SearchPage/index.js index 9785859db9..78cab6dbf3 100644 --- a/packages/docusaurus-theme-search-algolia/src/theme/SearchPage/index.js +++ b/packages/docusaurus-theme-search-algolia/src/theme/SearchPage/index.js @@ -236,11 +236,14 @@ function SearchPage() { const getTitle = () => searchQuery - ? `${translate({ + ? translate({ id: 'theme.SearchPage.existingResultsTitle', - message: 'Search results for', + message: 'Search results for "{query}"', description: 'The search page title for non-empty query', - })} "${searchQuery}"` + values: { + query: searchQuery, + }, + }) : translate({ id: 'theme.SearchPage.emptyResultsTitle', message: 'Search the documentation',