betterde / texterify
本地与texterify TMS之间语言包批量同步的命令行工具
v1.0.2
2023-03-21 07:59 UTC
Requires
- php: >=8.0
- ext-curl: *
- ext-json: *
- guzzlehttp/guzzle: 7.5.0
- illuminate/console: ^7.0|^8.0|^9.0|^10.0
- illuminate/container: ^7.0|^8.0|^9.0|^10.0
- illuminate/http: ^7.0|^8.0|^9.0|^10.0
- illuminate/support: ^7.0|^8.0|^9.0|^10.0
- mnapoli/silly: ^1.8.0
This package is auto-updated.
Last update: 2024-09-16 06:22:54 UTC
README
本地与texterify TMS之间语言包批量同步的命令行工具。
特性
- 将项目语言包推送到Texterify服务
- 将Texterify翻译的语言包拉取到本地项目
- 支持使用短数组格式美化PHP数组代码(使用laravel/pint包)
安装
composer global require betterde/texterify
或
composer require betterde/texterify --dev
配置
您可以通过在项目文件夹中放置一个 .texterify.json
来配置texterify工具。
您可以使用 texterify auth <endpoint> <project> <email> <token>
命令来生成 .texterify.json
配置文件。
Texterify服务器的身份验证配置在项目的 .texterify.json
配置文件中。请确保始终保持配置文件私有。
示例
{ "endpoint": "https:\/\/your.domain.com\/api\/v1", "project": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX", "email": "developer@example.com", "token": "XXXXXXXXXXXXXXXXXXXXX" }
- endpoint: Texterify的API服务端点。
- email: 您在Texterify上登录时使用的电子邮件。
- project: 您要管理的项目。项目ID可以在项目概览网站上找到,或位于项目站点URL中。
- token: 您可以在 https://{your.domain.com}/dashboard/settings/access-tokens 处生成的访问令牌。
用法
如果您已成功配置您的项目,您可以在放置项目配置的目录中尝试执行 texterify <command>
。要获取当前版本支持的所有命令的列表,请尝试 texterify -h
。
Texterify CLI v1.0.1 Usage: command [options] [arguments] Options: -h, --help Display help for the given command. When no command is given display help for the list command -q, --quiet Do not output any message -V, --version Display this application version --ansi|--no-ansi Force (or disable --no-ansi) ANSI output -n, --no-interaction Do not ask any interactive question -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug Available commands: auth Generate authentication information completion Dump the shell completion script component The operations of components help Display help for a command language Display the languages supported by the project list List commands project The operations of project
许可证
本项目采用MIT许可证。有关详细信息,请参阅LICENSE文件。