fixed translation service issues

This commit is contained in:
lotte
2020-03-09 11:15:48 +01:00
parent f5a66c2266
commit 6c7780ca56
7 changed files with 28 additions and 13 deletions

View File

@@ -206,11 +206,11 @@ const MODULES = [
];
const ROOT_MODULES = [
TooltipModule.forRoot(),
TranslateModule.forRoot({
TranslateModule.forChild({
missingTranslationHandler: { provide: MissingTranslationHandler, useClass: MissingTranslationHelper },
useDefaultLang: true
})
}),
TooltipModule.forRoot(),
];
const PIPES = [
@@ -349,7 +349,9 @@ const COMPONENTS = [
ExistingMetadataListElementComponent,
ItemAdminSearchResultListElementComponent,
CommunityAdminSearchResultListElementComponent,
CollectionAdminSearchResultListElementComponent
CollectionAdminSearchResultListElementComponent,
PublicationSearchResultListElementComponent,
ExistingMetadataListElementComponent
];
const ENTRY_COMPONENTS = [
@@ -415,7 +417,7 @@ const ENTRY_COMPONENTS = [
ExternalSourceEntryImportModalComponent,
ItemAdminSearchResultListElementComponent,
CommunityAdminSearchResultListElementComponent,
CollectionAdminSearchResultListElementComponent
CollectionAdminSearchResultListElementComponent,
];
const SHARED_ITEM_PAGE_COMPONENTS = [
@@ -448,8 +450,8 @@ const DIRECTIVES = [
@NgModule({
imports: [
...ROOT_MODULES,
...MODULES,
...ROOT_MODULES
],
declarations: [
...PIPES,
@@ -457,8 +459,7 @@ const DIRECTIVES = [
...DIRECTIVES,
...ENTRY_COMPONENTS,
...SHARED_ITEM_PAGE_COMPONENTS,
PublicationSearchResultListElementComponent,
ExistingMetadataListElementComponent
],
providers: [
...PROVIDERS