Skip to content

How does it work in HTML? #2

@zreptil

Description

@zreptil

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions