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
parent
commit
b3ec353074
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      apps/api/src/services/i18n/i18n.service.ts
  2. 8
      apps/client/src/app/pages/i18n/i18n-page.html
  3. 8
      apps/client/src/locales/messages.ca.xlf
  4. 8
      apps/client/src/locales/messages.de.xlf
  5. 8
      apps/client/src/locales/messages.es.xlf
  6. 8
      apps/client/src/locales/messages.fr.xlf
  7. 8
      apps/client/src/locales/messages.it.xlf
  8. 8
      apps/client/src/locales/messages.nl.xlf
  9. 8
      apps/client/src/locales/messages.pl.xlf
  10. 8
      apps/client/src/locales/messages.pt.xlf
  11. 8
      apps/client/src/locales/messages.tr.xlf
  12. 8
      apps/client/src/locales/messages.uk.xlf
  13. 4
      apps/client/src/locales/messages.xlf
  14. 8
      apps/client/src/locales/messages.zh.xlf

2
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));
}
}

8
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>

8
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>

8
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>

8
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>

8
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>

8
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>

8
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>

8
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>

8
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>

8
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>

8
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>

4
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>

8
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>

Loading…
Cancel
Save