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

Add method to load a localised bundle #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cdjackson
Copy link

This adds a method to access a localised bundle.
This is used to allow me to use angular-localization to load a complete bundle into another package which has its own i18n system.

I see there is also a request for this, or something similar here so this might also cover this request.

Review on Reviewable

@cdjackson
Copy link
Author

To use, you need to call -:

ready("bundle").then(function() {
  localised_bundle = locale.getBundle("bundle");
})

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

Successfully merging this pull request may close these issues.

1 participant