Score:3

Where do you put install config translations?

in flag

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...?

4uk4 avatar
cn flag
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.
in flag
I didn't find any example so probably it's not good practice. I agree. I wonder why that inconsistency exists. :/
in flag
At end I added translation from code, explained here: https://drupal.stackexchange.com/a/314792/50525
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.