angular-translate Don't know the type of $translateProvider.getCurrentLanguage ?

  • add a link to angular tranlate which you use - Grundy
  • $ translate.use () - L. Vadim
  • @ L.Vadim, write as an answer to the comment, approx as the correct decision, indeed, it turns out so simple - Zhalgas Azhibaev

1 answer 1

It's simple. Use:

 $translate.use() 
  • one
    and here is the link to the help: use - If no or a falsy key. The returned string hasn’t been finished. - Grundy
  • @Grundy, I tried RTFM at the docks, but I have bad English, and there is still a bunch of IMHO somehow. hard to take. Well, I expected something like "current lang" - Zhalgas Azhibayev