Is there a way to get the current used language in a controller (without $translateProvider
)?
Couldn't find anything in the $translate
service.
Is there a way to get the current used language in a controller (without $translateProvider
)?
Couldn't find anything in the $translate
service.
$translate.use()
is the way to go. Also, when an asynchronous loader is executed, you might wanna use$translate.proposedLanguage()
which returns the language key of the language that is currently loaded but not finished loaded yet.