diff options
author | Phil Hughes <me@iamphill.com> | 2017-04-26 19:03:06 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-04-26 19:03:06 +0300 |
commit | 0242c4dfc92da0c59583b0ac9f1d3f2e6dcd11b8 (patch) | |
tree | 19bf82c144c24170a54807d86367461a6c2e8010 /spec/javascripts | |
parent | d8f767445933f41a7629a7637ba962bdbc461c9a (diff) |
Changed JS translation functions
Added context function
Diffstat (limited to 'spec/javascripts')
-rw-r--r-- | spec/javascripts/vue_shared/translate_spec.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/javascripts/vue_shared/translate_spec.js b/spec/javascripts/vue_shared/translate_spec.js index 74bd4ff86b1..5dc0be50116 100644 --- a/spec/javascripts/vue_shared/translate_spec.js +++ b/spec/javascripts/vue_shared/translate_spec.js @@ -17,7 +17,7 @@ describe('Vue translate filter', () => { el, template: ` <span> - {{ 'testing' | translate }} + {{ 'testing' | t }} </span> `, }).$mount(); @@ -36,7 +36,7 @@ describe('Vue translate filter', () => { el, template: ` <span> - {{ '%d day' | translate-plural('%d days', 1) }} + {{ '%d day' | nt('%d days', 1) }} </span> `, }).$mount(); @@ -55,7 +55,7 @@ describe('Vue translate filter', () => { el, template: ` <span> - {{ '%d day' | translate-plural('%d days', 2) }} + {{ '%d day' | nt('%d days', 2) }} </span> `, }).$mount(); @@ -74,7 +74,7 @@ describe('Vue translate filter', () => { el, template: ` <span> - {{ 'day' | translate-plural('days', 2) }} + {{ 'day' | nt('days', 2) }} </span> `, }).$mount(); |