Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Loco Translate

31 sites Security covered Drupal 10โ€“11
View on drupal.org

Loco Translate integrates your Drupal site with the Loco translation platform. It allows you to push translation keys to Loco and pull translations back into Drupal, streamlining your multilingual website development workflow.

Loco Translate provides a normalised way to collect & gather internationalisation assets & translations into & from Loco.
Ensure an enhanced Developer Experience (DX) when dealing with translations & multilingual websites.

๐Ÿ“– Read the article ๐Ÿ“–

You need Loco Translate if

  • You want to use Loco as your Master Sass translation platform
  • You want to push automatically a .po file from your Drupal instance to Loco,
  • You want your Drupal environment to be updated automatically or manually from your Loco Sass,
  • You want to use a module based on the Core Translation API,
  • You want to deal with translation outside of Drupal UI,

Loco Translate can do a lot more than that, but those are some of the obvious uses of this module.

Features

  • Offers a Dashboard to overview translations progress on Loco,
  • Provide a utility script to push assets keys from Drupal to Loco,
  • Expose a Drush command to pull assets & translations from Loco to Drupal,

Standard usage scenario

TBD

Versions

This module works on Drupal 8, Drupal 9, Drupal 10 & Drupal 11 !

The latest version should work with all Drupal 9/10/11 releases using Drush 10+,
and it is always recommended keeping Drupal core installations up to date.

Which version should I use?

Drupal Core Loco Translate 8.7.x 1.x 8.8.x 2.1 8.9.x 2.1 9.x 2.x 10.x 3.0.x 11.x 3.0.x

Dependencies

This module relies on Loco & the Loco PHP SDK.

  • Loco PHP SDK is an external PHP library to communicate with the Loco API.

We assume, that you have installed loco/loco using Composer.

Supporting organizations

This project is sponsored by Antistatique. We are a Swiss Web Agency, Visit us at www.antistatique.net or Contact us.

Getting Started

We highly recommend you to install the module using composer.

composer require drupal/loco-translate

You can also install it using the drush or drupal console cli.

drush dl loco-translate
drupal module:install loco-translate

Configure your API Keys - as required by Loco - by adding the following code in your settings.php

/**
  * Loco Translate Export Key.
  *
  * @var string
*/
$config['loco_translate.settings']['api']['readonly_key'] = 'YOUR-KEY-HERE';

/**
  * Loco Translate Full Access Key.
  *
  * @var string
*/
$config['loco_translate.settings']['api']['fullaccess_key'] = 'YOUR-KEY-HERE';

Exposed Drush Commands

This module is shipped with drush commands to assist you in your workflow.

Push Command

The Push command will create new translations keys (a.k.a assets) into your Loco SaSS - from a reference .po files which should be in your Drupal or Local environmment:

drush loco:push --language="fr" ./translations/fr.po

Pull Command

The Pull command will fetch keys & translations from your Loco SaSS into Drupal:

drush loco:pull fr

Know issues

Getting the message 'Download error. Could not move downloaded file from Loco to destination translations://.'

Add the following code in your settings.php

/**
 * Translations file path.
 */
$config['locale.settings']['translation']['path'] = '/var/www/web/sites/default/files/translations';

Depends on

Dependencies of the latest stable release

  • file Drupal core
  • language Drupal core
  • locale Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
6
Tracked since
May 2025
Latest release
1 month ago
Releases (12 mo)
4 ▲ from 2
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
3.0.8 Stable 10โ€“11 Jul 2, 2026
3.0.7 Stable 10โ€“11 May 15, 2026
3.0.6 Stable 10โ€“11 Apr 20, 2026
3.0.5 Stable 10โ€“11 Jan 26, 2026
3.0.4 Stable 10โ€“11 Aug 25, 2025
3.0.3 Stable 10โ€“11 May 15, 2025