在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):tanmuhittin/laravel-google-translate开源软件地址(OpenSource Url):https://github.com/tanmuhittin/laravel-google-translate开源编程语言(OpenSource Language):PHP 96.9%开源软件介绍(OpenSource Introduction):laravel-google-translate
by using stichoza/google-translate-php or Google Translate API https://cloud.google.com/translate/ or Yandex Translatin API https://tech.yandex.com/translate/ Str facade api-translation helpersThis package provides two translation methods for Laravel helper Str
how to use your own translation api
Now all translations will use your custom api. installationcomposer require tanmuhittin/laravel-google-translate
php artisan vendor:publish --provider="Tanmuhittin\LaravelGoogleTranslate\LaravelGoogleTranslateServiceProvider" If you would like to use stichoza/google-translate-php you do not need an API key. If you would like to use Google Translate API, edit config/laravel_google_translate.php and add your Google Translate API key. php artisan config:cache Then you can run php artisan translate:files See it on action: potential issuesSSL certificate problem: unable to get local issuer certificatehttps://stackoverflow.com/a/31830614 suggested packagesThis package can be used with https://github.com/andrey-helldar/laravel-lang-publisher.
Done finallyThank you for using laravel-google-translate :) |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论