ntzrbtr/deepl-translator
最新稳定版本:v1.0.3
Composer 安装命令:
composer require ntzrbtr/deepl-translator
包简介
Command-line tool to translate language files using DeepL
README 文档
README
This is a simple command-line tool to translate files containing locale strings in the form of PHP array (as e.g. used by Laravel) using the DeepL API.
Installation
Install the package using composer: composer require --dev ntzrbtr/deepl-translate.
Setup
- Create a DeepL API key at https://www.deepl.com/pro#developer
- Create a
.envfile in the root of your project and add the following line:DEEPL_API_KEY=your-api-key
Usage
- Run
vendor/bin/deepl-translate [options] <source> <target>to translate your file<source>is the source file<target>is the target file- Within
[options]you can set the source and target language:--source-language(default:en)--target-language(default:de)
统计信息
- 总下载量: 28
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2023-01-19