blob: 7fc6f1ce38af5c2fd3787a9f8aaa40919e831c9c (
plain)
1
2
3
4
5
6
7
8
|
import locale from '../locale';
export default (Vue) => {
Vue.filter('translate', text => locale.gettext(text));
Vue.filter('translate-plural', (text, pluralText, count) =>
locale.ngettext(text, pluralText, count).replace(/%d/g, count));
};
|