Added new function to add cumstom translation strings on Admin panel

This commit is contained in:
Yevhenii Pertiaka 2023-08-17 21:54:14 +09:00
parent 4153fe7d0d
commit b1525d4221
10 changed files with 599 additions and 2 deletions

View file

@ -381,6 +381,30 @@ FlowRouter.route('/attachments', {
},
});
FlowRouter.route('/translation', {
name: 'translation',
triggersEnter: [
AccountsTemplates.ensureSignedIn,
() => {
Session.set('currentBoard', null);
Session.set('currentList', null);
Session.set('currentCard', null);
Session.set('popupCardId', null);
Session.set('popupCardBoardId', null);
Filter.reset();
Session.set('sortBy', '');
EscapeActions.executeAll();
},
],
action() {
BlazeLayout.render('defaultLayout', {
headerBar: 'settingHeaderBar',
content: 'translation',
});
},
});
FlowRouter.notFound = {
action() {
BlazeLayout.render('defaultLayout', { content: 'notFound' });