{"id":22135692,"url":"https://github.com/litefeel/i18n","last_synced_at":"2026-07-16T17:38:52.788Z","repository":{"id":52422407,"uuid":"103743856","full_name":"litefeel/i18n","owner":"litefeel","description":null,"archived":false,"fork":false,"pushed_at":"2021-04-29T19:08:17.000Z","size":71,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-29T15:25:46.096Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/litefeel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-16T10:23:58.000Z","updated_at":"2018-07-26T17:05:53.000Z","dependencies_parsed_at":"2022-08-29T18:01:52.141Z","dependency_job_id":null,"html_url":"https://github.com/litefeel/i18n","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litefeel%2Fi18n","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litefeel%2Fi18n/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litefeel%2Fi18n/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litefeel%2Fi18n/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/litefeel","download_url":"https://codeload.github.com/litefeel/i18n/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245249222,"owners_count":20584497,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-01T19:16:14.871Z","updated_at":"2025-10-15T05:44:16.011Z","avatar_url":"https://github.com/litefeel.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# i18n\n\n[![Build Status](https://travis-ci.org/litefeel/i18n.svg?branch=master)](https://travis-ci.org/litefeel/i18n)\n[![Build status](https://ci.appveyor.com/api/projects/status/qvrrli34rq6yrjje/branch/master?svg=true)](https://ci.appveyor.com/project/litefeel/i18n/branch/master)\n\n\n### 使用方法\n\n~~~\n\u003ei18n.py -h\nusage: i18n.py \u003csubcommand\u003e [options] [args]\n\nexport translation and import it.\n\noptional arguments:\n  -h, --help            show this help message and exit\n\nsubcommands:\n  {import,i,export,e,check}\n    import (i)          import translation to dataset\n    export (e)          export dataset to translation\n    check               automatically detect the text to be translated\n~~~\n\n#### 导出数值表文字到语言包\n\n~~~\n\u003ei18n.py export -h\nusage: i18n.py export [-h] [-c CONFIG] [-r ROOT]\n\nexport dataset to translation\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -c CONFIG, --config CONFIG\n                        config file (default: config.yml)\n  -r ROOT, --root ROOT  override rootdir of config\n~~~\n\n#### 导入语言包到数值表\n\n~~~\n\u003ei18n.py import -h\nusage: i18n.py import [-h] [-c CONFIG] [-r ROOT]\n\nimport translation to dataset\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -c CONFIG, --config CONFIG\n                        config file (default: config.yml)\n  -r ROOT, --root ROOT  override rootdir of config\n~~~\n\n\n#### 自动检测数据表中的语言文字\n\n~~~\n\u003ei18n.py check -h\nusage: i18n.py check [-h] [-e EXTS] [-o OUTPUT] dirs\n\nautomatically detect the text to be translated\n\npositional arguments:\n  dirs                  the path for check i18n, path1,path2,path3\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -e EXTS, --exts EXTS  the extension for check i18n (default: xml,csv)\n  -o OUTPUT, --output OUTPUT\n                        output filename for check i18n (default: checker.yml)\n~~~\n\n\n#### 配置表(config.yml)\n\n~~~ yml\n# YAML\n\nlangs:\n  - zh_TW\n  - en_US\n\n# 以下所有目录都相对于该根目录\n# (留空): 命令行的当前目录\n# relpath: 相对于config.yml所在的目录\n# abspath: 绝对目录\n# . : config.yml 所在的目录\nrootdir: .\n\n# 语言包目录\nlangsdir: languages\n\n# 语言包类型\n# po    导出为.po文件\n# excel 导出为.xlsx文件\ntranslation: excel\n\n# 输出目录\noutputdir: output\n\n\n# 数据表\nsheets:\n  # 数值表格式\n  # \u003cfilename\u003e:[fieldNames]\n  # \n  datasets/lua/*.lua:\n  datasets/csv/tawords.csv: [words, 英雄]\n  datasets/excel/attributeData.xlsx: [name]\n  datasets/xml/static_act_consortia_task.xml: [des]\n~~~\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flitefeel%2Fi18n","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flitefeel%2Fi18n","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flitefeel%2Fi18n/lists"}