Skip to content
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

docs: display zh-hans in the docs language switcher #16686

Merged
merged 2 commits into from Dec 23, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
116 changes: 116 additions & 0 deletions docs/src/_data/sites/zh-hans.yml
@@ -0,0 +1,116 @@
#------------------------------------------------------------------------------
# Simplified Chinese Site Details
# The documentation site that is hosted at zh-hans.eslint.org/docs
# Author: Percy Ma
#------------------------------------------------------------------------------

#------------------------------------------------------------------------------
# Global Settings
#------------------------------------------------------------------------------

language:
code: zh-hans
flag: 🇨🇳
name: 简体中文
locale: zh-hans
hostname: zh-hans.eslint.org

#------------------------------------------------------------------------------
# Analytics
#------------------------------------------------------------------------------

google_analytics:
code: "G-6ELXTK7GZR"

#------------------------------------------------------------------------------
# Ads
#------------------------------------------------------------------------------

carbon_ads:
serve: ""
placement: ""

#------------------------------------------------------------------------------
# Shared
#------------------------------------------------------------------------------

shared:
get_started: 开始
become_a_sponsor: 捐赠
eslint_logo_alt: ESLint 图标
description: >
插件化、可配置的 JavaScript 代码检查工具,让你轻松地提高代码质量。
title_format: PAGE_TITLE - ESLint - 插件化的 JavaScript 代码检查工具
skip_to_content: 跳转到正文
donate: 捐赠

#------------------------------------------------------------------------------
# Navigation
#------------------------------------------------------------------------------

navigation:
- text: 团队
link: team
- text: 博客
link: blog
- text: 文档
link: docs
- text: 商店
link: store
target: _blank
- text: 演练场
link: playground

#------------------------------------------------------------------------------
# Footer
#------------------------------------------------------------------------------

footer:
title: 准备修复你的 JavaScript 代码了吗?
description: 从 npm 安装或捐赠开始。
secondary: 次要
social_icons:
title: 社交媒体
twitter: Twitter
chat: Discord
mailing_list: Google Group
github: GitHub
theme_switcher:
title: 主题切换
light: 浅色
dark: 深色
language_switcher:
title: 语言切换
description: 切换到你所选择语言版本对应的 ESLint 网站。
change_language: 更改语言
language: 语言
copyright: >
&copy; OpenJS Foundation and ESLint contributors, <a href="https://www.openjsf.org">www.openjsf.org</a>
links:
open_jsf: OpenJS 基金会
terms: 使用条款
privacy: 隐私策略
bylaws: OpenJS 基金会章程
trademark: 商标策略
trademark_list: 商标列表
cookies: Cookie 策略

#------------------------------------------------------------------------------
# 404 Page
#------------------------------------------------------------------------------

404_page:
title: 404 错误
subtitle: 页面未找到
description: 对不起,你正在寻找的页面不存在或已被移动。
actions:
back_to_home: 回到主页
browse_docs: 浏览文档

#------------------------------------------------------------------------------
# Edit link
#------------------------------------------------------------------------------

edit_link:
start_with: https://github.com/eslint/eslint/edit/main/docs/
text: 编辑此页