NathanWalker / nativescript-ng2-translate

Use ng2-translate with NativeScript + Angular2.
MIT License
6 stars 2 forks source link

Time to update to angular 2.00 ? #4

Closed developper89 closed 8 years ago

developper89 commented 8 years ago

i'm heaving trouble installing the actual version on the last nativescript-angular release , they upgraded to ng2.0

developper89 commented 8 years ago

problem solved

Shamballa commented 7 years ago

How did you fix it? I got the error: Error calling module function Cannot compile ....../files/app/tns_modules/ng2-translate/ng-tranlate.js SyntaxError: Unexpected token import File: ....../files/app/tns_modules/ng2-translate/ng-tranlate.js, line: 1, column: 60

imports: [ TranslateModule.forRoot({ provide: TranslateLoader, useFactory: (http: Http) => new TNSTranslateLoader('/public/i18n'),
deps: [Http] }) ]

Shamballa commented 7 years ago

Problem solved too I used a newer version of ng2-translate (3.0.0). With the older version 2.4.4. it works!

developper89 commented 7 years ago

Glad that you found it by yourself and sorry for answering now ..