nasr/laravel-lang-translatable
最新稳定版本:1.0.0
Composer 安装命令:
composer require nasr/laravel-lang-translatable
包简介
Easy-to-use package To Automatically translate language directory using google translation
README 文档
README
Introduction
Laravel Lang Translatable is an easy-to-use package To Automatically translate language directory using google translation api.
Installation
composer require nasr/laravel-lang-translatable
Publish the package config file using the following command:
php artisan vendor:publish --provider="LLT\LaravelLangTranslatableServiceProvider"
Basic Usage
php artisan translate:file
This will ask you in the terminal what is the file name you want to translate in your into your supported locales in laravel-lang-translatable config file
For Example: auth.php
php artisan translate:file --all
Will translate your default language directory into your supported locales in laravel-lang-translatable config file
php artisan translate:file --all --path=Modules/YourModuleName/Lang
Will translate your default language directory of your custom directory into your supported locales in laravel-lang-translatable config file
统计信息
- 总下载量: 124
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-10-14