Browse Source
Feature/change interpolation syntax in i18n service (#4849)
* Change interpolation syntax from {var} to ${var}
pull/4850/head^2
Thomas Kaul
3 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
14 changed files with
51 additions and
51 deletions
-
apps/api/src/services/i18n/i18n.service.ts
-
apps/client/src/app/pages/i18n/i18n-page.html
-
apps/client/src/locales/messages.ca.xlf
-
apps/client/src/locales/messages.de.xlf
-
apps/client/src/locales/messages.es.xlf
-
apps/client/src/locales/messages.fr.xlf
-
apps/client/src/locales/messages.it.xlf
-
apps/client/src/locales/messages.nl.xlf
-
apps/client/src/locales/messages.pl.xlf
-
apps/client/src/locales/messages.pt.xlf
-
apps/client/src/locales/messages.tr.xlf
-
apps/client/src/locales/messages.uk.xlf
-
apps/client/src/locales/messages.xlf
-
apps/client/src/locales/messages.zh.xlf
|
|
@ -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)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -20,12 +20,12 @@ |
|
|
|
</li> |
|
|
|
<li i18n="@@rule.feeRatioInitialInvestment">Fee Ratio</li> |
|
|
|
<li i18n="@@rule.feeRatioInitialInvestment.false"> |
|
|
|
The fees do exceed {thresholdMax}% of your initial investment |
|
|
|
({feeRatio}%) |
|
|
|
The fees do exceed ${thresholdMax}% of your initial investment |
|
|
|
(${feeRatio}%) |
|
|
|
</li> |
|
|
|
<li i18n="@@rule.feeRatioInitialInvestment.true"> |
|
|
|
The fees do not exceed {thresholdMax}% of your initial |
|
|
|
investment ({feeRatio}%) |
|
|
|
The fees do not exceed ${thresholdMax}% of your initial |
|
|
|
investment (${feeRatio}%) |
|
|
|
</li> |
|
|
|
<li i18n="@@slogan">Open Source Wealth Management Software</li> |
|
|
|
</ul> |
|
|
|
|
|
@ -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> |
|
|
|
|
|
@ -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> |
|
|
|
|
|
@ -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> |
|
|
|
|
|
@ -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> |
|
|
|
|
|
@ -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> |
|
|
|
|
|
@ -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> |
|
|
|
|
|
@ -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> |
|
|
|
|
|
@ -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> |
|
|
|
|
|
@ -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> |
|
|
|
|
|
@ -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> |
|
|
|
|
|
@ -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> |
|
|
|
|
|
@ -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> |
|
|
|