diff --git a/ng2-components/ng2-alfresco-core/package.json b/ng2-components/ng2-alfresco-core/package.json index 2c6fd7565a..6e63261f79 100644 --- a/ng2-components/ng2-alfresco-core/package.json +++ b/ng2-components/ng2-alfresco-core/package.json @@ -35,7 +35,8 @@ "es6-shim": "^0.35.0", "reflect-metadata": "0.1.2", "rxjs": "5.0.0-beta.2", - "zone.js": "0.6.10" + "zone.js": "0.6.10", + "ng2-translate": "^1.11.2" }, "peerDependencies": { "angular2": "2.0.0-beta.15" diff --git a/ng2-components/ng2-alfresco-core/services/AlfrescoTranslationService.d.ts b/ng2-components/ng2-alfresco-core/services/AlfrescoTranslationService.d.ts index bc9cc3f5c5..94e3955035 100644 --- a/ng2-components/ng2-alfresco-core/services/AlfrescoTranslationService.d.ts +++ b/ng2-components/ng2-alfresco-core/services/AlfrescoTranslationService.d.ts @@ -1,6 +1,7 @@ import { Http } from 'angular2/http'; +import { TranslateLoader } from 'ng2-translate/ng2-translate'; import { Observable } from 'rxjs/Observable'; -export declare class AlfrescoTranslationLoader { +export declare class AlfrescoTranslationLoader implements TranslateLoader { private http; private prefix; private suffix; diff --git a/ng2-components/ng2-alfresco-core/services/AlfrescoTranslationService.ts b/ng2-components/ng2-alfresco-core/services/AlfrescoTranslationService.ts index c5a94745b6..5b62b2364b 100644 --- a/ng2-components/ng2-alfresco-core/services/AlfrescoTranslationService.ts +++ b/ng2-components/ng2-alfresco-core/services/AlfrescoTranslationService.ts @@ -21,7 +21,7 @@ import {TranslateLoader} from 'ng2-translate/ng2-translate'; import {Observable} from 'rxjs/Observable' @Injectable() -export class AlfrescoTranslationLoader { +export class AlfrescoTranslationLoader implements TranslateLoader { private prefix: string = 'i18n'; private suffix: string = '.json'; @@ -35,4 +35,4 @@ export class AlfrescoTranslationLoader { .concat(this.http.get('node_modules/ng2-alfresco-upload/' + `${this.prefix}/${lang}${this.suffix}`) .map((res: Response) => res.json())); } -} \ No newline at end of file +}