pezhvak/laravel-translator
最新稳定版本:1.3
Composer 安装命令:
composer require pezhvak/laravel-translator
包简介
A package to finally be able to localize projects without worrying about updating strings.
README 文档
README
Installation
You can install the package via composer:
composer require pezhvak/laravel-translator
You can publish the config file with:
php artisan vendor:publish --tag="laravel-translator-config"
make sure you add these environment variables to your .env file.
DEEPL_AUTH_KEY=<put your deepl token here>
Usage
First migrate the database:
php artisan migrate
Now you can run the following command to detect changes and translate strings:
php artisan translator:translate
Sometimes you want to translate only few locales, you can do this by providing them in the first parameter (separate them by comma if you want to provide multiple locales):
php artisan translator:translate en,fa
If you add a new locale, it won't get translated since there is no changed string in the default language, to do this force the translation:
php artisan translator:translate [new_locale] --force
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 355
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-07-07