Skip to content

Commit

Permalink
feat i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
a3510377 committed Nov 4, 2023
1 parent 7e967d6 commit 26e7363
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ prometheus_version=1.0.0
# Mod Properties
mod_version=1.1.0
maven_group=monkey.info.command
archives_base_name=infocommand
archives_base_name=info-command
# Dependencies
fabric_version=0.46.1+1.17
9 changes: 9 additions & 0 deletions src/main/resources/assets/info-command/lang/zh_cn.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"category.info-command": "Info Command",
"rule.prometheusEnable.name": "启用 prometheus",
"rule.prometheusEnable.desc": "启用 prometheus",
"rule.prometheusPort.name": "prometheus port",
"rule.prometheusPort.desc": "prometheus 的监听端口",
"rule.prometheusUpdateInterval.name": "prometheus 更新间隔",
"rule.prometheusUpdateInterval.desc": "prometheus 的数据更新间隔"
}
9 changes: 9 additions & 0 deletions src/main/resources/assets/info-command/lang/zh_tw.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"category.info-command": "Info Command",
"rule.prometheusEnable.name": "啟用 prometheus",
"rule.prometheusEnable.desc": "啟用 prometheus",
"rule.prometheusPort.name": "prometheus port",
"rule.prometheusPort.desc": "prometheus 的監聽端口",
"rule.prometheusUpdateInterval.name": "prometheus 更新間隔",
"rule.prometheusUpdateInterval.desc": "prometheus 的數據更新間隔"
}
12 changes: 7 additions & 5 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,34 @@
{
"schemaVersion": 1,
"id": "infocommand",
"id": "info-command",
"version": "${version}",
"name": "InfoCommand",
"description": "An extension for data directives related to Info",
"authors": [
"a3510377"
],
"contact": {
"homepage": "https://fabricmc.net/",
"homepage": "https://github.com/mc-cloud-town/info-command",
"issues": "https://github.com/mc-cloud-town/info-command/issues",
"sources": "https://github.com/mc-cloud-town/info-command"
},
"license": "CC0-1.0",
"icon": "assets/infocommand/icon.png",
"icon": "assets/info-command/icon.png",
"environment": "*",
"entrypoints": {
"main": [
"monkey.info.command.InfoCommand"
]
},
"mixins": [
"infocommand.mixins.json"
"info-command.mixins.json"
],
"depends": {
"fabricloader": ">=0.14.24",
"minecraft": "~1.17.1",
"java": ">=17",
"fabric": "*"
"fabric": "*",
"carpet": ">=1.4.51"
},
"suggests": {
"another-mod": "*"
Expand Down
File renamed without changes.

0 comments on commit 26e7363

Please sign in to comment.