mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Improved AlfrescoTranslationService
This commit is contained in:
@@ -141,7 +141,8 @@ export class UploadButtonComponent {
|
||||
userLang = /(fr|en)/gi.test(userLang) ? userLang : 'en';
|
||||
|
||||
this.translate.setDefaultLang(userLang);
|
||||
|
||||
this.translate.currentLoader.addComponentList('node_modules/ng2-alfresco-upload');
|
||||
this.translate.getTranslation(userLang);
|
||||
this.translate.use(userLang);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user