-
Notifications
You must be signed in to change notification settings - Fork 1
feat(i18n): Added internationalization support #2
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
Open
leemwood
wants to merge
15
commits into
GeyserExtras:main
Choose a base branch
from
leemwood:pr
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 新增简体中文的国际化配置文件 - 添加中文版的文档- 在导航栏中增加语言切换选项
- 删除了 .idea 目录下的 vcs.xml 和 workspace.xml 文件 - 这些文件是 Intellij IDEA 的版本控制和工作空间配置文件,与代码本身无关
- 在 .gitignore 文件中添加了 .idea 目录,以忽略 Intellij IDEA 等 IDE 生成的项目配置文件
- 在 code.json 中更新了"编辑此页面"的翻译,明确指出在 GitHub 上编辑 - 优化了 installation.mdx 文件中的安装步骤描述,使其更加清晰 - 修正了 intro.mdx 文件中的文档描述,提高了语言的准确性
- 将 GitHub Actions 部署触发条件从 main 分支修改为 pages 分支 - 此更改确保只有在 pages 分支上进行推送时才会触发部署流程
- 将网站 URL 从 'https://geyserextras.github.io' 修改为 'https://geyserextras.github_CN.io' - 将项目名称从 'GeyserExtras.github.io' 修改为 'GeyserExtras.github_CN.io'
- 将部署触发条件从 pages 分支更改为 main 分支 - 更新环境名称注释,明确部署目标为 github-pages
- 将 deploymentBranch从 'gh-pages' 修改为 'pages' - 移除了 staticDirectories 配置项
- 将 GitHub Actions 部署触发条件从 'main' 分支修改为 'pages' 分支
- 将部署分支从 'pages' 修改为 'main'- 更新组织名称从 'GeyserExtras' 为 'ning-g-mo'
- 将 baseUrl 从 '/' 修改为 '/GeyserExtras_CN.github.io/' - 这个修改确保了网站 URL 的正确性,避免了资源加载错误
- 修正网站 URL 为正确的域名 - 更新项目名称和组织名称 - 这次提交是为提交pr
- 将 baseUrl 从 '/GeyserExtras_CN.github.io/' 修改为 '/' - 将 organizationName 从 'geyserextras' 修改为 'GeyserExtras' - 这些修改旨在修正网站的基础 URL 和组织名称,以确保正确的页面显示
- 新增 GeyserExtras 主页特性描述的国际化支持 - 优化 ARIA 标签和按钮文本的翻译 - 修正部分语法错误和不一致的表述
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Deployed tested via GitHub pages, link below:
https://ning-g-mo.github.io/GeyserExtras_CN.github.io/
This is the first time I have learned to configure Docusaurus and its internationalization configuration, and it is also the first time to deploy GitHub pages, please understand if you have any questions. (Translation courtesy of Microsoft Translator)
(cn: 这是我第一次学习配置Docusaurus以及它的国际化配置,GitHub pages部署也是第一次,如果有问题请谅解。(翻译由微软翻译提供))