-
-
Notifications
You must be signed in to change notification settings - Fork 542
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 and i10n #17
Comments
Seems useful. |
Yeah I am happy to get more involved. Maybe if you write down what and why for V2 somewhere to get the ball rolling. I have a few ideas myself for other things needed for a form builder than just i18n too. |
@danvick Hey I am working on different aspects of this. If you get time to scribble some roadmap notes down it will help. Currently working on i18n and i10n and it working with validation messages |
Hi @gedw99, You'd be glad to know that I have been working on improving the plugin before incorporating your much needed brilliant ideas. I'm planning to release this version within the next two weeks, and I'd be glad to have you have a look before then. The documentation for this version is not currently not complete but feel free to poke around and advise as we plan for these suggestions. Cheers |
Awesome will hit the V3 branch tonight |
That would be great! I've already published a beta version on pub and I'm getting some awesome feedback and suggestions already. I'm eagerly waiting for yours. |
Hi all, |
I'm closing thiis because we now have i18n support in ^4.0.0 |
This is an awesome package for speeding up mundane data pumping apps.
What's your thoughts on i18n ( language translation ) and i10n ( datatime, currency, etc ) formatting
I am using a pure JSON i18n approach which I a bit different from the standard approach so that the JSON files are more reusable.
Then using simple getText calls to get the translations.
If there is datatime or currency then I wrap the getText to also pass in the datetime or currency in, then get the translated text and then replace the datetime and currency with the real value formatted to the correct local.
I don't do any of the codegen of dart code to wrap the translation as I found it just does not properly support i10n use cases. Too many edge cases.
You still get type checking with getText because you can run a simple AST style checker to walk the dart code and check your keys are there in the JSON files for every language.
I am also not using dart to do the translation workflow.
Instead just use golang so it reusable I'm lots of things.
This is all used at design time.
Then just getText at runtime.
Thoughts ??? Useful for form builder ??
The text was updated successfully, but these errors were encountered: