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

i18n #96

Open
nothingismagick opened this issue Oct 7, 2018 · 2 comments
Open

i18n #96

nothingismagick opened this issue Oct 7, 2018 · 2 comments

Comments

@nothingismagick
Copy link

I couldn't find a recommended approach to integrating i18n strings and having them rendered. Is this something that you can advise on - or should I look into providing a PR?

@timneedham
Copy link
Contributor

timneedham commented Oct 12, 2018

Hi @nothingismagick .... thanks for this.

We've no urgent need for i18n right at the moment... but this idea does open-up a lot of opportunities. Not sure we can do much just now, so we'd love some input or a PR. Thank you!

@nothingismagick
Copy link
Author

So I guess there might be several ways to do this.
One abstract method would be to craft a cardscript-to-i18n package, which would have the advantage of being “presentation” agnostic, with the disadvantage that it would require a lot of dedicated work to create a standalone system for locales, plurals, currencies etc.
Another approach would be to rig quasar explicitly with i18n support from the get go. This would slightly increase the dist package size, but I think that would be bearable because of quasar’s tree shaking.
A final idea would be to create a cardscript scoping object at the top level of the json that informs renderers about the expectation of a non-English interface or even multiple languages (and potentially where to find the assets to lazy load...) Of course a language switching component would also be necessary...

So, before a PR makes sense, I think some discussion about approach would be paramount.

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

No branches or pull requests

2 participants