Is it possible to keep different translate files for different modules?

I have a large file with all translation in:


This doesn't work: app/i18n/"vendor_module"/sv_se/sv_SE.csv

Or could I put all files inside my theme directory?


You need to place your translations in the module directory directly so in your case it should be under app/code/Vendor/Module/i18n/sv_SE.csv

  • 2
    Ok, but isn't there a risk that the translation files will be overridden when I update the module?
    – ineluki
    May 5 '17 at 9:05
  • 1
    This doesn't seem to work Apr 23 '18 at 6:49
  • This would only work if the module was originally installed under app/code. If the module is under vendor, creating the translation file under this folder doesn't work. Jul 8 '21 at 5:47

You can try this one : app/i18n/sv_SE.csv

  • Hi, yes but I rather keep the translations in different files for different modules.
    – ineluki
    Jun 15 '18 at 12:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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