You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by yo...@apache.org on 2022/11/25 01:27:15 UTC
[apisix-website] branch master updated: fix: translated some words and added link style (#1418)
This is an automated email from the ASF dual-hosted git repository.
young pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-website.git
The following commit(s) were added to refs/heads/master by this push:
new cb4a7301ea9 fix: translated some words and added link style (#1418)
cb4a7301ea9 is described below
commit cb4a7301ea96c86ce0378686cb1a3f3eb92aa855
Author: uniqie <48...@users.noreply.github.com>
AuthorDate: Fri Nov 25 09:27:08 2022 +0800
fix: translated some words and added link style (#1418)
Co-authored-by: Young <is...@outlook.com>
Fixes https://github.com/apache/apisix-website/issues/1400
---
blog/i18n/zh/code.json | 221 ++++++++++++++++++++-
.../zh/docusaurus-plugin-content-blog/options.json | 14 ++
blog/i18n/zh/docusaurus-theme-classic/navbar.json | 38 +++-
blog/src/theme/BlogTagsPostsPage/index.tsx | 2 +-
blog/src/theme/BlogTagsPostsPage/style.module.scss | 14 ++
5 files changed, 285 insertions(+), 4 deletions(-)
diff --git a/blog/i18n/zh/code.json b/blog/i18n/zh/code.json
index b2e87ffff76..e063e9f450f 100644
--- a/blog/i18n/zh/code.json
+++ b/blog/i18n/zh/code.json
@@ -335,7 +335,8 @@
"description": "Download"
},
"theme.blog.post.readingTime.plurals": {
- "message": "阅读需约 {readingTime} 分钟"
+ "message": "阅读需约 {readingTime} 分钟",
+ "description": "Pluralized label for \"{readingTime} min read\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
},
"blog.posts.section.picked.title": {
"message": "编辑精选",
@@ -344,5 +345,221 @@
"blog.posts.section.normal.title": {
"message": "全部文章",
"description": "All Posts"
+ },
+ "theme.blog.paginator.navAriaLabel": {
+ "message": "Blog list page navigation",
+ "description": "The ARIA label for the blog pagination"
+ },
+ "theme.blog.paginator.newerEntries": {
+ "message": "Newer Entries",
+ "description": "The label used to navigate to the newer blog posts page (previous page)"
+ },
+ "theme.blog.paginator.olderEntries": {
+ "message": "Older Entries",
+ "description": "The label used to navigate to the older blog posts page (next page)"
+ },
+ "theme.blog.post.paginator.navAriaLabel": {
+ "message": "Blog post page navigation",
+ "description": "The ARIA label for the blog posts pagination"
+ },
+ "theme.blog.post.paginator.newerPost": {
+ "message": "Newer Post",
+ "description": "The blog post button label to navigate to the newer/previous post"
+ },
+ "theme.blog.post.paginator.olderPost": {
+ "message": "Older Post",
+ "description": "The blog post button label to navigate to the older/next post"
+ },
+ "theme.blog.post.plurals": {
+ "message": "{count}篇",
+ "description": "Pluralized label for \"{count} post·s\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
+ },
+ "theme.blog.tagTitle": {
+ "message": "{nPosts}被标记为 “{tagName}”",
+ "description": "The title of the page for a blog tag"
+ },
+ "theme.tags.tagsPageLink": {
+ "message": "查看全部标签",
+ "description": "The label of the link targeting the tag list page"
+ },
+ "theme.CodeBlock.copyButtonAriaLabel": {
+ "message": "Copy code to clipboard",
+ "description": "The ARIA label for copy code blocks button"
+ },
+ "theme.CodeBlock.copied": {
+ "message": "Copied",
+ "description": "The copied button label on code blocks"
+ },
+ "theme.CodeBlock.copy": {
+ "message": "Copy",
+ "description": "The copy button label on code blocks"
+ },
+ "theme.NotFound.title": {
+ "message": "Page Not Found",
+ "description": "The title of the 404 page"
+ },
+ "theme.SearchBar.label": {
+ "message": "Search",
+ "description": "The ARIA label and placeholder for search button"
+ },
+ "theme.NotFound.p1": {
+ "message": "We could not find what you were looking for.",
+ "description": "The first paragraph of the 404 page"
+ },
+ "theme.NotFound.p2": {
+ "message": "Please contact the owner of the site that linked you to the original URL and let them know their link is broken.",
+ "description": "The 2nd paragraph of the 404 page"
+ },
+ "theme.AnnouncementBar.closeButtonAriaLabel": {
+ "message": "Close",
+ "description": "The ARIA label for close button of announcement bar"
+ },
+ "theme.BackToTopButton.buttonAriaLabel": {
+ "message": "Scroll back to top",
+ "description": "The ARIA label for the back to top button"
+ },
+ "theme.blog.archive.title": {
+ "message": "Archive",
+ "description": "The page & hero title of the blog archive page"
+ },
+ "theme.blog.archive.description": {
+ "message": "Archive",
+ "description": "The page & hero description of the blog archive page"
+ },
+ "theme.blog.post.readMore": {
+ "message": "Read More",
+ "description": "The label used in blog post item excerpts to link to full blog posts"
+ },
+ "theme.blog.sidebar.navAriaLabel": {
+ "message": "Blog recent posts navigation",
+ "description": "The ARIA label for recent posts in the blog sidebar"
+ },
+ "theme.docs.sidebar.expandButtonTitle": {
+ "message": "Expand sidebar",
+ "description": "The ARIA label and title attribute for expand button of doc sidebar"
+ },
+ "theme.docs.sidebar.expandButtonAriaLabel": {
+ "message": "Expand sidebar",
+ "description": "The ARIA label and title attribute for expand button of doc sidebar"
+ },
+ "theme.docs.paginator.navAriaLabel": {
+ "message": "Docs pages navigation",
+ "description": "The ARIA label for the docs pagination"
+ },
+ "theme.docs.paginator.previous": {
+ "message": "Previous",
+ "description": "The label used to navigate to the previous doc"
+ },
+ "theme.docs.paginator.next": {
+ "message": "Next",
+ "description": "The label used to navigate to the next doc"
+ },
+ "theme.docs.sidebar.collapseButtonTitle": {
+ "message": "Collapse sidebar",
+ "description": "The title attribute for collapse button of doc sidebar"
+ },
+ "theme.docs.sidebar.collapseButtonAriaLabel": {
+ "message": "Collapse sidebar",
+ "description": "The title attribute for collapse button of doc sidebar"
+ },
+ "theme.docs.tagDocListPageTitle.nDocsTagged": {
+ "message": "One doc tagged|{count} docs tagged",
+ "description": "Pluralized label for \"{count} docs tagged\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
+ },
+ "theme.docs.tagDocListPageTitle": {
+ "message": "{nDocsTagged} with \"{tagName}\"",
+ "description": "The title of the page for a docs tag"
+ },
+ "theme.docs.versions.unreleasedVersionLabel": {
+ "message": "This is unreleased documentation for {siteTitle} {versionLabel} version.",
+ "description": "The label used to tell the user that he's browsing an unreleased doc version"
+ },
+ "theme.docs.versions.unmaintainedVersionLabel": {
+ "message": "This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained.",
+ "description": "The label used to tell the user that he's browsing an unmaintained doc version"
+ },
+ "theme.docs.versions.latestVersionSuggestionLabel": {
+ "message": "For up-to-date documentation, see the {latestVersionLink} ({versionLabel}).",
+ "description": "The label used to tell the user to check the latest version"
+ },
+ "theme.docs.versions.latestVersionLinkLabel": {
+ "message": "latest version",
+ "description": "The label used for the latest version suggestion link label"
+ },
+ "theme.common.editThisPage": {
+ "message": "Edit this page",
+ "description": "The link label to edit the current page"
+ },
+ "theme.common.headingLinkTitle": {
+ "message": "Direct link to heading",
+ "description": "Title for link to heading"
+ },
+ "theme.lastUpdated.atDate": {
+ "message": " on {date}",
+ "description": "The words used to describe on which date a page has been last updated"
+ },
+ "theme.lastUpdated.byUser": {
+ "message": " by {user}",
+ "description": "The words used to describe by who the page has been last updated"
+ },
+ "theme.lastUpdated.lastUpdatedAtBy": {
+ "message": "Last updated{atDate}{byUser}",
+ "description": "The sentence used to display when a page has been last updated, and by who"
+ },
+ "theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel": {
+ "message": "← Back to main menu",
+ "description": "The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)"
+ },
+ "theme.navbar.mobileVersionsDropdown.label": {
+ "message": "Versions",
+ "description": "The label for the navbar versions dropdown on mobile view"
+ },
+ "theme.common.skipToMainContent": {
+ "message": "Skip to main content",
+ "description": "The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation"
+ },
+ "theme.TOCCollapsible.toggleButtonLabel": {
+ "message": "On this page",
+ "description": "The label used by the button on the collapsible TOC component"
+ },
+ "theme.tags.tagsListLabel": {
+ "message": "Tags:",
+ "description": "The label alongside a tag list"
+ },
+ "theme.SearchPage.documentsFound.plurals": {
+ "message": "One document found|{count} documents found",
+ "description": "Pluralized label for \"{count} documents found\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
+ },
+ "theme.SearchPage.existingResultsTitle": {
+ "message": "Search results for \"{query}\"",
+ "description": "The search page title for non-empty query"
+ },
+ "theme.SearchPage.emptyResultsTitle": {
+ "message": "Search the documentation",
+ "description": "The search page title for empty query"
+ },
+ "theme.SearchPage.inputPlaceholder": {
+ "message": "Type your search here",
+ "description": "The placeholder for search page input"
+ },
+ "theme.SearchPage.inputLabel": {
+ "message": "Search",
+ "description": "The ARIA label for search page input"
+ },
+ "theme.SearchPage.algoliaLabel": {
+ "message": "Search by Algolia",
+ "description": "The ARIA label for Algolia mention"
+ },
+ "theme.SearchPage.noResultsText": {
+ "message": "No results were found",
+ "description": "The paragraph for empty search result"
+ },
+ "theme.SearchPage.fetchingNewResults": {
+ "message": "Fetching new results...",
+ "description": "The paragraph for fetching new search results"
+ },
+ "theme.tags.tagsPageTitle": {
+ "message": "Tags",
+ "description": "The title of the tag list page"
}
-}
+}
\ No newline at end of file
diff --git a/blog/i18n/zh/docusaurus-plugin-content-blog/options.json b/blog/i18n/zh/docusaurus-plugin-content-blog/options.json
new file mode 100644
index 00000000000..bdb16439eff
--- /dev/null
+++ b/blog/i18n/zh/docusaurus-plugin-content-blog/options.json
@@ -0,0 +1,14 @@
+{
+ "title": {
+ "message": "Blog",
+ "description": "The title for the blog used in SEO"
+ },
+ "description": {
+ "message": "Blog",
+ "description": "The description for the blog used in SEO"
+ },
+ "sidebar.title": {
+ "message": "Recent posts",
+ "description": "The label for the left sidebar"
+ }
+}
\ No newline at end of file
diff --git a/blog/i18n/zh/docusaurus-theme-classic/navbar.json b/blog/i18n/zh/docusaurus-theme-classic/navbar.json
index 1df3fb8c1a7..d596978984e 100644
--- a/blog/i18n/zh/docusaurus-theme-classic/navbar.json
+++ b/blog/i18n/zh/docusaurus-theme-classic/navbar.json
@@ -54,5 +54,41 @@
"item.label.APISIX Dashboard": {
"message": "APISIX Dashboard",
"description": "Navbar item with label APISIX Dashboard"
+ },
+ "item.label.Apache APISIX®️": {
+ "message": "Apache APISIX®️",
+ "description": "Navbar item with label Apache APISIX®️"
+ },
+ "item.label.Apache APISIX®️ Dashboard": {
+ "message": "Apache APISIX®️ Dashboard",
+ "description": "Navbar item with label Apache APISIX®️ Dashboard"
+ },
+ "item.label.Apache APISIX®️ Ingress Controller": {
+ "message": "Apache APISIX®️ Ingress Controller",
+ "description": "Navbar item with label Apache APISIX®️ Ingress Controller"
+ },
+ "item.label.Apache APISIX®️ Helm Charts": {
+ "message": "Apache APISIX®️ Helm Charts",
+ "description": "Navbar item with label Apache APISIX®️ Helm Charts"
+ },
+ "item.label.Apache APISIX®️ Docker": {
+ "message": "Apache APISIX®️ Docker",
+ "description": "Navbar item with label Apache APISIX®️ Docker"
+ },
+ "item.label.Apache APISIX®️ Java Plugin Runner": {
+ "message": "Apache APISIX®️ Java Plugin Runner",
+ "description": "Navbar item with label Apache APISIX®️ Java Plugin Runner"
+ },
+ "item.label.Apache APISIX®️ Go Plugin Runner": {
+ "message": "Apache APISIX®️ Go Plugin Runner",
+ "description": "Navbar item with label Apache APISIX®️ Go Plugin Runner"
+ },
+ "item.label.Apache APISIX®️ Python Plugin Runner": {
+ "message": "Apache APISIX®️ Python Plugin Runner",
+ "description": "Navbar item with label Apache APISIX®️ Python Plugin Runner"
+ },
+ "item.label.General": {
+ "message": "General",
+ "description": "Navbar item with label General"
}
-}
+}
\ No newline at end of file
diff --git a/blog/src/theme/BlogTagsPostsPage/index.tsx b/blog/src/theme/BlogTagsPostsPage/index.tsx
index 55eb2559612..3ff4043e1e5 100644
--- a/blog/src/theme/BlogTagsPostsPage/index.tsx
+++ b/blog/src/theme/BlogTagsPostsPage/index.tsx
@@ -58,7 +58,7 @@ const BlogTagsPostsPage = (props: Props): JSX.Element => {
<header className={style.header}>
<h1>{title}</h1>
- <Link href={allTagsPath}>
+ <Link href={allTagsPath} className={style.link}>
<Translate
id="theme.tags.tagsPageLink"
description="The label of the link targeting the tag list page"
diff --git a/blog/src/theme/BlogTagsPostsPage/style.module.scss b/blog/src/theme/BlogTagsPostsPage/style.module.scss
index be7544dbd05..d3ce6e0dcc4 100644
--- a/blog/src/theme/BlogTagsPostsPage/style.module.scss
+++ b/blog/src/theme/BlogTagsPostsPage/style.module.scss
@@ -2,3 +2,17 @@
text-align: center;
margin-bottom: 4rem;
}
+
+.link {
+ border-bottom: 1px solid black;
+
+ &:hover {
+ color: #f56b69 !important;
+ border-bottom: 1px solid rgb(232 67 62) !important;
+ }
+
+ &:visited {
+ color: blueviolet;
+ border-bottom: 1px solid blueviolet;
+ }
+}