i18next / ng-i18next

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

window.i18next is undefined when using ng-i18next and jspm 0.17 #124

Closed awk closed 7 years ago

awk commented 7 years ago

Using jspm I did

jspm install i18next npm:ng-i18next

My application imports the ng-i18next component, however the load fails because I18nProvider doesn't have window.i18next loaded.

It looks like the preferred installation of i18next is a commonjs module, however ng-i18next expects the i18next symbol in the global/window namespace.

Should ng-i18next actually be a commonjs module which declares it's dependency on i18next?

anwalkers commented 7 years ago

Definitely a bug.

anwalkers commented 7 years ago

This is fixed in v1.0.4