PHPackages                             bernskioldmedia/laravel-autotranslate - 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. bernskioldmedia/laravel-autotranslate

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

bernskioldmedia/laravel-autotranslate
=====================================

A Laravel package to automatically translate the application's language files into a chosen language using DeepL.

2.1.0(2mo ago)23.3k2[1 PRs](https://github.com/bernskiold/laravel-autotranslate/pulls)MITPHPPHP ^8.2CI passing

Since Jan 15Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/bernskiold/laravel-autotranslate)[ Packagist](https://packagist.org/packages/bernskioldmedia/laravel-autotranslate)[ Docs](https://github.com/bernskioldmedia/laravel-autotranslate)[ RSS](/packages/bernskioldmedia-laravel-autotranslate/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (6)Dependencies (28)Versions (13)Used By (0)

Laravel Autotranslate
=====================

[](#laravel-autotranslate)

[![Latest Version on Packagist](https://camo.githubusercontent.com/492f05b76d051dd2c63459bfb807442822fff76c972fccd3b322b4f055c0be99/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6265726e736b696f6c646d656469612f6c61726176656c2d6175746f7472616e736c6174652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bernskioldmedia/laravel-autotranslate)[![GitHub Tests Action Status](https://camo.githubusercontent.com/5c1fb0272d9202255698e42437f7464453212f42458b3ae256a7e60ded5f4f0b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6265726e736b696f6c646d656469612f6c61726176656c2d6175746f7472616e736c6174652f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/bernskioldmedia/laravel-autotranslate/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/c8d0644fc286045e2f544c5c593ceaf069c918476b114d4fc7f481288c1cc97d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6265726e736b696f6c646d656469612f6c61726176656c2d6175746f7472616e736c6174652f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/bernskioldmedia/laravel-autotranslate/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/8d50da922326e470483a7486e98240556eb3965602f25c5facc991f8a23dd15f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6265726e736b696f6c646d656469612f6c61726176656c2d6175746f7472616e736c6174652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bernskioldmedia/laravel-autotranslate)

A Laravel package to automatically translate the application's JSON language files into a chosen language using DeepL.

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

[](#installation)

You can install the package via composer:

```
composer require bernskioldmedia/laravel-autotranslate
```

You can install the package using the installation command:

```
php artisan autotranslate:install
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-autotranslate-config"
```

This is the contents of the published config file:

```
return [

    /**
     * The source language that your application language is in before translation.
     */
    'source_language' => 'en',

    /**
     * This is your DeepL API key.
     */
    'api_key' => env('AUTOTRANSLATE_DEEPL_KEY'),

    /**
     * DeepL supports settings for each language to translate to.
     * These are the default settings that will be applied
     * unless you override it for a specific language below.
     *
     * See the DeepL PHP SDK for more information: https://github.com/DeepLcom/deepl-php
     */
    'options' => [

        // Choose the formality of the text.
        // This setting is only available for certain languages: https://github.com/DeepLcom/deepl-php#listing-available-languages
        // Available options: 'less', 'more', 'default', 'prefer_less', 'prefer_more'
        'formality' => 'default',

        // Specify how input text should be split into sentences.
        // Available options: 'on', (default) 'off', 'nonewlines'
        'split_sentences' => 'on',

        // Controls automatic-formatting-correction.
        // Set to true to prevent automatic-correction of formatting.
        'preserve_formatting' => false,

        // Type of tags to parse before translation.
        // Available options: 'html', 'xml'
        'tag_handling' => 'html',

        // The ID of the DeepL glossary to use.
        'glossary' => null,
    ],

    'language_options' => [

//      'de' => [
//          'formality' => 'less',
//      ],

    ],

];
```

Usage
-----

[](#usage)

To translate your application's language files, you can use the `autotranslate:translate` command:

```
php artisan autotranslate:translate sv
```

The language parameter is required, and should correspond to the language path within your application's languages folder.

Automatically exporting strings
-------------------------------

[](#automatically-exporting-strings)

If you want to automatically export strings from your application to the language files, you can use the [Translatable String Exporter for Laravel](https://github.com/kkomelin/laravel-translatable-string-exporter)package.

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

- [Bernskiold Media](https://github.com/bernskioldmedia)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

51

—

FairBetter than 95% of packages

Maintenance88

Actively maintained with recent releases

Popularity25

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~239 days

Recently: every ~285 days

Total

6

Last Release

63d ago

Major Versions

1.1.0 → 2.0.02026-01-01

PHP version history (2 changes)1.0.0PHP ^8.1

2.1.0PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8409819?v=4)[Bernskiold](/maintainers/bernskiold)[@bernskiold](https://github.com/bernskiold)

---

Top Contributors

[![ErikBernskiold](https://avatars.githubusercontent.com/u/1166728?v=4)](https://github.com/ErikBernskiold "ErikBernskiold (28 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (14 commits)")

---

Tags

laravelbernskioldmedialaravel-autotranslate

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/bernskioldmedia-laravel-autotranslate/health.svg)

```
[![Health](https://phpackages.com/badges/bernskioldmedia-laravel-autotranslate/health.svg)](https://phpackages.com/packages/bernskioldmedia-laravel-autotranslate)
```

###  Alternatives

[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.3M42](/packages/spatie-laravel-pdf)[spatie/laravel-health

Monitor the health of a Laravel application

87411.3M153](/packages/spatie-laravel-health)[askdkc/breezejp

Laravel Starter Kit (Livewire+Breeze+Laravel UI+Jetstream)や標準のバリデーションメッセージを全て一瞬で日本語化し、言語切替機能も提供するパッケージです / This package provides all-in-one Japanese translation for Laravel StarterKit (Livewire StarterKit, Breeze, Laravel UI and Jetstream) packages and validation messages with language switching feature.

593266.8k1](/packages/askdkc-breezejp)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3913.7k](/packages/rawilk-profile-filament-plugin)[elegantly/laravel-translator

All on one translations management for Laravel

6326.3k](/packages/elegantly-laravel-translator)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

43140.3k](/packages/harris21-laravel-fuse)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
