mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Fix TS compilation for ng2-alfresco-core
This commit is contained in:
@@ -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"
|
||||
|
@@ -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;
|
||||
|
@@ -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()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user