This commit is contained in:
Barış Soner Uşaklı
2017-11-18 15:39:47 -05:00
parent 2065f895d5
commit 63388be44c

View File

@@ -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(', ') + ']]';