mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
lint AlfrescoTranslationService.ts
This commit is contained in:
parent
c771c0a205
commit
d442eb202e
@ -38,13 +38,14 @@ export class AlfrescoTranslationLoader implements TranslateLoader {
|
|||||||
|
|
||||||
let observableBatch = [];
|
let observableBatch = [];
|
||||||
this._componentList.forEach((component) => {
|
this._componentList.forEach((component) => {
|
||||||
observableBatch.push(this.http.get(`${component}/${this.prefix}/${lang}${this.suffix}`).map((res: Response) => res.json()))
|
observableBatch.push(this.http.get(`${component}/${this.prefix}/${lang}${this.suffix}`)
|
||||||
|
.map((res: Response) => res.json()));
|
||||||
});
|
});
|
||||||
|
|
||||||
return Observable.create(observer => {
|
return Observable.create(observer => {
|
||||||
Observable.forkJoin(observableBatch).subscribe(
|
Observable.forkJoin(observableBatch).subscribe(
|
||||||
translations => {
|
(translations: any[]) => {
|
||||||
let multiLanguage = '' ;
|
let multiLanguage:any = '';
|
||||||
translations.forEach((translate) => {
|
translations.forEach((translate) => {
|
||||||
multiLanguage += JSON.stringify(translate);
|
multiLanguage += JSON.stringify(translate);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user