diff --git a/lang.js b/lang.js index 8addfa6b96..99b2f21b65 100644 --- a/lang.js +++ b/lang.js @@ -139,7 +139,7 @@ Lang.prototype.run = function () { } var escapedKey = this.escape(key); - contents = contents.replace(new RegExp('(' + escapedKey + ')', 'g'), '' + translationHash[key].replace(/\\"/g, '"') + ''); + contents = contents.replace(new RegExp('(' + escapedKey.replace(/\\"/g, '"') + ')', 'g'), '' + translationHash[key].replace(/\\"/g, '"') + ''); } }