diff options
author | Lukas Eipert <leipert@gitlab.com> | 2018-05-28 11:53:00 +0200 |
---|---|---|
committer | Lukas Eipert <leipert@gitlab.com> | 2018-05-29 18:42:34 +0200 |
commit | c98212e66383157e118ab1f7a498cc2f1c6f67a0 (patch) | |
tree | 4a9d67962652ae9d1d10691b5f1a20cc8adedc7b /app/assets/javascripts/locale/index.js | |
parent | 9a9f758d9121bcf24fa3fcee6dc724030467a6f3 (diff) | |
download | gitlab-ce-c98212e66383157e118ab1f7a498cc2f1c6f67a0.tar.gz |
fix `spaced-comment`
Diffstat (limited to 'app/assets/javascripts/locale/index.js')
-rw-r--r-- | app/assets/javascripts/locale/index.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/locale/index.js b/app/assets/javascripts/locale/index.js index 2f4328b56e1..2cc5fb10027 100644 --- a/app/assets/javascripts/locale/index.js +++ b/app/assets/javascripts/locale/index.js @@ -9,7 +9,7 @@ delete window.translations; Translates `text` @param text The text to be translated @returns {String} The translated text -**/ +*/ const gettext = locale.gettext.bind(locale); /** @@ -21,7 +21,7 @@ const gettext = locale.gettext.bind(locale); @param pluralText Plural text to translate (eg. '%d days') @param count Number to decide which translation to use (eg. 2) @returns {String} Translated text with the number replaced (eg. '2 days') -**/ +*/ const ngettext = (text, pluralText, count) => { const translated = locale.ngettext(text, pluralText, count).replace(/%d/g, count).split('|'); @@ -38,7 +38,7 @@ const ngettext = (text, pluralText, count) => { (eg. 'Context') @param key Is the dynamic variable you want to be translated @returns {String} Translated context based text -**/ +*/ const pgettext = (keyOrContext, key) => { const normalizedKey = key ? `${keyOrContext}|${key}` : keyOrContext; const translated = gettext(normalizedKey).split('|'); |