This commit is contained in:
Kyle Spearrin 2019-01-26 21:30:53 -05:00
parent b01709240e
commit d9f68b35a6
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ export class I18nService implements I18nServiceAbstraction {
const replaceToken = '\\$' + placeProp.toUpperCase() + '\\$';
let replaceContent = locales[prop].placeholders[placeProp].content;
if (replaceContent === '$1' || replaceContent === '$2' || replaceContent === '$3') {
replaceContent = '__' + replaceContent + '__';
replaceContent = '__$' + replaceContent + '__';
}
messagesObj[prop] = messagesObj[prop].replace(new RegExp(replaceToken, 'g'), replaceContent);
}