Skip to content

Commit fd2e8cd

Browse files
committed
Tweak strings
1 parent 01b6012 commit fd2e8cd

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/app/components/main/main.component.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ export class MainComponent implements OnInit {
111111
loading: boolean = true;
112112
currentLocale: String = '';
113113
private grossSalaryString: String = '';
114+
private grossSalaryTitleString: String = '';
114115
private doubleHolidayPayString: String = '';
115116
private bonusString: String = '';
116117
private otherNetIncomeString: String = '';
@@ -189,6 +190,7 @@ export class MainComponent implements OnInit {
189190
onLanguageChange() {
190191
forkJoin({
191192
grossSalary: this.translocoService.selectTranslate('gross_salary').pipe(take(1)),
193+
grossSalaryTitle: this.translocoService.selectTranslate('gross_salary_title').pipe(take(1)),
192194
doubleHolidayPay: this.translocoService.selectTranslate('double_holiday_pay').pipe(take(1)),
193195
bonus: this.translocoService.selectTranslate('bonus').pipe(take(1)),
194196
otherNetIncome: this.translocoService.selectTranslate('other_net_income').pipe(take(1)),
@@ -207,6 +209,7 @@ export class MainComponent implements OnInit {
207209
mealVouchersEmployerContribution: this.translocoService.selectTranslate('meal_vouchers_employer_contribution').pipe(take(1)),
208210
}).subscribe(translations => {
209211
this.grossSalaryString = translations.grossSalary;
212+
this.grossSalaryTitleString = translations.grossSalaryTitle;
210213
this.doubleHolidayPayString = translations.doubleHolidayPay;
211214
this.bonusString = translations.bonus;
212215
this.otherNetIncomeString = translations.otherNetIncome;
@@ -316,14 +319,14 @@ export class MainComponent implements OnInit {
316319

317320
if (this.result != null) {
318321
if (this.result.socialCotisationsAfterReductions) {
319-
this.sankeyData.push({ source: this.grossSalaryString, target: this.socialCotisationsString, value: this.result.socialCotisationsAfterReductions });
322+
this.sankeyData.push({ source: this.grossSalaryTitleString, target: this.socialCotisationsString, value: this.result.socialCotisationsAfterReductions });
320323
}
321324

322325
if (this.result.companyCarBenefitInKindValue) {
323326
this.sankeyData.push({ source: this.companyCarBenefitInKindValueString, target: this.taxableGrossIncomeString, value: this.result.companyCarBenefitInKindValue });
324327
}
325328

326-
this.sankeyData.push({ source: this.grossSalaryString, target: this.taxableGrossIncomeString, value: this.result.taxableIncome });
329+
this.sankeyData.push({ source: this.grossSalaryTitleString, target: this.taxableGrossIncomeString, value: this.result.taxableIncome });
327330

328331
if (this.result.professionalWithholdingTaxesAfterReductions) {
329332
this.sankeyData.push({ source: this.taxableGrossIncomeString, target: this.professionalWithholdingTaxString, value: this.result.professionalWithholdingTaxesAfterReductions });

src/assets/i18n/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"title": "Net Salary Calculator",
3-
"description_1": "The belgian net salary calculator you didn't know you needed.",
3+
"description_1": "The Belgian net salary calculator you didn't know you needed.",
44
"description_2": "A standout feature of this calculator is its ability to display a graph illustrating how your net salary evolves as your gross salary increases.",
55
"description_3": "It also highlights the relative net raise, showing the proportion of a specific gross raise that translates into a net salary gain. For example, you can see how a €50 gross raise impacts your take-home pay across different salary levels, providing valuable insights into your earnings progression.",
66
"everything_local_open_source": "Everything is calculated locally in your browser. Feel free to verify, this tool is completely <a href=\"https://github.com/PLPeeters/salarysim/\" target=\"_blank\">open-source</a>.",

0 commit comments

Comments
 (0)