Minecraft mods i18n pack downloader.
Project description
Minecraft模组汉化包更新器 (i18n-updater-cn)
这个 Python 软件包是 I18nUpdateMod 的 Python 实现版本,用于自动下载、合并和转换由 CFPAOrg 团队 维护的 Minecraft 模组汉化包。
汉化资源包使用 Minecraft Mod Language Package 项目中的文件,适用于各种 Minecraft 版本。
安装
使用 pip 安装:
pip install i18n-updater-cn
或使用 uv:
uv pip install i18n-updater-cn
使用方法
命令行使用
基本用法(下载到当前目录):
i18n-updater-cn 1.20.4
指定 Mod 加载器:
i18n-updater-cn 1.18.2 --loader Fabric
指定输出目录:
i18n-updater-cn 1.16.5 --output D:/Downloads
启用调试模式:
i18n-updater-cn 1.20.4 --debug
查看完整帮助:
i18n-updater-cn --help
作为 Python 库使用
from i18n_updater_cn import download_or_convert_language_pack
# 下载并转换汉化包
result = download_or_convert_language_pack(
minecraft_version="1.20.4",
loader="Forge",
output_dir="D:/Downloads",
debug=True,
)
# 检查结果
if result["success"]:
print(f"汉化包已保存到: {result['output_file']}")
else:
print(f"下载失败: {result['error']}")
支持的版本
- Minecraft: 1.6.1 ~ 1.21.10 所有版本
- Mod 加载器: Forge、NeoForge、Fabric、Quilt
- Python: 3.10 及以上版本
核心特性
- 镜像竞速: 并行测试多个下载源,自动选择最快的镜像
- GitHub Release 支持: 支持从 GitHub Release 直接下载资源包
- 增量更新: MD5 校验 + 24 小时更新检查间隔,避免重复下载
- 跨版本合并: 自动合并近邻版本的翻译包,最大化翻译覆盖
- 缓存共享: 临时目录与游戏目录双向同步,支持多实例共享
开发
# 安装开发依赖
uv sync --dev
# 运行测试
uv run pytest tests/ -v
相关项目
- I18nUpdateMod3 - 本项目的 Java 版本原型
- Minecraft-Mod-Language-Package - 中文汉化资源包项目
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file i18n_updater_cn-2.0.0.tar.gz.
File metadata
- Download URL: i18n_updater_cn-2.0.0.tar.gz
- Upload date:
- Size: 28.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3979baaa52f3af4d8f21c5d3f2b683385bbbce578dcab5746fbe072b3525196
|
|
| MD5 |
b7a3b25c7f578e619ced6e6f2f1c50f2
|
|
| BLAKE2b-256 |
0d6c5f1a5da80a93a0b15961493f532d5d8b2e2ef7314e0911bbab0dc43c6aef
|
Provenance
The following attestation bundles were made for i18n_updater_cn-2.0.0.tar.gz:
Publisher:
publish-to-pypi.yml on zack-zzq/I18nUpdatePython
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
i18n_updater_cn-2.0.0.tar.gz -
Subject digest:
a3979baaa52f3af4d8f21c5d3f2b683385bbbce578dcab5746fbe072b3525196 - Sigstore transparency entry: 980684968
- Sigstore integration time:
-
Permalink:
zack-zzq/I18nUpdatePython@7e017e1713d0effa1d713a16f7254d2fc1d3a878 -
Branch / Tag:
refs/tags/v2.0.0 - Owner: https://github.com/zack-zzq
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@7e017e1713d0effa1d713a16f7254d2fc1d3a878 -
Trigger Event:
push
-
Statement type:
File details
Details for the file i18n_updater_cn-2.0.0-py3-none-any.whl.
File metadata
- Download URL: i18n_updater_cn-2.0.0-py3-none-any.whl
- Upload date:
- Size: 27.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e693fbe3a10df36c1695c94a6f0a21404a99d9fce6df7e3bc797e18aa2bfa370
|
|
| MD5 |
ff1bc68d4ef6454431b1404b9eeac3e9
|
|
| BLAKE2b-256 |
80e8bdd7ff520286ad7c72e8b0e7b85d0de840778dc32f1bbf7c5659d2d28792
|
Provenance
The following attestation bundles were made for i18n_updater_cn-2.0.0-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on zack-zzq/I18nUpdatePython
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
i18n_updater_cn-2.0.0-py3-none-any.whl -
Subject digest:
e693fbe3a10df36c1695c94a6f0a21404a99d9fce6df7e3bc797e18aa2bfa370 - Sigstore transparency entry: 980685005
- Sigstore integration time:
-
Permalink:
zack-zzq/I18nUpdatePython@7e017e1713d0effa1d713a16f7254d2fc1d3a878 -
Branch / Tag:
refs/tags/v2.0.0 - Owner: https://github.com/zack-zzq
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@7e017e1713d0effa1d713a16f7254d2fc1d3a878 -
Trigger Event:
push
-
Statement type: