Django translation on Heroku
derekeder opened this issue · comments
Documentation request
While setting up translations for the Arts Census website, I ran into an issue with storing compiled .mo
translation files on Heroku: https://github.com/datamade/arts-census/pull/68
We should update our documentation in https://github.com/datamade/how-to/blob/master/django/translation.md to reflect this
Upon revisiting the documentation, I think my approach in datamade/arts-census#68 feels a bit hacky and incomplete, as I opted to not use Rosetta.
On the next project where we'll need to do translation on a Django/Heroku site with Rosetta, we should take a fresh look at this documentation and update as necessary. We may still need to commit the .mo
files, but I'm unsure what the impact this will have on Rosetta.
Will be trialing on EFI.
Followed this same approach for EFI: https://github.com/datamade/mpc-efi/pull/81
@antidipyramid and I are looking into the best approach to extend translation to the React components of the site and will have a follow-up PR for that.