mirror of
https://github.com/wekan/wekan.git
synced 2026-02-15 20:48:08 +01:00
Switch tap:i18n to custom TAPi18n implementation
This commit is contained in:
parent
40265144af
commit
60af7766bf
157 changed files with 1991 additions and 5190 deletions
|
|
@ -1,3 +1,7 @@
|
|||
import { Blaze } from 'meteor/blaze';
|
||||
import { Session } from 'meteor/session';
|
||||
import moment from 'moment';
|
||||
|
||||
Blaze.registerHelper('currentBoard', () => {
|
||||
const ret = Utils.getCurrentBoard();
|
||||
return ret;
|
||||
|
|
@ -30,3 +34,9 @@ Blaze.registerHelper('isShowDesktopDragHandles', () =>
|
|||
Blaze.registerHelper('isMiniScreenOrShowDesktopDragHandles', () =>
|
||||
Utils.isMiniScreenOrShowDesktopDragHandles(),
|
||||
);
|
||||
|
||||
Blaze.registerHelper('moment', (...args) => {
|
||||
args.pop(); // hash
|
||||
const [date, format] = args;
|
||||
return moment(date).format(format);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue