PHPackages                             justbetter/statamic-entry-translator - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. justbetter/statamic-entry-translator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

justbetter/statamic-entry-translator
====================================

Automaticly translate the content of entries.

0.1.0(2mo ago)1479—0%1PHPPHP ^8.4CI passing

Since Jan 27Pushed 2mo agoCompare

[ Source](https://github.com/justbetter/statamic-entry-translator)[ Packagist](https://packagist.org/packages/justbetter/statamic-entry-translator)[ RSS](/packages/justbetter-statamic-entry-translator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (9)Versions (6)Used By (0)

[ ![JustBetter logo](./art/header.png)](https://justbetter.nl "JustBetter")Statamic Entry Translator
=========================

[](#statamic-entry-translator)

 [![Tests](https://camo.githubusercontent.com/b2dcd2cb32c8eb4d404888d16d8de420f45aa3b1b1f02e16e90173d8f6304c46/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a7573746265747465722f73746174616d69632d656e7472792d7472616e736c61746f722f74657374732e796d6c3f6c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/justbetter/statamic-entry-translator) [![Coverage](https://camo.githubusercontent.com/c4120ad30b3225bb250dd8e0e02b5d62f0c305a106106b112dd3dec3a9bd1746/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a7573746265747465722f73746174616d69632d656e7472792d7472616e736c61746f722f636f7665726167652e796d6c3f6c6162656c3d636f766572616765267374796c653d666c61742d737175617265)](https://github.com/justbetter/statamic-entry-translator) [![Analysis](https://camo.githubusercontent.com/7d0cbdc2c6b4686ee14b31fc2fe013ebe51d2c9ba3417dbbe2723540bbc00826/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a7573746265747465722f73746174616d69632d656e7472792d7472616e736c61746f722f616e616c7973652e796d6c3f6c6162656c3d616e616c79736973267374796c653d666c61742d737175617265)](https://github.com/justbetter/statamic-entry-translator) [![Total downloads](https://camo.githubusercontent.com/4d8229eb380695128e0b8c611fc46fc2986e86666e12a55a6e0d6ea0bb6f0af2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a7573746265747465722f73746174616d69632d656e7472792d7472616e736c61746f723f636f6c6f723d626c7565267374796c653d666c61742d737175617265)](https://github.com/justbetter/statamic-entry-translator)

Automatically translate the content of Statamic entries using translation services.

Features
--------

[](#features)

This package provides a seamless way to translate Statamic entries to different sites and locales using translation services.

Features:

- Translate entries to multiple sites/locales
- Support for DeepL translation service
- Queue-based translation processing
- Configurable field exclusions
- Handles nested fields, replicators, and fieldset imports
- Statamic CP action for easy translation
- Only translates localizable fields
- Automatically creates localizations if they don't exist

> Also check out our other [Statamic packages](https://github.com/justbetter?q=statamic)!

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

[](#installation)

Require this package:

```
composer require justbetter/statamic-entry-translator
```

Publish the config:

```
php artisan vendor:publish --tag=justbetter-statamic-entry-translator
```

The config file will be located at `config/justbetter/statamic-entry-translator.php`.

> ***TIP:*** All translations in this package are run via jobs, we recommend Laravel Horizon or another queueing system to run these.

Setup
-----

[](#setup)

### DeepL Configuration

[](#deepl-configuration)

Add your DeepL authentication key to your `.env` file:

```
DEEPL_AUTH_KEY=your-deepl-auth-key-here
```

If you're using DeepL's free tier or a specific server, you can optionally set the server URL:

```
DEEPL_SERVER_URL=https://api-free.deepl.com
```

### Queue Configuration

[](#queue-configuration)

By default, translations are processed on the `default` queue. You can configure this in the config file:

```
