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

相关项目

Metadata

Release files for i18n-updater-cn 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for i18n-updater-cn 2.0.0
File Size Uploaded
i18n_updater_cn-2.0.0.tar.gz 28.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for i18n-updater-cn 2.0.0
File Interpreter ABI Platform
i18n_updater_cn-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 55.8 kB

Release files / i18n_updater_cn-2.0.0.tar.gz

Download URL i18n_updater_cn-2.0.0.tar.gz
Size 28.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a3979baaa52f3af4d8f21c5d3f2b683385bbbce578dcab5746fbe072b3525196
BLAKE2b-256 checksum
How to use checksums
0d6c5f1a5da80a93a0b15961493f532d5d8b2e2ef7314e0911bbab0dc43c6aef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 23, 2026.

Transparency log

Release files / i18n_updater_cn-2.0.0-py3-none-any.whl

Download URL i18n_updater_cn-2.0.0-py3-none-any.whl
Size 27.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e693fbe3a10df36c1695c94a6f0a21404a99d9fce6df7e3bc797e18aa2bfa370
BLAKE2b-256 checksum
How to use checksums
80e8bdd7ff520286ad7c72e8b0e7b85d0de840778dc32f1bbf7c5659d2d28792
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 23, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page