i18next / ng-i18next

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

Error: [ng-i18next] Can't find i18next! - when module i18next is loaded with CommonJS #99

Closed jaganathanb closed 8 years ago

jaganathanb commented 8 years ago

Loading i18next of CommonJS version is not supported in ng-i18next. Hence this error. Please provide a patch.

jaganathanb commented 8 years ago

This issue is discussed here - https://github.com/i18next/ng-i18next/issues/65

jaganathanb commented 8 years ago

Is there any solution to use ng-i18next with Webpack?

peebeebee commented 8 years ago

No solution for WebPack and JSPM? Why is this closed?

anwalkers commented 8 years ago

Reopen and work on fix for WebPack and JSPM.

peebeebee commented 8 years ago

For JSPM:

npm does not have the new version of ng-i18next. I believe I solved this issue by installing i18next, and i18next-xhr-backend from NPM. And ng-i18next from github.

So

jspm install npm:i18next
jspm install npm:i18next-xhr-backend
jspm install github:i18next/ng-i18next
anwalkers commented 8 years ago

working on updating npm package... Still on 0.5.2

anwalkers commented 8 years ago

@archer96 @jamuhl I would like to update the npm package to the 1.0.1 version. I reached out to the listed owner and he said that Andre is now the owner. Andre can you add me as an owner? Here is my npm profile.

bugwelle commented 8 years ago

I have added you as an owner. :smiley:

$ npm owner add andywalkers ng-i18next
+ andywalkers (ng-i18next)
$ npm owner ls ng-i18next
andywalkers <andy.walkers@gmail.com>
archer96 <info@andremeyering.de>

Regards, Andre

anwalkers commented 8 years ago

I have published 1.0.1 to npm. You should now be able to use it with CommonJS.