i18next / ng-i18next

translation for AngularJS using i18next
https://github.com/i18next/ng-i18next
MIT License
161 stars 54 forks source link

auto detection does not happen if lng is not in the init options :/ #14

Closed julien51 closed 11 years ago

julien51 commented 11 years ago

It appears that there is now a JS error if no lng is setup in the initialization option:

TypeError: Cannot set property 'undefined' of undefined
    at http://0.0.0.0:8000/js/ng-i18next.js:24:44
bugwelle commented 11 years ago

Thanks for reporting this issue.

There was some code, which was unnecessary, so I removed that. Auto detection of the user's language should work now (tested in Firefox 22.0; i18next set German as my language).

Hope there aren't any other bugs now :D