Skip to content

Easily translate strings to any language using DeepL

License

Notifications You must be signed in to change notification settings

Dashed-DEV/laravel-deepl

Repository files navigation

Laravel DeepL Translator

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 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

About

Easily translate strings to any language using DeepL

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages