mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 07:20:12 +01:00
8 lines
237 B
JavaScript
8 lines
237 B
JavaScript
import { Blaze } from 'meteor/blaze';
|
|
import { TAPi18n } from './tap';
|
|
|
|
Blaze.registerHelper('_', (...args) => {
|
|
const { hash } = args.pop();
|
|
const [key] = args.splice(0, 1);
|
|
return TAPi18n.__(key, { ...hash, sprintf: args });
|
|
});
|