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

Add Chinese translations #19

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from
Draft
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
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18.18.0
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The documentation is built using [Docusaurus 2](https://docusaurus.io)

## Contributing

*Contribution guidelines are currently pending.*
You can read the [contribution guidelines on the docs](https://docs.neoforged.net/contributing/).

If you wish to contribute to the documentation, fork and clone this repository.

Expand Down
6 changes: 3 additions & 3 deletions docs/misc/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ A `Component` is a holder for text which can be formatted and chained with other
| `score` | it creates a component for representing the `objective`'s score of an entity specified by the [entity selector][selectors] `name`. |
| `selector` | it creates a component for displaying the list of names of entities selected by the [entity selector][selectors] `pattern`. |

A component's text contents are represented by `ComponentContents`. Notably, the subtype `TranslatableContents` not only supports [localization][internalization] but also [text formatting][formatting].
A component's text contents are represented by `ComponentContents`. Notably, the subtype `TranslatableContents` not only supports [localization][internationalization] but also [text formatting][formatting].

Applying Style
--------------
Expand Down Expand Up @@ -101,10 +101,10 @@ Text formatting is the process of inserting data as text into predefined larger

Any `Component` element within `args` will be transformed into a formatted text string.

[internalization]: ../concepts/internationalization.md
[internationalization]: ../concepts/internationalization.md
[selectors]: https://minecraft.wiki/w/Target_selectors
[red_hello]: /img/component_red_hello.png
[style_annotated]: /img/component_style_annotated.png
[formatting]: #text-formatting
[tree]: /img/component_graph.png
[keymapping]: ./keymappings.md
[keymapping]: ./keymappings.md
11 changes: 10 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const config = {
// to replace "en" with "zh-Hans".
i18n: {
defaultLocale: "en",
locales: ["en"],
locales: ["en", "zh-CN"],
},

presets: [
Expand Down Expand Up @@ -118,6 +118,11 @@ const config = {
position: "right",
docsPluginId: "neogradle",
},
{
to: "/contributing",
label: "Contributing",
position: "right",
},
{
href: "https://github.com/neoforged/documentation",
label: "GitHub",
Expand All @@ -139,6 +144,10 @@ const config = {
to: "/neogradle/docs/",
label: "NeoGradle Documentation",
},
{
to: "/contributing",
label: "Contributing to the Documentation"
}
],
},
{
Expand Down
Loading