Windows 12 网页版 i18n 管理 CLI 工具
Project description
win12-i18n
Windows 12 网页版i18n管理 CLI 工具。
用于统一管理 .properties 格式的多语言资源文件,支持解析、校验、同步等操作。
安装
uv venv
uv pip install -e ".[dev]"
使用
# 查看帮助
uv run win12-i18n --help
# 初始化 i18n 目录
uv run win12-i18n init
# 添加翻译键值
uv run win12-i18n add setting.psnl.color "深色模式" -l zh
# 检查各语言文件一致性
uv run win12-i18n check
# 同步键值到所有语言文件
uv run win12-i18n sync -b zh
# 查看某个键在各语言中的值
uv run win12-i18n show setting.psnl.color
开发
# 运行测试
uv run pytest
依赖
- Python >= 3.10
- Click >= 8.0
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
win12_i18n-0.1.0.tar.gz
(15.9 kB
view details)
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 win12_i18n-0.1.0.tar.gz.
File metadata
- Download URL: win12_i18n-0.1.0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ffd60ed26e7eb2454ef51d674e6a2b110701bd6e891008545c8e3fdc802758c
|
|
| MD5 |
269cc3e45c0246df6361f5b0f8f45edc
|
|
| BLAKE2b-256 |
6730c6852c7072b804486d98b25d5e524162760b03c190927292a4456972d070
|
File details
Details for the file win12_i18n-0.1.0-py3-none-any.whl.
File metadata
- Download URL: win12_i18n-0.1.0-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
acafede84ec70a4bb44deca1dda3804690896803371676ac94bda5aa2270de17
|
|
| MD5 |
ef94aec680a11bc044080fd328f8d003
|
|
| BLAKE2b-256 |
7878d9dfcc7cd4d4adc68e9f3e52176ba421e2575396da5ed53c79cfd5eef662
|