7

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

I have a large file with all translation in:

app/i18n/magento/sv_se/sv_SE.csv

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

Or could I put all files inside my theme directory?

2 Answers 2

0

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

3
  • 2
    Ok, but isn't there a risk that the translation files will be overridden when I update the module?
    – ineluki
    May 5, 2017 at 9:05
  • 1
    This doesn't seem to work Apr 23, 2018 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, 2021 at 5:47
0

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

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

Your Answer

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

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