Skip to content
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
18 changes: 17 additions & 1 deletion src/lib/translations/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export const config: Config<{ placeholder?: string }> = {
parser: parser(),
translations: {
en: { lang },
fr: { lang }
fr: { lang },
zh: { lang }
},
loaders: [
{
Expand Down Expand Up @@ -47,6 +48,21 @@ export const config: Config<{ placeholder?: string }> = {
locale: "fr",
key: "wiki",
loader: async () => (await import("./fr/wiki.json")).default
},
{
locale: "zh",
key: "application",
loader: async () => (await import("./zh/application.json")).default
},
{
locale: "zh",
key: "error",
loader: async () => (await import("./zh/error.json")).default
},
{
locale: "zh",
key: "wiki",
loader: async () => (await import("./zh/wiki.json")).default
}
],
log: { level: dev ? "warn" : "error" }
Expand Down
3 changes: 2 additions & 1 deletion src/lib/translations/lang.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export default {
en: "English",
fr: "Français"
fr: "Français",
zh: "中文"
};
13 changes: 13 additions & 0 deletions src/lib/translations/zh/application.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"title": "Quilt开发Wiki :P",
"dev-notice": "注意:本网站仍在开发中。请在<{{placeholder}}>中报告发现的问题",
"translation-notice": "请注意,此wiki的原始语言为英语,翻译版本可能与英语版本不同步",
"draft-notice": "你已访问到Wiki中已计划但尚未实现的页面。如果你想帮助编写此页面,请访问<{{placeholder}}>",
"sidebar": {
"menu": "菜单",
"articles": "文章"
},
"lang-dropdown": {
"language": "语言"
}
}
5 changes: 5 additions & 0 deletions src/lib/translations/zh/error.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"title": "Error {{placeholder}}",
"404": "未找到页面:`{{placeholder}}`",
"500": "The server encoutered an internal error, please try again"
}
100 changes: 100 additions & 0 deletions src/lib/translations/zh/wiki.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
{
"not-translated": "此wiki页面尚未被翻译为{{placeholder}}",
"not-found": "未找到页面:`{{placeholder}}`",
"blocks": {
"title": "方块",
"first-block": {
"title": "添加一个简单方块"
},
"oriented-block": {
"title": "添加一个定向方块"
},
"redstone-interaction": {
"title": "添加红石功能到你的方块"
}
},
"concepts": {
"title": "概念",
"events": {
"title": "事件"
},
"libraries": {
"title": "第三方库列表"
},
"lifecycles-ticks": {
"title": "Lifecycles and Ticks"
},
"minecraft-code-structure": {
"title": "Minecraft’s Code Structure"
},
"mixins": {
"title": "Mixins"
},
"nbt": {
"title": "NBT and Data in Minecaft"
},
"networking": {
"title": "Networking"
},
"qsl-qfapi": {
"title": "QSL和QFAPI概述"
},
"registries": {
"title": "Registries"
},
"sideness": {
"title": "Server-Side and Client-Side"
}
},
"data": {
"title": "Data",
"adding-recipes": {
"title": "Adding Recipes"
},
"rea": {
"title": "Using Registry Entry Attachments (REA)"
},
"recipe-api": {
"title": "Recipe API"
},
"recipe-type": {
"title": "Adding a Recipe Type"
},
"resource-loader": {
"title": "Resource Loader"
}
},
"introduction": {
"title": "介绍",
"get-started": {
"title": "Quilt开发入门"
},
"setting-up": {
"title": "建立开发环境"
}
},
"items": {
"title": "物品",
"armor": {
"title": "添加盔甲"
},
"first-item": {
"title": "创建你的第一个物品"
},
"food": {
"title": "添加食物"
},
"tools": {
"title": "添加自定义工具"
}
},
"misc": {
"title": "Misc",
"commands": {
"title": "Adding Commands"
},
"sounds": {
"title": "Adding Sounds"
}
}
}
38 changes: 38 additions & 0 deletions wiki/introduction/get-started/zh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Quilt开发入门

## 基本要求

为了开始修改Minecraft,你需要知道一些基础知识。

- Java基础知识。这包括理解其语法,面向对象编程以及一些基本的设计模式。
- [Git](https://git-scm.com/)基础知识。虽然技术上没有必要,但它会让你的开发轻松很多。这包括如何克隆存储库并提交代码。

TODO:这里还有什么需要描述的吗?

## 如何使用此Wiki

TODO:创建示例代码仓库并将其放在此处

此wiki包含按顺序阅读效果最好的页面。许多文章,尤其是在开头,建议继续阅读其他合理的文章。大多数页面都会包含代码片段,并计划在示例mods中提供完整的示例。(这还没有完成)

Additionally, you might account lines prefixed with `TODO:`. Those are notes for people working on the wiki what still needs to be done. For now, you can ignore them. Just know that there is more content to be inserted there.

TODO:准备好后,列出所有wiki文章的大纲

## 初学者如何学习模组

Minecraft的模组制作可能很复杂。我们旨在提供资源帮助您学习基本的编写概念。但有些事情我们做不到,所以希望你自己学习。

正确提问,无论是在我们的论坛上还是在Discord上,都是一项必不可少的技能。永远不要害怕问问题,我们愿意提供帮助,而且我们不会评判你的问题。。

TODO: 此处的提问方法

许多问题已经在其他模组中解决了,并可供您公开使用查看和使用,因为使用Quilt的大多数模组都是开源的。我们建议您查看如何在开源存储库中做事的示例,有时还会“窃取”代码。开源存储库供您学习和使用,不要害怕他们。

TODO: Levi,在这里写下你偷代码的事(原文如此)

## Fabric和Quilt的区别

Quilt是Fabric的一个分支。但Quilt有一些与Fabric的关键区别。

TODO: Levi,把你的东西写在这里
Loading