PHPackages                             genius-asif/laravel-lang-ai-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. genius-asif/laravel-lang-ai-translate

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

genius-asif/laravel-lang-ai-translate
=====================================

A Laravel package to automate the translation from (en) language files to other languages using LLM APIs.

v1.0.1(1y ago)19[4 PRs](https://github.com/genius-asif/laravel-lang-ai-translate/pulls)MITPHPPHP ^8.3||^8.4CI passing

Since Apr 2Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/genius-asif/laravel-lang-ai-translate)[ Packagist](https://packagist.org/packages/genius-asif/laravel-lang-ai-translate)[ Docs](https://github.com/genius-asif/laravel-lang-ai-translate)[ GitHub Sponsors](https://github.com/genius-asif)[ RSS](/packages/genius-asif-laravel-lang-ai-translate/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (14)Versions (7)Used By (0)

[![Latest Version on Packagist](https://camo.githubusercontent.com/00347c7d6c4db9119d3baea083247deb46eb98fdcc9d6079f49e82d24d24f423/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f67656e6975732d617369662f6c61726176656c2d6c616e672d61692d7472616e736c6174652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/genius-asif/laravel-lang-ai-translate)[![GitHub Tests Action Status](https://camo.githubusercontent.com/b2ff740dfa20cb90f2f7c807a88ebdda20aad7e9afffed7f6508b90163000d98/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f67656e6975732d617369662f6c61726176656c2d6c616e672d61692d7472616e736c6174652f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/genius-asif/laravel-lang-ai-translate/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/fd4024b26aa235766c5b1460d0b8e81404056a0102300016360802972084f7f7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f67656e6975732d617369662f6c61726176656c2d6c616e672d61692d7472616e736c6174652f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/genius-asif/laravel-lang-ai-translate/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/3746ed643e8cc40411c21748e85984cce924ae15421ab2741a941c1442af3f48/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f67656e6975732d617369662f6c61726176656c2d6c616e672d61692d7472616e736c6174652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/genius-asif/laravel-lang-ai-translate)

 [![Package Logo](logo.png)](logo.png)

 Laravel Language AI Translate
===============================

[](#----laravel-language-ai-translate)

Effortlessly translate your Laravel language files from English to multiple languages using powerful AI APIs like Google Gemini, OpenAI, and DeepSeek. Automate your localization workflow and reach a global audience with ease.

Key Features
------------

[](#key-features)

- **AI-Powered Translation:** Leverage the capabilities of Google Gemini, OpenAI, and DeepSeek for accurate and efficient translations.
- **Automated Workflow:** Simplify your translation process by automating the translation of entire language files.
- **Multiple Language Support:** Translate to a wide range of languages supported by the integrated AI APIs.
- **Easy Integration:** Seamlessly integrate into your Laravel project with a simple Artisan command.
- **Configurable Providers:** Easily switch between different AI translation providers based on your needs and preferences.

Prerequisites
-------------

[](#prerequisites)

- **PHP 8.3 or higher**
- **Laravel 11 or higher**

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

[](#installation)

You can install the package via Composer:

```
composer require genius-asif/laravel-lang-ai-translate
```

Publish the configuration file:

```
php artisan vendor:publish
```

This will create a `config/lang-ai-translation.php` file where you can configure your LLM API keys and language settings.

**Configuration:**

Open the `config/lang-ai-translation.php` file and add your API keys for the desired translation providers:

```
