Welcome to mirror list, hosted at ThFree Co, Russian Federation.

translate.js « vue_shared « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c2c20ea0853d3a9d09f8636e1a47c6083cbf86ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import {
  __,
  n__,
  s__,
} from '../locale';

export default (Vue) => {
  Vue.mixin({
    methods: {
      __(text) { return __(text); },
      n__(text, pluralText, count) {
        return n__(text, pluralText, count).replace(/%d/g, count);
      },
      s__(context, key) { return s__(context, key); },
    },
  });
};