diff --git a/modules/util/locale.js b/modules/util/locale.js index 44710a546..e003b759b 100644 --- a/modules/util/locale.js +++ b/modules/util/locale.js @@ -45,7 +45,7 @@ export function t(s, o, loc) { if (rep !== undefined) { if (o) { for (var k in o) { - var variable = '{' + k + '}'; + var variable = '\\{' + k + '\\}'; var re = new RegExp(variable, 'g'); // check globally for variables rep = rep.replace(re, o[k]); } @@ -124,4 +124,4 @@ export function languageName(context, code, options) { } } return code; // if not found, use the code -} +} \ No newline at end of file