Merge branch 'remove-unnecessary-bind-in-gettext' into 'master'

Remove unnecessary bind call during translation

See merge request gitlab-org/gitlab-ce!28393
This commit is contained in:
Tim Zallmann 2019-05-21 10:20:43 +00:00
commit 729bac5e16

View file

@ -11,7 +11,7 @@ delete window.translations;
@param text The text to be translated
@returns {String} The translated text
*/
const gettext = text => locale.gettext.bind(locale)(ensureSingleLine(text));
const gettext = text => locale.gettext(ensureSingleLine(text));
/**
Translate the text with a number