1

I have a Drupal 8 custom module (custom_module) and a custom_module-8.x-1.0.da.po file I added to sites/default/files/translations, but my translations are not getting Imported during the module installation, even though translations are available for import in admin/reports/translations. Am I missing any step?

I don't want to put my custom_module-8.x-1.0.da.po file in sites/default/files/translations; I prefer it to be inside the module directory, if possible.

2
  • Have you added interface translation project and interface translation server pattern definitions to custom_module.info.yml? You might find useful info here Jun 28, 2016 at 12:06
  • You can use a custom path for your translation file by setting the interface translation server pattern to whatever you want. Jun 28, 2016 at 12:12

1 Answer 1

3

Add interface translation project and interface translation server pattern definitions to custom_module.info.yml. You can use a custom path for your translation po file by setting the interface translation server pattern to whatever you want.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.