Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Feature/change interpolation syntax in i18n service (#4849)

Thomas Kaulb3ec3530746f
diff --git a/apps/api/src/services/i18n/i18n.service.ts b/apps/api/src/services/i18n/i18n.service.ts
index e928775d11..533abf2e23 100644
--- a/apps/api/src/services/i18n/i18n.service.ts
+++ b/apps/api/src/services/i18n/i18n.service.ts
@@ -42,7 +42,7 @@ export class I18nService {
if (placeholders) {
for (const [key, value] of Object.entries(placeholders)) {
- translatedText = translatedText.replace(`{${key}}`, String(value));
+ translatedText = translatedText.replace(`\${${key}}`, String(value));
}
}
diff --git a/apps/client/src/app/pages/i18n/i18n-page.html b/apps/client/src/app/pages/i18n/i18n-page.html
index f54a45b3f9..565d5b68f1 100644
--- a/apps/client/src/app/pages/i18n/i18n-page.html
+++ b/apps/client/src/app/pages/i18n/i18n-page.html
@@ -20,12 +20,12 @@
</li>
<li i18n="@@rule.feeRatioInitialInvestment">Fee Ratio</li>
<li i18n="@@rule.feeRatioInitialInvestment.false">
- The fees do exceed &#123;thresholdMax&#125;% of your initial investment
- (&#123;feeRatio&#125;%)
+ The fees do exceed $&#123;thresholdMax&#125;% of your initial investment
+ ($&#123;feeRatio&#125;%)
</li>
<li i18n="@@rule.feeRatioInitialInvestment.true">
- The fees do not exceed &#123;thresholdMax&#125;% of your initial
- investment (&#123;feeRatio&#125;%)
+ The fees do not exceed $&#123;thresholdMax&#125;% of your initial
+ investment ($&#123;feeRatio&#125;%)
</li>
<li i18n="@@slogan">Open Source Wealth Management Software</li>
</ul>
diff --git a/apps/client/src/locales/messages.ca.xlf b/apps/client/src/locales/messages.ca.xlf
index b90757a683..bfab9a8a2b 100644
--- a/apps/client/src/locales/messages.ca.xlf
+++ b/apps/client/src/locales/messages.ca.xlf
@@ -7649,16 +7649,16 @@
</context-group>
</trans-unit>
<trans-unit id="rule.feeRatioInitialInvestment.false" datatype="html">
- <source> The fees do exceed {thresholdMax}% of your initial investment ({feeRatio}%) </source>
- <target state="new"> The fees do exceed {thresholdMax}% of your initial investment ({feeRatio}%) </target>
+ <source> The fees do exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </source>
+ <target state="new"> The fees do exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/i18n/i18n-page.html</context>
<context context-type="linenumber">22</context>
</context-group>
</trans-unit>
<trans-unit id="rule.feeRatioInitialInvestment.true" datatype="html">
- <source> The fees do not exceed {thresholdMax}% of your initial investment ({feeRatio}%) </source>
- <target state="new"> The fees do not exceed {thresholdMax}% of your initial investment ({feeRatio}%) </target>
+ <source> The fees do not exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </source>
+ <target state="new"> The fees do not exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/i18n/i18n-page.html</context>
<context context-type="linenumber">26</context>
diff --git a/apps/client/src/locales/messages.de.xlf b/apps/client/src/locales/messages.de.xlf
index ba6802bfe1..bd05b886cd 100644
--- a/apps/client/src/locales/messages.de.xlf
+++ b/apps/client/src/locales/messages.de.xlf
@@ -7649,16 +7649,16 @@
</context-group>
</trans-unit>
<trans-unit id="rule.feeRatioInitialInvestment.false" datatype="html">
- <source> The fees do exceed {thresholdMax}% of your initial investment ({feeRatio}%) </source>
- <target state="translated"> Die Gebühren übersteigen {thresholdMax}% deiner ursprünglichen Investition ({feeRatio}%) </target>
+ <source> The fees do exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </source>
+ <target state="translated"> Die Gebühren übersteigen ${thresholdMax}% deiner ursprünglichen Investition (${feeRatio}%) </target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/i18n/i18n-page.html</context>
<context context-type="linenumber">22</context>
</context-group>
</trans-unit>
<trans-unit id="rule.feeRatioInitialInvestment.true" datatype="html">
- <source> The fees do not exceed {thresholdMax}% of your initial investment ({feeRatio}%) </source>
- <target state="translated"> Die Gebühren übersteigen {thresholdMax}% deiner ursprünglichen Investition ({feeRatio}%) nicht </target>
+ <source> The fees do not exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </source>
+ <target state="translated"> Die Gebühren übersteigen ${thresholdMax}% deiner ursprünglichen Investition (${feeRatio}%) nicht </target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/i18n/i18n-page.html</context>
<context context-type="linenumber">26</context>
diff --git a/apps/client/src/locales/messages.es.xlf b/apps/client/src/locales/messages.es.xlf
index 08fd822595..76f53b0299 100644
--- a/apps/client/src/locales/messages.es.xlf
+++ b/apps/client/src/locales/messages.es.xlf
@@ -7650,16 +7650,16 @@
</context-group>
</trans-unit>
<trans-unit id="rule.feeRatioInitialInvestment.false" datatype="html">
- <source> The fees do exceed {thresholdMax}% of your initial investment ({feeRatio}%) </source>
- <target state="new"> The fees do exceed {thresholdMax}% of your initial investment ({feeRatio}%) </target>
+ <source> The fees do exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </source>
+ <target state="new"> The fees do exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/i18n/i18n-page.html</context>
<context context-type="linenumber">22</context>
</context-group>
</trans-unit>
<trans-unit id="rule.feeRatioInitialInvestment.true" datatype="html">
- <source> The fees do not exceed {thresholdMax}% of your initial investment ({feeRatio}%) </source>
- <target state="new"> The fees do not exceed {thresholdMax}% of your initial investment ({feeRatio}%) </target>
+ <source> The fees do not exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </source>
+ <target state="new"> The fees do not exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/i18n/i18n-page.html</context>
<context context-type="linenumber">26</context>
diff --git a/apps/client/src/locales/messages.fr.xlf b/apps/client/src/locales/messages.fr.xlf
index e8eef67fde..fac798e8c7 100644
--- a/apps/client/src/locales/messages.fr.xlf
+++ b/apps/client/src/locales/messages.fr.xlf
@@ -7649,16 +7649,16 @@
</context-group>
</trans-unit>
<trans-unit id="rule.feeRatioInitialInvestment.false" datatype="html">
- <source> The fees do exceed {thresholdMax}% of your initial investment ({feeRatio}%) </source>
- <target state="new"> The fees do exceed {thresholdMax}% of your initial investment ({feeRatio}%) </target>
+ <source> The fees do exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </source>
+ <target state="new"> The fees do exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/i18n/i18n-page.html</context>
<context context-type="linenumber">22</context>
</context-group>
</trans-unit>
<trans-unit id="rule.feeRatioInitialInvestment.true" datatype="html">
- <source> The fees do not exceed {thresholdMax}% of your initial investment ({feeRatio}%) </source>
- <target state="new"> The fees do not exceed {thresholdMax}% of your initial investment ({feeRatio}%) </target>
+ <source> The fees do not exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </source>
+ <target state="new"> The fees do not exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/i18n/i18n-page.html</context>
<context context-type="linenumber">26</context>
diff --git a/apps/client/src/locales/messages.it.xlf b/apps/client/src/locales/messages.it.xlf
index f542d5dca8..5ef471fdfb 100644
--- a/apps/client/src/locales/messages.it.xlf
+++ b/apps/client/src/locales/messages.it.xlf
@@ -7650,16 +7650,16 @@
</context-group>
</trans-unit>
<trans-unit id="rule.feeRatioInitialInvestment.false" datatype="html">
- <source> The fees do exceed {thresholdMax}% of your initial investment ({feeRatio}%) </source>
- <target state="new"> The fees do exceed {thresholdMax}% of your initial investment ({feeRatio}%) </target>
+ <source> The fees do exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </source>
+ <target state="new"> The fees do exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/i18n/i18n-page.html</context>
<context context-type="linenumber">22</context>
</context-group>
</trans-unit>
<trans-unit id="rule.feeRatioInitialInvestment.true" datatype="html">
- <source> The fees do not exceed {thresholdMax}% of your initial investment ({feeRatio}%) </source>
- <target state="new"> The fees do not exceed {thresholdMax}% of your initial investment ({feeRatio}%) </target>
+ <source> The fees do not exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </source>
+ <target state="new"> The fees do not exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/i18n/i18n-page.html</context>
<context context-type="linenumber">26</context>
diff --git a/apps/client/src/locales/messages.nl.xlf b/apps/client/src/locales/messages.nl.xlf
index fd1bfa6acb..3439f03c0d 100644
--- a/apps/client/src/locales/messages.nl.xlf
+++ b/apps/client/src/locales/messages.nl.xlf
@@ -7649,16 +7649,16 @@
</context-group>
</trans-unit>
<trans-unit id="rule.feeRatioInitialInvestment.false" datatype="html">
- <source> The fees do exceed {thresholdMax}% of your initial investment ({feeRatio}%) </source>
- <target state="new"> The fees do exceed {thresholdMax}% of your initial investment ({feeRatio}%) </target>
+ <source> The fees do exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </source>
+ <target state="new"> The fees do exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/i18n/i18n-page.html</context>
<context context-type="linenumber">22</context>
</context-group>
</trans-unit>
<trans-unit id="rule.feeRatioInitialInvestment.true" datatype="html">
- <source> The fees do not exceed {thresholdMax}% of your initial investment ({feeRatio}%) </source>
- <target state="new"> The fees do not exceed {thresholdMax}% of your initial investment ({feeRatio}%) </target>
+ <source> The fees do not exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </source>
+ <target state="new"> The fees do not exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/i18n/i18n-page.html</context>
<context context-type="linenumber">26</context>
diff --git a/apps/client/src/locales/messages.pl.xlf b/apps/client/src/locales/messages.pl.xlf
index c9030efbad..38f2a57252 100644
--- a/apps/client/src/locales/messages.pl.xlf
+++ b/apps/client/src/locales/messages.pl.xlf
@@ -7649,16 +7649,16 @@
</context-group>
</trans-unit>
<trans-unit id="rule.feeRatioInitialInvestment.false" datatype="html">
- <source> The fees do exceed {thresholdMax}% of your initial investment ({feeRatio}%) </source>
- <target state="new"> The fees do exceed {thresholdMax}% of your initial investment ({feeRatio}%) </target>
+ <source> The fees do exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </source>
+ <target state="new"> The fees do exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/i18n/i18n-page.html</context>
<context context-type="linenumber">22</context>
</context-group>
</trans-unit>
<trans-unit id="rule.feeRatioInitialInvestment.true" datatype="html">
- <source> The fees do not exceed {thresholdMax}% of your initial investment ({feeRatio}%) </source>
- <target state="new"> The fees do not exceed {thresholdMax}% of your initial investment ({feeRatio}%) </target>
+ <source> The fees do not exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </source>
+ <target state="new"> The fees do not exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/i18n/i18n-page.html</context>
<context context-type="linenumber">26</context>
diff --git a/apps/client/src/locales/messages.pt.xlf b/apps/client/src/locales/messages.pt.xlf
index 4284198ae6..2635a020a5 100644
--- a/apps/client/src/locales/messages.pt.xlf
+++ b/apps/client/src/locales/messages.pt.xlf
@@ -7649,16 +7649,16 @@
</context-group>
</trans-unit>
<trans-unit id="rule.feeRatioInitialInvestment.false" datatype="html">
- <source> The fees do exceed {thresholdMax}% of your initial investment ({feeRatio}%) </source>
- <target state="new"> The fees do exceed {thresholdMax}% of your initial investment ({feeRatio}%) </target>
+ <source> The fees do exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </source>
+ <target state="new"> The fees do exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/i18n/i18n-page.html</context>
<context context-type="linenumber">22</context>
</context-group>
</trans-unit>
<trans-unit id="rule.feeRatioInitialInvestment.true" datatype="html">
- <source> The fees do not exceed {thresholdMax}% of your initial investment ({feeRatio}%) </source>
- <target state="new"> The fees do not exceed {thresholdMax}% of your initial investment ({feeRatio}%) </target>
+ <source> The fees do not exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </source>
+ <target state="new"> The fees do not exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/i18n/i18n-page.html</context>
<context context-type="linenumber">26</context>
diff --git a/apps/client/src/locales/messages.tr.xlf b/apps/client/src/locales/messages.tr.xlf
index 9d96ee0cfb..6eab8df6c5 100644
--- a/apps/client/src/locales/messages.tr.xlf
+++ b/apps/client/src/locales/messages.tr.xlf
@@ -7649,16 +7649,16 @@
</context-group>
</trans-unit>
<trans-unit id="rule.feeRatioInitialInvestment.false" datatype="html">
- <source> The fees do exceed {thresholdMax}% of your initial investment ({feeRatio}%) </source>
- <target state="new"> The fees do exceed {thresholdMax}% of your initial investment ({feeRatio}%) </target>
+ <source> The fees do exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </source>
+ <target state="new"> The fees do exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/i18n/i18n-page.html</context>
<context context-type="linenumber">22</context>
</context-group>
</trans-unit>
<trans-unit id="rule.feeRatioInitialInvestment.true" datatype="html">
- <source> The fees do not exceed {thresholdMax}% of your initial investment ({feeRatio}%) </source>
- <target state="new"> The fees do not exceed {thresholdMax}% of your initial investment ({feeRatio}%) </target>
+ <source> The fees do not exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </source>
+ <target state="new"> The fees do not exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/i18n/i18n-page.html</context>
<context context-type="linenumber">26</context>
diff --git a/apps/client/src/locales/messages.uk.xlf b/apps/client/src/locales/messages.uk.xlf
index 3c4bc4a8b9..24ef55c37b 100644
--- a/apps/client/src/locales/messages.uk.xlf
+++ b/apps/client/src/locales/messages.uk.xlf
@@ -7649,16 +7649,16 @@
</context-group>
</trans-unit>
<trans-unit id="rule.feeRatioInitialInvestment.false" datatype="html">
- <source> The fees do exceed {thresholdMax}% of your initial investment ({feeRatio}%) </source>
- <target state="new"> The fees do exceed {thresholdMax}% of your initial investment ({feeRatio}%) </target>
+ <source> The fees do exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </source>
+ <target state="new"> The fees do exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/i18n/i18n-page.html</context>
<context context-type="linenumber">22</context>
</context-group>
</trans-unit>
<trans-unit id="rule.feeRatioInitialInvestment.true" datatype="html">
- <source> The fees do not exceed {thresholdMax}% of your initial investment ({feeRatio}%) </source>
- <target state="new"> The fees do not exceed {thresholdMax}% of your initial investment ({feeRatio}%) </target>
+ <source> The fees do not exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </source>
+ <target state="new"> The fees do not exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/i18n/i18n-page.html</context>
<context context-type="linenumber">26</context>
diff --git a/apps/client/src/locales/messages.xlf b/apps/client/src/locales/messages.xlf
index 2980807da6..9a3af47b81 100644
--- a/apps/client/src/locales/messages.xlf
+++ b/apps/client/src/locales/messages.xlf
@@ -6884,14 +6884,14 @@
</context-group>
</trans-unit>
<trans-unit id="rule.feeRatioInitialInvestment.false" datatype="html">
- <source> The fees do exceed {thresholdMax}% of your initial investment ({feeRatio}%) </source>
+ <source> The fees do exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </source>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/i18n/i18n-page.html</context>
<context context-type="linenumber">22</context>
</context-group>
</trans-unit>
<trans-unit id="rule.feeRatioInitialInvestment.true" datatype="html">
- <source> The fees do not exceed {thresholdMax}% of your initial investment ({feeRatio}%) </source>
+ <source> The fees do not exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </source>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/i18n/i18n-page.html</context>
<context context-type="linenumber">26</context>
diff --git a/apps/client/src/locales/messages.zh.xlf b/apps/client/src/locales/messages.zh.xlf
index 21301ba162..4f9202df83 100644
--- a/apps/client/src/locales/messages.zh.xlf
+++ b/apps/client/src/locales/messages.zh.xlf
@@ -7650,16 +7650,16 @@
</context-group>
</trans-unit>
<trans-unit id="rule.feeRatioInitialInvestment.false" datatype="html">
- <source> The fees do exceed {thresholdMax}% of your initial investment ({feeRatio}%) </source>
- <target state="new"> The fees do exceed {thresholdMax}% of your initial investment ({feeRatio}%) </target>
+ <source> The fees do exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </source>
+ <target state="new"> The fees do exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/i18n/i18n-page.html</context>
<context context-type="linenumber">22</context>
</context-group>
</trans-unit>
<trans-unit id="rule.feeRatioInitialInvestment.true" datatype="html">
- <source> The fees do not exceed {thresholdMax}% of your initial investment ({feeRatio}%) </source>
- <target state="new"> The fees do not exceed {thresholdMax}% of your initial investment ({feeRatio}%) </target>
+ <source> The fees do not exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </source>
+ <target state="new"> The fees do not exceed ${thresholdMax}% of your initial investment (${feeRatio}%) </target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/i18n/i18n-page.html</context>
<context context-type="linenumber">26</context>