Download the PHP package javaabu/laravel-dhivehi-translate without Composer
On this page you can find all versions of the php package javaabu/laravel-dhivehi-translate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download javaabu/laravel-dhivehi-translate
More information about javaabu/laravel-dhivehi-translate
Files in javaabu/laravel-dhivehi-translate
Package laravel-dhivehi-translate
Short Description Tr
License MIT
Homepage https://github.com/Javaabu/laravel-dhivehi-translate
Informations about the package laravel-dhivehi-translate
Laravel Dhivehi Translate
Translates Laravel language files to Dhivehi
Installation
You can install the package via composer:
Laravel 5.5 and above uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.
After updating composer, add the ServiceProvider to the providers array in config/app.php
Publish config files
This package essentially creates a Microsoft Translator driver for tanmuhittin/laravel-google-translate package using the InputOutputZ/ATran package.
So this package will publish modified versions of config files from those packages named atran.php
and laravel_google_translate.php
.
Add Microsoft Azure Translation API Key to .env
Follow this link to get API key.
Usage
Then you can run
See it on action:
Str facade api-translation helpers
This package provides two translation methods for Laravel helper Str
Illuminate\Support\Str::apiTranslate
-> Translates texts using your selected api in configIlluminate\Support\Str::apiTranslateWithAttributes
-> Again translates texts using your selected api in config in addition to that this function respects Laravel translation text attributes like :name
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Javaabu Pvt. Ltd.
- Mohamed Jailam
- Arushad Ahmed (@dash8x)
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-dhivehi-translate with dependencies
tanmuhittin/laravel-google-translate Version ~2.1
illuminate/support Version ^5.6|^6.0|^7.0|^8.0|^9.0
atran/translate Version ^8.0