mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Fixed translation service
This commit is contained in:
@@ -44,7 +44,7 @@ declare var document: any;
|
||||
{path: '/search', name: 'Search', component: AlfrescoSearchComponent}
|
||||
])
|
||||
export class AppComponent {
|
||||
translate: TranslateService;
|
||||
translate: AlfrescoTranslationService;
|
||||
searchForm: ControlGroup;
|
||||
|
||||
constructor(private _fb: FormBuilder,
|
||||
@@ -58,7 +58,8 @@ export class AppComponent {
|
||||
searchTerm: ['', Validators.compose([Validators.required, Validators.minLength(3)])]
|
||||
});
|
||||
|
||||
translate.translationInit('');
|
||||
this.translate = translate;
|
||||
this.translate.translationInit();
|
||||
}
|
||||
|
||||
isActive(instruction: any[]): boolean {
|
||||
|
@@ -1,3 +1,41 @@
|
||||
{
|
||||
"title" : "Benvenuto"
|
||||
}
|
||||
|
||||
"DOCUMENT_LIST": {
|
||||
"COLUMNS": {
|
||||
"DISPLAY_NAME": "Mostra name",
|
||||
"CREATED_BY": "Creato da",
|
||||
"CREATED_ON": "Creato il"
|
||||
},
|
||||
"ACTIONS": {
|
||||
"FOLDER": {
|
||||
"SYSTEM_1": "Azione 1 di sistema sulla cartella",
|
||||
"CUSTOM": "Azione personalizzata su cartella"
|
||||
},
|
||||
"DOCUMENT": {
|
||||
"DOWNLOAD": "Download",
|
||||
"SYSTEM_2": "System document action 2",
|
||||
"CUSTOM": "Custom action"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"DATATABLE": {
|
||||
"COLUMNS": {
|
||||
"DISPLAY_NAME": "Display name",
|
||||
"CREATED_BY": "Created by",
|
||||
"CREATED_ON": "Created on"
|
||||
},
|
||||
"ACTIONS": {
|
||||
"FOLDER": {
|
||||
"SYSTEM_1": "System folder action 1",
|
||||
"CUSTOM": "Custom folder action"
|
||||
},
|
||||
"DOCUMENT": {
|
||||
"DOWNLOAD": "Download",
|
||||
"SYSTEM_2": "System document action 2",
|
||||
"CUSTOM": "Custom action"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user