jviotti jviotti - 5 months ago 403
AngularJS Question

Get current language with angular-translate

Is there a way to get the current used language in a controller (without

$translateProvider
)?

Couldn't find anything in the
$translate
service.

Answer

$translate.use() is a getter and setter.

See this demo found in links of docs:

http://jsfiddle.net/PascalPrecht/eUGWJ/7/

edit: Sorcerer 31.03.2014