diff --git a/packages/docusaurus-theme-classic/codeTranslations/base.json b/packages/docusaurus-theme-classic/codeTranslations/base.json index 348b4947d3..adf52aad84 100644 --- a/packages/docusaurus-theme-classic/codeTranslations/base.json +++ b/packages/docusaurus-theme-classic/codeTranslations/base.json @@ -10,7 +10,9 @@ "theme.blog.post.paginator.newerPost": "Newer Post", "theme.blog.post.paginator.olderPost": "Older Post", "theme.blog.post.readMore": "Read More", - "theme.blog.tags": "Tags:", + "theme.tags.tagsPageLink": "View All Tags", + "theme.tags.tagsPageTitle": "Tags", + "theme.tags.tagsListLabel": "Tags:", "theme.CodeBlock.copyButtonAriaLabel": "Copy code to clipboard", "theme.CodeBlock.copied": "Copied", "theme.CodeBlock.copy": "Copy", diff --git a/packages/docusaurus-theme-classic/codeTranslations/fa.json b/packages/docusaurus-theme-classic/codeTranslations/fa.json index 9bbe77b493..bd78726a9f 100644 --- a/packages/docusaurus-theme-classic/codeTranslations/fa.json +++ b/packages/docusaurus-theme-classic/codeTranslations/fa.json @@ -10,7 +10,9 @@ "theme.blog.post.paginator.newerPost": "پست های جدید تر", "theme.blog.post.paginator.olderPost": "پست های قدیمی تر", "theme.blog.post.readMore": "ادامه مطلب", - "theme.blog.tags": "برچسب ها:", + "theme.tags.tagsPageLink": "مشاهده تمام برچسب ها", + "theme.tags.tagsPageTitle": "برچسب ها", + "theme.tags.tagsListLabel": ":برچسب ها", "theme.CodeBlock.copyButtonAriaLabel": "کپی کردن کد به کلیپ بورد", "theme.CodeBlock.copied": "کپی شد", "theme.CodeBlock.copy": "کپی کردن", diff --git a/packages/docusaurus-theme-classic/codeTranslations/fr.json b/packages/docusaurus-theme-classic/codeTranslations/fr.json index 55e4508b58..56aff31a09 100644 --- a/packages/docusaurus-theme-classic/codeTranslations/fr.json +++ b/packages/docusaurus-theme-classic/codeTranslations/fr.json @@ -10,7 +10,9 @@ "theme.blog.post.paginator.newerPost": "Article plus récent", "theme.blog.post.paginator.olderPost": "Article plus ancien", "theme.blog.post.readMore": "Lire plus", - "theme.blog.tags": "Tags:", + "theme.tags.tagsPageLink": "Voir tous les tags", + "theme.tags.tagsPageTitle": "Tags", + "theme.tags.tagsListLabel": "Tags:", "theme.CodeBlock.copyButtonAriaLabel": "Copier le code", "theme.CodeBlock.copied": "Copié", "theme.CodeBlock.copy": "Copier", diff --git a/packages/docusaurus-theme-classic/codeTranslations/ru.json b/packages/docusaurus-theme-classic/codeTranslations/ru.json index 909a6370fd..d3c163c74a 100644 --- a/packages/docusaurus-theme-classic/codeTranslations/ru.json +++ b/packages/docusaurus-theme-classic/codeTranslations/ru.json @@ -10,7 +10,9 @@ "theme.blog.post.paginator.newerPost": "Следующий пост", "theme.blog.post.paginator.olderPost": "Предыдущий пост", "theme.blog.post.readMore": "Читать дальше", - "theme.blog.tags": "Теги:", + "theme.tags.tagsPageLink": "Посмотреть все теги", + "theme.tags.tagsPageTitle": "Теги", + "theme.tags.tagsListLabel": "Теги:", "theme.CodeBlock.copyButtonAriaLabel": "Скопировать в буфер обмена", "theme.CodeBlock.copied": "Скопировано", "theme.CodeBlock.copy": "Скопировать", diff --git a/packages/docusaurus-theme-classic/src/theme/BlogPostItem/index.tsx b/packages/docusaurus-theme-classic/src/theme/BlogPostItem/index.tsx index 1655ee4316..e0d88f6812 100644 --- a/packages/docusaurus-theme-classic/src/theme/BlogPostItem/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/BlogPostItem/index.tsx @@ -102,8 +102,8 @@ function BlogPostItem(props: Props): JSX.Element {
+ id="theme.tags.tagsListLabel" + description="The label alongside a tag list"> Tags: diff --git a/packages/docusaurus-theme-classic/src/theme/BlogTagsListPage/index.tsx b/packages/docusaurus-theme-classic/src/theme/BlogTagsListPage/index.tsx index 2174580dba..c35a775066 100644 --- a/packages/docusaurus-theme-classic/src/theme/BlogTagsListPage/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/BlogTagsListPage/index.tsx @@ -11,6 +11,7 @@ import Layout from '@theme/Layout'; import Link from '@docusaurus/Link'; import type {Props} from '@theme/BlogTagsListPage'; import BlogSidebar from '@theme/BlogSidebar'; +import Translate from '@docusaurus/Translate'; function getCategoryOfTag(tag: string) { // tag's category should be customizable @@ -61,7 +62,13 @@ function BlogTagsListPage(props: Props): JSX.Element {
-

Tags

+

+ + Tags + +

{tagsSection}
diff --git a/packages/docusaurus-theme-classic/src/theme/BlogTagsPostsPage/index.tsx b/packages/docusaurus-theme-classic/src/theme/BlogTagsPostsPage/index.tsx index 651891ff72..c89b005121 100644 --- a/packages/docusaurus-theme-classic/src/theme/BlogTagsPostsPage/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/BlogTagsPostsPage/index.tsx @@ -12,6 +12,7 @@ import BlogPostItem from '@theme/BlogPostItem'; import Link from '@docusaurus/Link'; import type {Props} from '@theme/BlogTagsPostsPage'; import BlogSidebar from '@theme/BlogSidebar'; +import Translate from '@docusaurus/Translate'; function pluralize(count: number, word: string) { return count > 1 ? `${word}s` : word; @@ -37,7 +38,13 @@ function BlogTagsPostPage(props: Props): JSX.Element { {count} {pluralize(count, 'post')} tagged with "{tagName} " - View All Tags + + + View All Tags + +
{items.map(({content: BlogPostContent}) => (