+
Skip to content

docs(content): add website Simplified Chinese (zh-Hans) translation #1217

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion apps/docs-app/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const config = {
// to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'en',
locales: ['en', 'es', 'fr', 'pt-br', 'tr', 'ko'],
locales: ['en', 'es', 'fr', 'pt-br', 'tr', 'ko', 'zh-hans'],
localeConfigs: {
en: {
label: 'English',
Expand All @@ -37,6 +37,10 @@ const config = {
ko: {
label: '한국어',
},
'zh-hans': {
label: '简体中文',
htmlLang: 'zh-Hans',
},
},
},
favicon: 'img/favicon.ico',
Expand Down
325 changes: 325 additions & 0 deletions apps/docs-app/i18n/zh-hans/code.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,325 @@
{
"GitHub Accelerator": {
"message": "GitHub加速器项目",
"description": "The alt text for the GitHub Accelerator logo"
},
"theme.ErrorPageContent.title": {
"message": "页面崩溃了.",
"description": "The title of the fallback page when the page crashed"
},
"theme.ErrorPageContent.tryAgain": {
"message": "再试一次",
"description": "The label of the button to try again when the page crashed"
},
"theme.NotFound.title": {
"message": "页面不见了",
"description": "The title of the 404 page"
},
"theme.NotFound.p1": {
"message": "您查找的页面不存在",
"description": "The first paragraph of the 404 page"
},
"theme.NotFound.p2": {
"message": "请联系指向我们链接的网站所有者,告诉他们链接已经不存在了。",
"description": "The 2nd paragraph of the 404 page"
},
"theme.admonition.note": {
"message": "笔记",
"description": "The default label used for the Note admonition (:::note)"
},
"theme.admonition.tip": {
"message": "提示",
"description": "The default label used for the Tip admonition (:::tip)"
},
"theme.admonition.danger": {
"message": "危险",
"description": "The default label used for the Danger admonition (:::danger)"
},
"theme.admonition.info": {
"message": "信息",
"description": "The default label used for the Info admonition (:::info)"
},
"theme.admonition.caution": {
"message": "注意",
"description": "The default label used for the Caution admonition (:::caution)"
},
"theme.BackToTopButton.buttonAriaLabel": {
"message": "回到顶部",
"description": "The ARIA label for the back to top button"
},
"theme.blog.archive.title": {
"message": "归档",
"description": "The page & hero title of the blog archive page"
},
"theme.blog.archive.description": {
"message": "归档",
"description": "The page & hero description of the blog archive page"
},
"theme.blog.paginator.navAriaLabel": {
"message": "博客分页导航",
"description": "The ARIA label for the blog pagination"
},
"theme.blog.paginator.newerEntries": {
"message": "上一篇",
"description": "The label used to navigate to the newer blog posts page (previous page)"
},
"theme.blog.paginator.olderEntries": {
"message": "下一篇",
"description": "The label used to navigate to the older blog posts page (next page)"
},
"theme.blog.post.paginator.navAriaLabel": {
"message": "博客文章分页",
"description": "The ARIA label for the blog posts pagination"
},
"theme.blog.post.paginator.newerPost": {
"message": "更新的文章",
"description": "The blog post button label to navigate to the newer/previous post"
},
"theme.blog.post.paginator.olderPost": {
"message": "更早的文章",
"description": "The blog post button label to navigate to the older/next post"
},
"theme.blog.post.plurals": {
"message": "{count}篇文章",
"description": "Pluralized label for \"{count} posts\". 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": "\"{tagName}\" 包含 {nPosts} 篇文章",
"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.colorToggle.ariaLabel": {
"message": "切换夜间模式和日间模式(当前模式 {mode})",
"description": "The ARIA label for the navbar color mode toggle"
},
"theme.colorToggle.ariaLabel.mode.dark": {
"message": "夜间模式",
"description": "The name for the dark color mode"
},
"theme.colorToggle.ariaLabel.mode.light": {
"message": "日间模式",
"description": "The name for the light color mode"
},
"theme.docs.DocCard.categoryDescription": {
"message": "{count} 项",
"description": "The default description for a category card in the generated index about how many items this category includes"
},
"theme.docs.paginator.navAriaLabel": {
"message": "文档页面导航",
"description": "The ARIA label for the docs pagination"
},
"theme.docs.paginator.previous": {
"message": "上一页",
"description": "The label used to navigate to the previous doc"
},
"theme.docs.paginator.next": {
"message": "下一页",
"description": "The label used to navigate to the next doc"
},
"theme.docs.breadcrumbs.home": {
"message": "首页",
"description": "The ARIA label for the home page in the breadcrumbs"
},
"theme.docs.breadcrumbs.navAriaLabel": {
"message": "面包屑导航",
"description": "The ARIA label for the breadcrumbs"
},
"theme.docs.tagDocListPageTitle.nDocsTagged": {
"message": "一篇文档|{count} 篇文档",
"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} 标签为 \"{tagName}\"",
"description": "The title of the page for a docs tag"
},
"theme.docs.versions.unreleasedVersionLabel": {
"message": "这是 {siteTitle} {versionLabel} 版本的未发布文档。",
"description": "The label used to tell the user that he's browsing an unreleased doc version"
},
"theme.docs.versions.unmaintainedVersionLabel": {
"message": "这是 {siteTitle} {versionLabel} 版本的文档,该版本不再维护。",
"description": "The label used to tell the user that he's browsing an unmaintained doc version"
},
"theme.docs.versions.latestVersionSuggestionLabel": {
"message": "要查看更新的文档,请访问 {siteTitle} ({versionLabel})。",
"description": "The label used to tell the user to check the latest version"
},
"theme.docs.versions.latestVersionLinkLabel": {
"message": "最新版本",
"description": "The label used for the latest version suggestion link label"
},
"theme.common.editThisPage": {
"message": "编辑当前页面",
"description": "The link label to edit the current page"
},
"theme.common.headingLinkTitle": {
"message": "链接到标题",
"description": "Title for link to heading"
},
"theme.docs.versionBadge.label": {
"message": "版本: {versionLabel}"
},
"theme.lastUpdated.atDate": {
"message": " 于 {date}",
"description": "The words used to describe on which date a page has been last updated"
},
"theme.lastUpdated.byUser": {
"message": " 由 {user}",
"description": "The words used to describe by who the page has been last updated"
},
"theme.lastUpdated.lastUpdatedAtBy": {
"message": "由{byUser}最后更新于{atDate}",
"description": "The sentence used to display when a page has been last updated, and by who"
},
"theme.navbar.mobileVersionsDropdown.label": {
"message": "版本",
"description": "The label for the navbar versions dropdown on mobile view"
},
"theme.tags.tagsListLabel": {
"message": "标签:",
"description": "The label alongside a tag list"
},
"theme.AnnouncementBar.closeButtonAriaLabel": {
"message": "关闭",
"description": "The ARIA label for close button of announcement bar"
},
"theme.blog.sidebar.navAriaLabel": {
"message": "最近的文章",
"description": "The ARIA label for recent posts in the blog sidebar"
},
"theme.CodeBlock.copied": {
"message": "复制成功",
"description": "The copied button label on code blocks"
},
"theme.CodeBlock.copyButtonAriaLabel": {
"message": "复制按钮",
"description": "The ARIA label for copy code blocks button"
},
"theme.CodeBlock.copy": {
"message": "复制",
"description": "The copy button label on code blocks"
},
"theme.CodeBlock.wordWrapToggle": {
"message": "切换文字换行",
"description": "The title attribute for toggle word wrapping button of code block lines"
},
"theme.DocSidebarItem.toggleCollapsedCategoryAriaLabel": {
"message": "切换折叠的侧边栏类别'{label}'",
"description": "The ARIA label to toggle the collapsible sidebar category"
},
"theme.TOCCollapsible.toggleButtonLabel": {
"message": "文档目录",
"description": "The label used by the button on the collapsible TOC component"
},
"theme.blog.post.readingTime.plurals": {
"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)"
},
"theme.navbar.mobileLanguageDropdown.label": {
"message": "语言",
"description": "The label for the mobile language switcher dropdown"
},
"theme.docs.sidebar.closeSidebarButtonAriaLabel": {
"message": "关闭导航栏",
"description": "The ARIA label for close button of mobile sidebar"
},
"theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel": {
"message": "← 返回主菜单",
"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.docs.sidebar.collapseButtonTitle": {
"message": "折叠侧边栏",
"description": "The title attribute for collapse button of doc sidebar"
},
"theme.docs.sidebar.collapseButtonAriaLabel": {
"message": "折叠侧边栏",
"description": "The title attribute for collapse button of doc sidebar"
},
"theme.docs.sidebar.toggleSidebarButtonAriaLabel": {
"message": "切换导航栏",
"description": "The ARIA label for hamburger menu button of mobile navigation"
},
"theme.docs.sidebar.expandButtonTitle": {
"message": "展开侧边栏",
"description": "The ARIA label and title attribute for expand button of doc sidebar"
},
"theme.docs.sidebar.expandButtonAriaLabel": {
"message": "展开侧边栏",
"description": "The ARIA label and title attribute for expand button of doc sidebar"
},
"theme.blog.post.readMore": {
"message": "了解更多",
"description": "The label used in blog post item excerpts to link to full blog posts"
},
"theme.blog.post.readMoreLabel": {
"message": "阅读更多关于{title}",
"description": "The ARIA label for the link to full blog posts from excerpts"
},
"theme.common.skipToMainContent": {
"message": "跳到主要内容",
"description": "The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation"
},
"theme.tags.tagsPageTitle": {
"message": "标签",
"description": "The title of the tag list page"
},
"homepage.title": {
"message": "Analog",
"description": "The title of the homepage"
},
"homepage.readDocs": {
"message": "阅读文档",
"description": "The label of the button to read the docs"
},
"homepage.sponsorSection.title": {
"message": "Analog 免费,开源并由我们的支持者赞助",
"description": "The title of the sponsor section"
},
"homepage.sponsorSection.subtitle": {
"message": "赞助商",
"description": "The subtitle of the sponsor section on the homepage"
},
"homepage.sponsorSection.sponsorButton": {
"message": "赞助Analog",
"description": "The label of the button to sponsor Analog"
},
"features.fileBasedRouting": {
"message": "Analog为Angular应用提供基于文件的路由并且支持API(服务端)路由",
"description": "The description of the feature 'File-based routing and API routes'"
},
"features.vite": {
"message": "Analog使用Vite开发,测试和构建",
"description": "The description of the feature 'Vite-powered'"
},
"features.hybridSSR": {
"message": "Analog同时支持基于Angular的服务端渲染(SSR)和静态站点生成(SSG)",
"description": "The description of the feature 'Hybrid SSR/SSG support'"
},
"homepage.stackblitzButton.text": {
"message": "在StackBlitz打开",
"description": "The text of the StackBlitz button on the homepage"
},
"features.title.vitePowered": {
"message": "由Vite构建",
"description": "The title of the feature \"Vite-powered\""
},
"features.title.hybridSSR": {
"message": "支持混合 SSR/SSG",
"description": "The title of the feature \"Hybrid SSR/SSG support\""
},
"features.title.fileBasedRouting": {
"message": "基于文件的路由和API路由",
"description": "The title of the feature \"File-based routing and API routes\""
},
"homepage.tagline": {
"message": "基于Angular的全栈框架",
"description": "The tagline of the homepage"
},
"homepage.description": {
"message": "基于Angular的全栈框架",
"description": "The description of the homepage"
}
}
Loading
Loading
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载