mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +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
@@ -20,7 +20,7 @@ import { ModuleWithProviders, NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
|
||||
import { MdAutocompleteModule, MdButtonModule, MdCardModule, MdDatepickerModule, MdGridListModule,
|
||||
MdIconModule, MdInputModule, MdNativeDateModule, MdProgressSpinnerModule, MdSelectModule } from '@angular/material';
|
||||
import { ActivitiFormModule } from 'ng2-activiti-form';
|
||||
import { CoreModule } from 'ng2-alfresco-core';
|
||||
import { CoreModule, TRANSLATION_PROVIDER } from 'ng2-alfresco-core';
|
||||
import { DataTableModule } from 'ng2-alfresco-datatable';
|
||||
import { PeopleService } from './src/services/people.service';
|
||||
import { ProcessUploadService } from './src/services/process-upload.service';
|
||||
@@ -170,7 +170,15 @@ export const ACTIVITI_TASKLIST_PROVIDERS: any[] = [
|
||||
],
|
||||
providers: [
|
||||
...ACTIVITI_TASKLIST_PROVIDERS,
|
||||
DatePipe
|
||||
DatePipe,
|
||||
{
|
||||
provide: TRANSLATION_PROVIDER,
|
||||
multi: true,
|
||||
useValue: {
|
||||
name: 'ng2-activiti-tasklist',
|
||||
source: 'assets/ng2-activiti-tasklist'
|
||||
}
|
||||
}
|
||||
],
|
||||
exports: [
|
||||
...ACTIVITI_TASKLIST_DIRECTIVES,
|
||||
|
Reference in New Issue
Block a user