function drush_drush_language_language_export_translations in Drush Language Commands 8
Exports .po file(s).
File
- ./
drush_language.drush.inc, line 142 - Drush (< 9) integration for the drush_language module.
Code
function drush_drush_language_language_export_translations() {
// Get options.
$options = [
'statuses' => drush_get_option_list('statuses', 'customized'),
'langcodes' => drush_get_option_list('langcodes'),
'file' => drush_get_option('file', '%langcode.po'),
'force' => drush_get_option('force', TRUE),
];
\Drupal::service('drush_language.cli')
->exportTranslations(new Drush8Io(), 'dt', $options);
}