From 22de3d930a67cbdf6ed2e9609d832c519a371233 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Mon, 21 May 2018 14:30:26 +0200 Subject: [PATCH] MOBILE-2376 siteplugins: Fix lang params subproperties --- src/providers/lang.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/providers/lang.ts b/src/providers/lang.ts index 038001174..a4821245d 100644 --- a/src/providers/lang.ts +++ b/src/providers/lang.ts @@ -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.