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

benchmark? #1

Open
mathieujobin opened this issue Jul 3, 2018 · 1 comment
Open

benchmark? #1

mathieujobin opened this issue Jul 3, 2018 · 1 comment

Comments

@mathieujobin
Copy link

Personally I have a preference for gettext, since its a long standard and has multiple GUI applications for translators

but lately, its less popular. the flutter internationalization page https://flutter.io/tutorials/internationalization/ propose two alternatives, both I tried and both seems incomplete as far as the documentation goes.

now I wonder what could help this project becomes the defactor standard in the flutter community. That would be the best. I think benchmarks would help preach for this project, people love benchmarks.

i don;t know how we could get those in place. we sure need all 3 methods properly setup.
and do a bunch of string search in a project that has several thousands entries?

compare initialization time as well.

my two cents

thanks

@MikeMitterer
Copy link
Owner

The latest version is a complete rewrite. It generates .arb files out of the box and fully supports Intl.messages and l10n(...) syntax.

Working example: http://l10n4dart.example.mikemitterer.at/
Source for example: https://github.com/MikeMitterer/dart-l10n-gettext/tree/master/example/web

mkl10n -l de . 

...generates the necessary .arb-files in the l10n-folder.
Now you can translate the generated intl_de.arb

If you run

mkl10n -l de . 

again you get the generated .dart-files in lib/_l10

Now import messages_all.dart and initialize everything like so: https://github.com/MikeMitterer/dart-l10n-gettext/blob/master/example/web/web/main.dart#L13-L22

This is just a short overview - I'll provide a README in the next few days.

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