dashed / laravel-deepl
Deepl Automated translations for Laravel lang files
v1.0.3
2024-05-10 08:59 UTC
Requires
- php: ^8.2
- chriskonnertz/deeply: ^2.2
- guzzlehttp/guzzle: ^7.8
Requires (Dev)
- mockery/mockery: ^1.0
- orchestra/testbench: 7.*
- phpunit/phpunit: ^9.0
This package is auto-updated.
Last update: 2024-10-10 10:06:03 UTC
README
Provides access to DeepL API for Laravel projects
Table of contents
Installation
To get the latest version of Laravel DeepL
, simply require the project using Composer:
$ composer require dashed/laravel-deepl
Or manually update require
block of composer.json
and run composer update
.
{ "require": { "dashed/laravel-deepl": "^0.1" } }
Using
Translate single string
use Dashed\Deepl\Facades\Deepl; $translated = Deepl::api()->translate('Hallo wereld!', 'NL', 'EN');
Create/Update lang files for specific language. It allows to complete all missing translations for specific language.
php artisan deepl:sync nl