Switch tap:i18n to custom TAPi18n implementation

This commit is contained in:
Jan Küster 2021-07-10 10:55:54 +02:00 committed by Denis Perov
parent 40265144af
commit 60af7766bf
157 changed files with 1991 additions and 5190 deletions

View file

@ -1,3 +1,4 @@
import { TAPi18n } from '/imports/i18n';
import { runOnServer } from './runOnServer';
runOnServer(function() {
@ -49,12 +50,12 @@ runOnServer(function() {
isAdmin: true,
});
}
let userLanguage = 'en';
if(user && user.profile){
userLanguage = user.profile.language
}
const exporterExcel = new ExporterExcel(boardId, userLanguage);
if (exporterExcel.canExport(user) || impersonateDone) {
if (impersonateDone) {