1
|
The translations can be named as $langcode.po or with names ending with $langcode.po.
|
2
|
|
3
|
Translations are only automatically imported during the installation of the module for
|
4
|
all the languages already set up on the site,
|
5
|
see https://api.drupal.org/api/drupal/includes!locale.inc/function/locale_batch_by_component/8.x for details.
|
6
|
|
7
|
If the module is already enabled you need to disable and re-enable it. Alternatively you can use the following drush command:
|
8
|
|
9
|
drush php-eval "locale_system_update(array('yourmodule_name'));drush_backend_batch_process();"
|
10
|
|