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

Consider using a transformer to rewrite Intl.message calls to eliminate the need to pass name and parameters #18772

Closed
alan-knight opened this issue May 12, 2014 · 1 comment
Labels
type-enhancement A request for a change that isn't a bug

Comments

@alan-knight
Copy link
Contributor

The Intl.message processing avoids rewriting the user's code, it just generates a new library. As a result, in order to have it be called properly at runtime you need to pass the name and parameters so that the runtime knows them. e.g.

  foo(a, b) => Intl.message("Here's $a and $b", name:"foo", args: [a, b], description: "etc")

If we had a transformer we could rewrite these to insert the name and args automatically. We could even consider having it insert package information, so we could have different packages have different deferred libraries for their messages instead of a single global catalog.

@DartBot
Copy link

DartBot commented Jun 5, 2015

This issue has been moved to dart-lang/i18n#309.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

3 participants