mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-08 14:51:32 +00:00
[ADF-1356] Single configuration of i18n service per project (#2199)
* rework i18n layer init * fix unit tests * fix tests * test fixes * remove obsolete tests
This commit is contained in:
committed by
Mario Romano
parent
bb53844f92
commit
003b0c133b
@@ -17,7 +17,7 @@
|
||||
|
||||
import { ModuleWithProviders, NgModule } from '@angular/core';
|
||||
import { MdButtonModule, MdIconModule, MdProgressSpinnerModule } from '@angular/material';
|
||||
import { CoreModule } from 'ng2-alfresco-core';
|
||||
import { CoreModule, TRANSLATION_PROVIDER } from 'ng2-alfresco-core';
|
||||
|
||||
import { FileUploadingDialogComponent } from './src/components/file-uploading-dialog.component';
|
||||
import { FileUploadingListRowComponent } from './src/components/file-uploading-list-row.component';
|
||||
@@ -60,7 +60,15 @@ export const UPLOAD_PROVIDERS: any[] = [
|
||||
...UPLOAD_DIRECTIVES
|
||||
],
|
||||
providers: [
|
||||
...UPLOAD_PROVIDERS
|
||||
...UPLOAD_PROVIDERS,
|
||||
{
|
||||
provide: TRANSLATION_PROVIDER,
|
||||
multi: true,
|
||||
useValue: {
|
||||
name: 'ng2-alfresco-upload',
|
||||
source: 'assets/ng2-alfresco-upload'
|
||||
}
|
||||
}
|
||||
],
|
||||
exports: [
|
||||
...UPLOAD_DIRECTIVES
|
||||
|
Reference in New Issue
Block a user