summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/vue_shared/translate.js
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-05-04 16:16:00 +0100
committerPhil Hughes <me@iamphill.com>2017-05-04 16:16:00 +0100
commite1d22a054e5ebac2846da1c2f5fbdf2bc22a7117 (patch)
tree65f606dcafad9aa2d20d3edebd1b2a0a5485383c /app/assets/javascripts/vue_shared/translate.js
parent628d641b067fd0c0ba16fc7f6d68bcd241a7a105 (diff)
downloadgitlab-ce-e1d22a054e5ebac2846da1c2f5fbdf2bc22a7117.tar.gz
Updated JS object for Vue methods
Diffstat (limited to 'app/assets/javascripts/vue_shared/translate.js')
-rw-r--r--app/assets/javascripts/vue_shared/translate.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/vue_shared/translate.js b/app/assets/javascripts/vue_shared/translate.js
index ba9656d4e71..f83c4b00761 100644
--- a/app/assets/javascripts/vue_shared/translate.js
+++ b/app/assets/javascripts/vue_shared/translate.js
@@ -13,7 +13,7 @@ export default (Vue) => {
@param text The text to be translated
@returns {String} The translated text
**/
- __(text) { return __(text); },
+ __,
/**
Translate the text with a number
if the number is more than 1 it will use the `pluralText` translation.
@@ -24,7 +24,7 @@ export default (Vue) => {
@param count Number to decide which translation to use (eg. 2)
@returns {String} Translated text with the number replaced (eg. '2 days')
**/
- n__(text, pluralText, count) { return n__(text, pluralText, count); },
+ n__,
/**
Translate context based text
Either pass in the context translation like `Context|Text to translate`
@@ -36,7 +36,7 @@ export default (Vue) => {
@param key Is the dynamic variable you want to be translated
@returns {String} Translated context based text
**/
- s__(keyOrContext, key) { return s__(keyOrContext, key); },
+ s__,
},
});
};