justraviga/laravel-deepl

Deepl Automated translations for Laravel lang files

0.1.2 2023-01-26 07:57 UTC

This package is auto-updated.

Last update: 2024-04-26 10:44:59 UTC


README

Provides access to DeepL API for Laravel projects

Stable Version Unstable Version Total Downloads License

Table of contents

Installation

To get the latest version of Laravel DeepL, simply require the project using Composer:

$ composer require justraviga/laravel-deepl

Or manually update require block of composer.json and run composer update.

{
    "require": {
        "justraviga/laravel-deepl": "^0.1"
    }
}

Using

Translate single string

use JustRaviga\Deepl\Facades\Deepl;

$translated = Deepl::api()->translate('Hello world!', 'EN', 'DE');

Create/Update lang files for specific language. It allows to complete all missing translations for specific language.

php artisan deepl:sync de