Browse Source

Improve i18n

pull/1183/head
Thomas 3 years ago
parent
commit
826c488c9d
  1. 2
      apps/client/src/app/components/investment-chart/investment-chart.component.ts
  2. 4
      apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts
  3. 4
      apps/client/src/app/pages/portfolio/analysis/analysis-page.component.ts
  4. 4
      apps/client/src/app/pages/portfolio/analysis/analysis-page.html
  5. 8
      apps/client/src/locales/messages.de.xlf
  6. 7
      apps/client/src/locales/messages.xlf
  7. 5
      libs/ui/src/lib/fire-calculator/fire-calculator.component.html
  8. 6
      libs/ui/src/lib/fire-calculator/fire-calculator.component.ts

2
apps/client/src/app/components/investment-chart/investment-chart.component.ts

@ -122,7 +122,7 @@ export class InvestmentChartComponent implements OnChanges, OnDestroy {
data: this.investments.map((position) => { data: this.investments.map((position) => {
return position.investment; return position.investment;
}), }),
label: 'Investment', label: $localize`Investment`,
segment: { segment: {
borderColor: (context: unknown) => borderColor: (context: unknown) =>
this.isInFuture( this.isInFuture(

4
apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts

@ -54,8 +54,8 @@ export class AllocationsPageComponent implements OnDestroy, OnInit {
}; };
public period = 'current'; public period = 'current';
public periodOptions: ToggleOption[] = [ public periodOptions: ToggleOption[] = [
{ label: 'Initial', value: 'original' }, { label: $localize`Initial`, value: 'original' },
{ label: 'Current', value: 'current' } { label: $localize`Current`, value: 'current' }
]; ];
public placeholder = ''; public placeholder = '';
public portfolioDetails: PortfolioDetails; public portfolioDetails: PortfolioDetails;

4
apps/client/src/app/pages/portfolio/analysis/analysis-page.component.ts

@ -26,8 +26,8 @@ export class AnalysisPageComponent implements OnDestroy, OnInit {
public investmentsByMonth: InvestmentItem[]; public investmentsByMonth: InvestmentItem[];
public mode: GroupBy; public mode: GroupBy;
public modeOptions: ToggleOption[] = [ public modeOptions: ToggleOption[] = [
{ label: 'Monthly', value: 'month' }, { label: $localize`Monthly`, value: 'month' },
{ label: 'Accumulating', value: undefined } { label: $localize`Accumulating`, value: undefined }
]; ];
public top3: Position[]; public top3: Position[];
public user: User; public user: User;

4
apps/client/src/app/pages/portfolio/analysis/analysis-page.html

@ -52,7 +52,7 @@
<mat-card class="mb-3"> <mat-card class="mb-3">
<mat-card-header> <mat-card-header>
<mat-card-title class="align-items-center d-flex" i18n <mat-card-title class="align-items-center d-flex" i18n
>Top 3</mat-card-title >Top</mat-card-title
> >
</mat-card-header> </mat-card-header>
<mat-card-content> <mat-card-content>
@ -88,7 +88,7 @@
<mat-card class="mb-3"> <mat-card class="mb-3">
<mat-card-header> <mat-card-header>
<mat-card-title class="align-items-center d-flex" i18n <mat-card-title class="align-items-center d-flex" i18n
>Bottom 3</mat-card-title >Bottom</mat-card-title
> >
</mat-card-header> </mat-card-header>
<mat-card-content> <mat-card-content>

8
apps/client/src/locales/messages.de.xlf

@ -2493,6 +2493,14 @@
<context context-type="linenumber">171</context> <context context-type="linenumber">171</context>
</context-group> </context-group>
</trans-unit> </trans-unit>
<trans-unit id="e34e2478d2d30c9d01758d01b7212411171b9bd5" datatype="html">
<source>Projected Total Amount</source>
<target state="translated">Geschätzter Gesamtbetrag</target>
<context-group purpose="location">
<context context-type="sourcefile">libs/ui/src/lib/fire-calculator/fire-calculator.component.html</context>
<context context-type="linenumber">44</context>
</context-group>
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>

7
apps/client/src/locales/messages.xlf

@ -2227,6 +2227,13 @@
<context context-type="linenumber">145</context> <context context-type="linenumber">145</context>
</context-group> </context-group>
</trans-unit> </trans-unit>
<trans-unit id="e34e2478d2d30c9d01758d01b7212411171b9bd5" datatype="html">
<source>Projected Total Amount</source>
<context-group purpose="location">
<context context-type="sourcefile">libs/ui/src/lib/fire-calculator/fire-calculator.component.html</context>
<context context-type="linenumber">44</context>
</context-group>
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>

5
libs/ui/src/lib/fire-calculator/fire-calculator.component.html

@ -35,13 +35,14 @@
</mat-form-field> </mat-form-field>
<gf-value <gf-value
label="Projected Total Amount" i18n
size="large" size="large"
[currency]="currency" [currency]="currency"
[isCurrency]="true" [isCurrency]="true"
[locale]="locale" [locale]="locale"
[value]="projectedTotalAmount" [value]="projectedTotalAmount"
></gf-value> >Projected Total Amount</gf-value
>
</form> </form>
</div> </div>
<div class="col-md-9 text-center"> <div class="col-md-9 text-center">

6
libs/ui/src/lib/fire-calculator/fire-calculator.component.ts

@ -273,7 +273,7 @@ export class FireCalculatorComponent
const datasetDeposit = { const datasetDeposit = {
backgroundColor: `rgb(${primaryColorRgb.r}, ${primaryColorRgb.g}, ${primaryColorRgb.b})`, backgroundColor: `rgb(${primaryColorRgb.r}, ${primaryColorRgb.g}, ${primaryColorRgb.b})`,
data: [], data: [],
label: 'Deposit' label: $localize`Deposit`
}; };
const datasetInterest = { const datasetInterest = {
@ -283,7 +283,7 @@ export class FireCalculatorComponent
.lighten(0.5) .lighten(0.5)
.hex(), .hex(),
data: [], data: [],
label: 'Interest' label: $localize`Interest`
}; };
const datasetSavings = { const datasetSavings = {
@ -293,7 +293,7 @@ export class FireCalculatorComponent
.lighten(0.25) .lighten(0.25)
.hex(), .hex(),
data: [], data: [],
label: 'Savings' label: $localize`Savings`
}; };
for (let period = 1; period <= t; period++) { for (let period = 1; period <= t; period++) {

Loading…
Cancel
Save