#1076 Fix the translation in all the components

This commit is contained in:
mauriziovitale84
2016-11-23 17:33:36 +00:00
committed by Mario Romano
parent 070061107f
commit acb06e92c4
32 changed files with 32 additions and 32 deletions

View File

@@ -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) => {

View File

@@ -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 {

View File

@@ -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', () => {

View File

@@ -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) => {