Merge pull request #1319 from dpalou/MOBILE-2376

MOBILE-2376 siteplugins: Fix lang params subproperties
main
Juan Leyva 2018-05-21 14:48:35 +02:00 committed by GitHub
commit e668f0bf60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -67,6 +67,8 @@ export class CoreLangProvider {
continue;
}
// Replace the way to access subproperties.
value = value.replace(/\$a->/gm, '$a.');
// Add another curly bracket to string params ({$a} -> {{$a}}).
value = value.replace(/{([^ ]+)}/gm, '{{$1}}');
// Make sure we didn't add to many brackets in some case.