Browse Source

Change interpolation: {var} to ${var}

pull/4849/head
Thomas Kaul 3 months ago
parent
commit
a4ca8bf6a4
  1. 2
      apps/api/src/services/i18n/i18n.service.ts
  2. 8
      apps/client/src/app/pages/i18n/i18n-page.html

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>

Loading…
Cancel
Save