I'm the developer of ng-i18next
.
ng-i18next
uses angular's $watch
function to look for any changes on $i18next.options
.
This means you should change the language by setting $i18next.options.lng
to any language you want.
Because of this, $i18next.options.lng
always contains the current language. There is no need for $i18next.lng()
.
Of course this will work, too: window.i18n.lng()