Skip to main content

Windows 12 网页版 i18n 管理 CLI 工具

Project description

win12-i18n

Windows 12 网页版 i18n 管理 CLI 工具。

用于统一管理 .properties 格式的多语言资源文件,支持解析、校验、同步等操作。

安装

# 使用 uv(推荐)
uv pip install win12-i18n

# 或使用 pip
pip install win12-i18n

使用

# 查看帮助
win12-i18n --help

# 初始化 i18n 目录
win12-i18n init

# 添加翻译键值
win12-i18n add setting.psnl.color "深色模式" -l zh

# 检查各语言文件一致性
win12-i18n check

# 同步键值到所有语言文件
win12-i18n sync -b zh

# 查看某个键在各语言中的值
win12-i18n show setting.psnl.color

开发

# 克隆仓库
git clone https://github.com/win12-online/win12-i18n.git
cd win12-i18n

# 安装开发依赖
uv venv
uv pip install -e ".[dev]"

# 运行测试
uv run pytest

依赖

  • Python >= 3.10
  • Click >= 8.0

Project details


Download files

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

Source Distribution

win12_i18n-0.1.1.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

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

win12_i18n-0.1.1-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file win12_i18n-0.1.1.tar.gz.

File metadata

  • Download URL: win12_i18n-0.1.1.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for win12_i18n-0.1.1.tar.gz
Algorithm Hash digest
SHA256 568a0330d9ae4db391551d9a5fed756326545315886f396f2f5b2a889c32b266
MD5 72391a52e5e40edecbff5dda9e7e5387
BLAKE2b-256 96a5887e956ab1b32df0611dfbe7e52a520f0175775aad4500c09aee5fe2c948

See more details on using hashes here.

File details

Details for the file win12_i18n-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: win12_i18n-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for win12_i18n-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ffab951e230e071162629b7ffeeeae646ec1385bca3bf97baa575bc713274274
MD5 17257cb90d9936e2a8d3de8f7e191885
BLAKE2b-256 df4a7c33556a5983f1c46e3eb692669372b3cf70cc018615b009ec13c98b5e8e

See more details on using hashes here.

Supported by

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