Strings that I translate at "User interface translation" /admin/config/regional/translate are not exportable by "Configuration management" /admin/config/development/configuration for me. Am I missing something?
I would like to automate this process with hook_update_N
or drush cim -y
.
What is a proper way to automatically deploy "User interface translation" in Drupal 8?
- Should I do it in
hook_update_N()
? - Should I create some custom
mytranslations.po
file in the language folder?
I see there is locale_translate_batch_import_files()
which might be used.
hook_update_N
. Have a look at @Berdir's suggestion.translation:sync
? Unfortunately I can't find any detailed information about this command but maybe it does what you are looking for.