diff --git a/ayanova/src/api/locale.js b/ayanova/src/api/locale.js index 40c50066..3257d546 100644 --- a/ayanova/src/api/locale.js +++ b/ayanova/src/api/locale.js @@ -125,7 +125,11 @@ export default { var pattern = /\[(.*?)\]/g; var match; while ((match = pattern.exec(s)) != null) { - ret.replace(match, this.get(match)); + var foundMatch = match[0]; + var ltKey = match[1]; + var newValue = this.get(ltKey); + + ret = ret.replace(foundMatch, newValue); } return ret; }