3

I have a Drupal 9 site. When I export site config (drush cex) I get config/sync dir with settings and inside it I have i.e. language/de where translation config is stored. So translations are in config/sync/language/de (for German i.e.).

Where should go those translation files for a module? Like, for module I have config/install where my install files are. Should I have there something like: config/install/language/de for translation files or...?

3
  • 1
    Interesting question. Don't know if this is good practice, but it should work. You probably won't find many examples, though. Most modules ship translations via .po files.
    – 4uk4
    Feb 17, 2023 at 9:40
  • I didn't find any example so probably it's not good practice. I agree. I wonder why that inconsistency exists. :/
    – MilanG
    Feb 17, 2023 at 10:04
  • At end I added translation from code, explained here: drupal.stackexchange.com/a/314792/50525
    – MilanG
    Feb 20, 2023 at 12:03

0

Your Answer

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

Browse other questions tagged or ask your own question.