Translate your Laravel website into multiple languages

This section shows how to integrate Weglot to your Laravel website and translate your Laravel website. It’s quick and easy to make your Laravel website multilingual.

1) Installation

You can install the library via Composer. Run the following command:

composer require weglot/translate-laravel

To use the library, use Composer’s autoload:

require_once __DIR__. '/vendor/autoload.php';

2) Register package

This package use auto-discovery, when you require it from composer, you should have nothing to do and Provider gonna be added automatically to your config/app.php providers list.If this doesn’t work, you can add our provider to the config/app.php, as following: