v1.18.x
Barış Soner Uşaklı 7 years ago
parent 2065f895d5
commit 63388be44c

@ -505,7 +505,7 @@
Translator.compile = function compile() {
var args = Array.prototype.slice.call(arguments, 0).map(function (text) {
// escape commas and percent signs in arguments
return text.replace(/%/g, '%').replace(/,/g, ',');
return String(text).replace(/%/g, '%').replace(/,/g, ',');
});
return '[[' + args.join(', ') + ']]';

Loading…
Cancel
Save