Get current language with angular-translate

jviotti picture jviotti · Dec 7, 2013 · Viewed 80.5k times · Source

Is there a way to get the current used language in a controller (without $translateProvider)?

Couldn't find anything in the $translate service.

Answer

charlietfl picture charlietfl · Dec 7, 2013

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

See this demo found in links of docs:

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