shunter
shunter copied to clipboard
Make internationalisation possible
This came up in today's meeting - it would be useful to be able to use i18n for front end templates. General consensus is that it should be eminently possible 🎉
@zanonnicola suggested this: https://formatjs.io/ - he's had good results with it in React, and it also supports Dust! Might be good to experiment with if anybody wants to volunteer
We're using i18n-js successfully with Shunter in a project and just needed to create a simple Dust helper to make it work.
@hollsk can this be closed do you think? Thanks.
@nsollecito I don't think you committed that helper to Shunter itself, did you?
Nope, but it might be nice to see an example of the dust helper bats eyelashes 😁
@hollsk @jpw we implemented a helper with i18next
that you can see here:
https://github.com/ukparliament/augustus/blob/master/dust/t.js