Skip to content

Add method to load a localised bundle#51

Open
cdjackson wants to merge 1 commit intodoshprompt:masterfrom
cdjackson:get_bundle
Open

Add method to load a localised bundle#51
cdjackson wants to merge 1 commit intodoshprompt:masterfrom
cdjackson:get_bundle

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