Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make internationalisation possible #213

Open
hollsk opened this issue Aug 17, 2017 · 5 comments
Open

Make internationalisation possible #213

hollsk opened this issue Aug 17, 2017 · 5 comments

Comments

@hollsk
Copy link
Contributor

hollsk commented Aug 17, 2017

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

@nsollecito
Copy link

nsollecito commented Aug 17, 2017

We're using i18n-js successfully with Shunter in a project and just needed to create a simple Dust helper to make it work.

@jpw
Copy link
Contributor

jpw commented Sep 3, 2018

@hollsk can this be closed do you think? Thanks.

@hollsk
Copy link
Contributor Author

hollsk commented Sep 3, 2018

@nsollecito I don't think you committed that helper to Shunter itself, did you?

@jpw
Copy link
Contributor

jpw commented Sep 4, 2018

Nope, but it might be nice to see an example of the dust helper bats eyelashes 😁

@mattrayner
Copy link

@hollsk @jpw we implemented a helper with i18next that you can see here:
https://github.com/ukparliament/augustus/blob/master/dust/t.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants