changed ch to zh

This commit is contained in:
CT
2026-05-17 12:41:09 -05:00
parent 3fe496f8d9
commit e5cc2e2feb
8 changed files with 19 additions and 19 deletions

View File

@@ -1 +0,0 @@
# foreignthon-ch

View File

@@ -0,0 +1 @@
# foreignthon-zh

View File

@@ -3,9 +3,9 @@ requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "foreignthon-ch"
name = "foreignthon-zh"
version = "0.1.0"
description = "Mandarin Chinese language pack for ForeignThon."
description = "Chinese language pack for ForeignThon."
license = { text = "GPL v3" }
requires-python = ">=3.9"
authors = [
@@ -16,7 +16,7 @@ keywords = ["foreignthon", "chinese", "中文", "mandarin"]
dependencies = ["foreignthon>=0.4.1"]
[project.entry-points."foreignthon.langs"]
es = "foreignthon_es"
zh = "foreignthon_zh"
[tool.hatch.build.targets.wheel]
packages = ["src/foreignthon_ch"]
packages = ["src/foreignthon_zh"]

View File

@@ -2,4 +2,4 @@ from importlib.resources import files
def get_pack_path():
return files(__name__) / "ch.json"
return files(__name__) / "zh.json"

View File

@@ -2,16 +2,16 @@
"meta": {
"name": "Chinese",
"native_name": "中文",
"code": "ch",
"code": "zh",
"version": "0.1.0",
"authors": []
},
"keywords": {
"si": "if",
"如果": "if",
"sino": "else",
"osi": "elif",
"para": "for",
"mientras": "while",
"的时候": "while",
"def": "def",
"clase": "class",
"importar": "import",
@@ -27,10 +27,10 @@
"lanzar": "raise",
"con": "with",
"en": "in",
"es": "is",
"y": "and",
"o": "or",
"no": "not",
"": "is",
"": "and",
"": "or",
"": "not",
"elim": "del",
"global": "global",
"nolocal": "nonlocal",
@@ -44,7 +44,7 @@
"Nada": "None"
},
"builtins": {
"escribir": "print",
"": "print",
"imprimir": "print",
"entrada": "input",
"lon": "len",