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

How does it work in HTML? #2

Open
zreptil opened this issue Oct 12, 2018 · 0 comments
Open

How does it work in HTML? #2

zreptil opened this issue Oct 12, 2018 · 0 comments

Comments

@zreptil
Copy link

zreptil commented Oct 12, 2018

Hi Mike,

first of all: great work! I tried to use intl_translation, but this is not useful anymore since it doesn't work with build_runner. Then i found i10n and think this could be useful, if i can understand how it really works.

The main problem seems to be HTML:

I use this in HTML:

l10n("Einstellungen")

When i run the mkl10n tool, then the string is extracted. But when i look at the site in the browser i see this in the browser:

l10n("Einstellungen")

This also works the same way for _("Einstellungen").

What is the correct usage for this? What am i missing?

Another question: why is the command to create the dart-files exactly the same as creating the arb-files? This is somewhat confusing, since i don't really know what is happening, when i start the command. Is it reading the source and producing the arb-files or is it reading the arb-files and creating the dart-files?

Even if this should make the usage easier, it is not clear in which order these two commands are executed.

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

1 participant