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

Make it easier to call localization functions #10

Open
ibrahim-mubarak opened this issue Apr 14, 2019 · 1 comment
Open

Make it easier to call localization functions #10

ibrahim-mubarak opened this issue Apr 14, 2019 · 1 comment

Comments

@ibrahim-mubarak
Copy link
Contributor

We need to do the following

  • Expose global tr and pl functions for translate and pluralize.
  • Don't require context for calling Localization functions.

To do away with needing BuildContext for localization, we should set the BuildContext through the page mixin. We also need to create a mixin which should be used when displaying static content.

@ibrahim-mubarak
Copy link
Contributor Author

This is no longer relevant with the the I18n Json Plugin. We should integrate this in our framework though.

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