bakle/translator
Composer 安装命令:
composer require bakle/translator
包简介
Translate lang files to any defined languages with just a command.
README 文档
README
Laravel Translator
This is a package to translate any lang file inside your lang folder.
Installation
composer require bakle/translator
Configuration
This translator works with Google Translator API. First you have to create you Google Translator API Key. https://cloud.google.com/translate
Create and set the TRANSLATOR_API_KEY environment key in your .env.
How to Use It
Note: By default, the translator will set the source lang from your app locale.
Translate all your files to French
php artisan translate --target-lang=fr
Translate a specific file
php artisan translate en/validation.php --target-lang=fr
统计信息
- 总下载量: 51
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-03-21