mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
#1076 Fix the translation in all the components
This commit is contained in:
committed by
Mario Romano
parent
070061107f
commit
acb06e92c4
@@ -66,7 +66,7 @@ describe('AlfrescoSearchControlComponent', () => {
|
||||
spyOn(translationService, 'addTranslationFolder');
|
||||
fixture.detectChanges();
|
||||
expect(translationService.addTranslationFolder)
|
||||
.toHaveBeenCalledWith('node_modules/ng2-alfresco-search/dist/src');
|
||||
.toHaveBeenCalledWith('ng2-alfresco-search', 'node_modules/ng2-alfresco-search/dist/src');
|
||||
});
|
||||
|
||||
it('should emit searchChange when search term input changed', (done) => {
|
||||
|
@@ -103,7 +103,7 @@ export class AlfrescoSearchControlComponent implements OnInit, OnDestroy {
|
||||
|
||||
this.setupFocusEventHandlers();
|
||||
|
||||
this.translate.addTranslationFolder('node_modules/ng2-alfresco-search/dist/src');
|
||||
this.translate.addTranslationFolder('ng2-alfresco-search', 'node_modules/ng2-alfresco-search/dist/src');
|
||||
}
|
||||
|
||||
ngOnDestroy(): void {
|
||||
|
@@ -151,7 +151,7 @@ describe('AlfrescoSearchComponent', () => {
|
||||
let translationService = fixture.debugElement.injector.get(AlfrescoTranslationService);
|
||||
spyOn(translationService, 'addTranslationFolder');
|
||||
fixture.detectChanges();
|
||||
expect(translationService.addTranslationFolder).toHaveBeenCalledWith('node_modules/ng2-alfresco-search/dist/src');
|
||||
expect(translationService.addTranslationFolder).toHaveBeenCalledWith('ng2-alfresco-search', 'node_modules/ng2-alfresco-search/dist/src');
|
||||
});
|
||||
|
||||
describe('Search results', () => {
|
||||
|
@@ -66,7 +66,7 @@ export class AlfrescoSearchComponent implements OnChanges, OnInit {
|
||||
|
||||
ngOnInit(): void {
|
||||
if (this.translate !== null) {
|
||||
this.translate.addTranslationFolder('node_modules/ng2-alfresco-search/dist/src');
|
||||
this.translate.addTranslationFolder('ng2-alfresco-search', 'node_modules/ng2-alfresco-search/dist/src');
|
||||
}
|
||||
if (this.route) {
|
||||
this.route.params.forEach((params: Params) => {
|
||||
|
Reference in New Issue
Block a user