Skip to main content

Minecraft模组汉化包更新器 (i18n-updater-cn)

PyPI version Python Version Tests License

这个 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

相关项目

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

i18n_updater_cn-2.0.0.tar.gz (28.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

i18n_updater_cn-2.0.0-py3-none-any.whl (27.1 kB view details)

Uploaded Python 3

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

Hashes for i18n_updater_cn-2.0.0.tar.gz
Algorithm Hash digest
SHA256 a3979baaa52f3af4d8f21c5d3f2b683385bbbce578dcab5746fbe072b3525196
MD5 b7a3b25c7f578e619ced6e6f2f1c50f2
BLAKE2b-256 0d6c5f1a5da80a93a0b15961493f532d5d8b2e2ef7314e0911bbab0dc43c6aef

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file i18n_updater_cn-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for i18n_updater_cn-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e693fbe3a10df36c1695c94a6f0a21404a99d9fce6df7e3bc797e18aa2bfa370
MD5 ff1bc68d4ef6454431b1404b9eeac3e9
BLAKE2b-256 80e8bdd7ff520286ad7c72e8b0e7b85d0de840778dc32f1bbf7c5659d2d28792

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 files

1.0.7

2 files

1.0.6

2 files

1.0.5

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page