PHPackages                             vildanbina/laravel-auto-translation - 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. vildanbina/laravel-auto-translation

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

vildanbina/laravel-auto-translation
===================================

A Laravel package for automating the translation of language files.

2.2.1(2mo ago)9220.5k↓15.5%18[1 PRs](https://github.com/vildanbina/laravel-auto-translation/pulls)1MITPHPPHP &gt;=8.0

Since Dec 14Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/vildanbina/laravel-auto-translation)[ Packagist](https://packagist.org/packages/vildanbina/laravel-auto-translation)[ GitHub Sponsors](https://github.com/vildanbina)[ RSS](/packages/vildanbina-laravel-auto-translation/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (13)Used By (1)

Laravel Auto Translation
========================

[](#laravel-auto-translation)

[![Latest Stable Version](https://camo.githubusercontent.com/6b89384dee9c78aa5ddd23bfe7c787de595104da62e99efff863d6125d85a61d/68747470733a2f2f706f7365722e707567782e6f72672f76696c64616e62696e612f6c61726176656c2d6175746f2d7472616e736c6174696f6e2f76)](https://packagist.org/packages/vildanbina/laravel-auto-translation)[![Total Downloads](https://camo.githubusercontent.com/07cf42dacada72534cf4ccb497df2b5c9be457ac3efd9a40e17c949413f1313f/68747470733a2f2f706f7365722e707567782e6f72672f76696c64616e62696e612f6c61726176656c2d6175746f2d7472616e736c6174696f6e2f646f776e6c6f616473)](https://packagist.org/packages/vildanbina/laravel-auto-translation)[![License](https://camo.githubusercontent.com/9e244c63806d3461b1c1d784e4cb5345c616ad571dc7b804c5127b27cab638b2/68747470733a2f2f706f7365722e707567782e6f72672f76696c64616e62696e612f6c61726176656c2d6175746f2d7472616e736c6174696f6e2f6c6963656e7365)](https://packagist.org/packages/vildanbina/laravel-auto-translation)[![PHP Version Require](https://camo.githubusercontent.com/9d31b71d2b588335a93e2ce4124860e4f22cbc35a36920e0d70072260a0e4622/68747470733a2f2f706f7365722e707567782e6f72672f76696c64616e62696e612f6c61726176656c2d6175746f2d7472616e736c6174696f6e2f726571756972652f706870)](https://packagist.org/packages/vildanbina/laravel-auto-translation)

Introduction
------------

[](#introduction)

**Laravel Auto Translation** is a robust package designed to simplify and streamline the localization of your Laravel application. By automating the translation of your language files, this package ensures a more efficient workflow. Key features include:

1. **Multiple Drivers**: OpenAI, DeepSeek, Google Translate, and DeepL, and **Ollama (Local AI)**.
2. **JSON &amp; PHP Language File Support**: Scans both JSON and nested PHP files.
3. **Placeholder Preservation**: Automatically protects placeholders like `:attribute` or `:seconds` from being altered.

Requirements
------------

[](#requirements)

- PHP &gt;= 8.0
- Laravel 9.x, 10.x, 11.x or 12.x

Installation
------------

[](#installation)

Install the package using Composer:

```
composer require vildanbina/laravel-auto-translation
```

Publish the configuration file:

```
php artisan vendor:publish --provider="VildanBina\LaravelAutoTranslation\AutoTranslationsServiceProvider"
```

Configuration
-------------

[](#configuration)

The configuration file is located at `config/auto-translations.php`. Below is an example of its default settings. Customize these settings to suit your application, such as specifying the default driver or changing the source language:

```
