This repository has been archived by the owner on Jan 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Is there a getter for the registered available languages? #1304
Labels
Milestone
Comments
Currently you can only retrieve the keys you put in via "registerAvailableLanguageKeys" from exactly the same function during configuration, but not from controllers. Right. |
Well I found 2 solutions for this:
Maybe will be a nice add to angular-translate since he is responsable of the internationalization of my app. Thanks for the answer. 👍 |
tspaeth
added a commit
to tspaeth/angular-translate
that referenced
this issue
Mar 3, 2016
…lable languages also from the $translate - service and not only in the configuration phase - closes angular-translate#1304
knalli
pushed a commit
that referenced
this issue
Mar 5, 2016
…lable languages also from the $translate - service and not only in the configuration phase - closes #1304
knalli
pushed a commit
that referenced
this issue
Mar 5, 2016
The getter returns the registered available languages. Closes #1304
Will be in 2.11 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
I'm building an app which every time I need to do stuff with languages I'm making a request to my languages endpoint....
I'd like to register the available languages in the translate provider, and then use it instead of that request to my api/languages endpoint.
I couldn't find a way to get and use those registered languages in my controllers and directives, I'm mixing up stuff?
Thanks
The text was updated successfully, but these errors were encountered: