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

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

coliving/laravel-autotranslate
==============================

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

1.3.0(1y ago)010.4k↓43.1%MITPHPPHP ^8.1 || ^8.2 || ^8.3 || ^8.4

Since Jun 20Pushed 1y agoCompare

[ Source](https://github.com/dungnh/laravel-autotranslate)[ Packagist](https://packagist.org/packages/coliving/laravel-autotranslate)[ Docs](https://github.com/dungnh/laravel-autotranslate)[ RSS](/packages/coliving-laravel-autotranslate/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (15)Versions (5)Used By (0)

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

[](#laravel-autotranslate)

[![Latest Version on Packagist](https://camo.githubusercontent.com/846b18afbe8e05306897d4eb29f77e0cbcc641cd70ac362bae36917088cfd531/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f6c6976696e672f6c61726176656c2d6175746f7472616e736c6174652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/coliving/laravel-autotranslate)[![GitHub Tests Action Status](https://camo.githubusercontent.com/c080d2513b999c5a5d2e599f18a6c2efed059da8256bc7b3bc36d4eef776470b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f636f6c6976696e672f6c61726176656c2d6175746f7472616e736c6174652f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/coliving/laravel-autotranslate/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/f4d9d525d3730a1e38b46409138bec01eb10f6272cfcc8c645e255a6e19bd0dd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f636f6c6976696e672f6c61726176656c2d6175746f7472616e736c6174652f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/coliving/laravel-autotranslate/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/055569265bafc269ab79a88a2ef8d83054520fb9a3ce0ffde029ae704d9ada44/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f6c6976696e672f6c61726176656c2d6175746f7472616e736c6174652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/coliving/laravel-autotranslate)

A Laravel package to automatically translate the application's JSON language files into a chosen language using DeepL. This is folks from bernskioldmedia/laravel-autotranslate package to supports Laravel 12.

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

[](#installation)

You can install the package via composer:

```
composer require coliving/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

38

—

LowBetter than 85% of packages

Maintenance43

Moderate activity, may be stable

Popularity25

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 65.6% 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 ~251 days

Total

2

Last Release

446d ago

PHP version history (2 changes)1.2.0PHP ^8.1 || ^8.3

1.3.0PHP ^8.1 || ^8.2 || ^8.3 || ^8.4

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

laravelbernskioldmedialaravel-autotranslate

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[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.

590244.8k1](/packages/askdkc-breezejp)[statikbe/laravel-filament-chained-translation-manager

A translation manager tool for Laravel Filament, that makes use of the Laravel Chained Translator.

92108.7k](/packages/statikbe-laravel-filament-chained-translation-manager)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[elegantly/laravel-translator

All on one translations management for Laravel

6216.9k](/packages/elegantly-laravel-translator)[smousss/laravel-globalize

Make Laravel projects translatable in a matter of seconds!

2266.3k](/packages/smousss-laravel-globalize)

PHPackages © 2026

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