Skip to content
Snippets Groups Projects
Commit 67ba8862 authored by Simon Baese's avatar Simon Baese Committed by Shibin Das
Browse files

Issue #3458202: Provide default string as note in string_tmgmt XLIFF file export

parent f48e564b
Branches
No related tags found
No related merge requests found
......@@ -25,4 +25,15 @@ class StringSource extends LocaleSource {
return ['default' => $this->t('String')];
}
/**
* {@inheritdoc}
*/
public function getData(JobItemInterface $job_item): array {
$structure = parent::getData($job_item);
if ($string_id = $structure['singular']['#text'] ?? '') {
$structure['singular']['#label'] = \Drupal::service('string_translator.string.defaults')->getStringTranslation('en', $string_id, '');
}
return $structure;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment