PHPackages                             iammuttaqi/auto-translate - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Localization &amp; i18n](/categories/localization)
4. /
5. iammuttaqi/auto-translate

ActiveLibrary[Localization &amp; i18n](/categories/localization)

iammuttaqi/auto-translate
=========================

Auto generate translation JSON files

1.0.2(2y ago)069MITPHP

Since Jun 12Pushed 2y agoCompare

[ Source](https://github.com/iammuttaqi/auto-translate)[ Packagist](https://packagist.org/packages/iammuttaqi/auto-translate)[ RSS](/packages/iammuttaqi-auto-translate/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (3)Used By (0)

Laravel Auto Translations
=========================

[](#laravel-auto-translations)

[![Latest Version on Packagist](https://camo.githubusercontent.com/931a1456d9b84427d6fed45635ef8de7a01716b31ceda5a92b5cfa04d4d4cfb6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64657661736c616e7068702f6175746f2d7472616e736c6174652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/devaslanphp/auto-translate)[![Total Downloads](https://camo.githubusercontent.com/c4875784cfa239ae67df779b141205ceb2a325c8de180face4c5224810492874/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64657661736c616e7068702f6175746f2d7472616e736c6174652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/devaslanphp/auto-translate)

This package provides a simple way to automatically generate translation JSON files for you, it helps you to generate the missing translation also. The translation are generated automatically using Google Translations, based on the package `stichoza/google-translate-php` and exporting translations string from your source code using the package `kkomelin/laravel-translatable-string-exporter`.

Installation
============

[](#installation)

You can install the package via composer:

```
composer require devaslanphp/auto-translate
```

Add the package provider into your `config/app.php` file:

```
//...

'providers' => [
      // ...

      \Devaslanphp\AutoTranslate\AutoTranslateProvider::class,
],

// ...
```

*REQUIRED*: You need to publish the package config file, so you can update the `base_locale` and `locales` list as needed:

```
php artisan vendor:publish --tag=auto-translate-config
```

**That's it**, you can use the package commands to generate missing translations and automatically translate them using Google Translations

Configuration
=============

[](#configuration)

The configuration file of this package comes like below:

```
