Skip to content

Commit

Permalink
Change total category status bottom label
Browse files Browse the repository at this point in the history
  • Loading branch information
ajuvonen committed Sep 8, 2024
1 parent 2c78829 commit 48d4a39
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/components/CategoryStatus.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ withDefaults(
>
<span>{{ $t(totals ? 'categoryStatus.topLabelTotal' : 'categoryStatus.topLabel') }}</span>
<span :class="totals ? 'text-5xl' : 'text-6xl'">{{ veggies.length }}</span>
<span>{{ $t('categoryStatus.bottomLabel') }}</span>
<span>{{
$t(totals ? 'categoryStatus.bottomLabelTotal' : 'categoryStatus.bottomLabel')
}}</span>
</i18n-t>
</div>
</template>
Expand Down
2 changes: 1 addition & 1 deletion src/components/__tests__/CategoryStatus.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ describe('CategoryStatus', () => {
},
},
});
expect(wrapper.find('h1').text()).toBe('In Total 2 Veggies');
expect(wrapper.find('h1').text()).toBe('In Total 2 Actions');
});
});
3 changes: 2 additions & 1 deletion src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,12 @@
},
"categoryStatus": {
"bottomLabel": "Veggies",
"bottomLabelTotal": "Actions",
"centerLabel": "{0} {1} {2}",
"topLabel": "This Week",
"topLabelTotal": "In Total",
"veggiesOfTheWeek": "Veggies of the Week",
"veggiesTotal": "All Veggies in Total"
"veggiesTotal": "All Actions in Total"
},
"cheers": {
"0": "Good job",
Expand Down
3 changes: 2 additions & 1 deletion src/i18n/fi.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,12 @@
},
"categoryStatus": {
"bottomLabel": "Kasvista",
"bottomLabelTotal": "Toimintoa",
"centerLabel": "{0} {1} {2}",
"topLabel": "Tällä Viikolla",
"topLabelTotal": "Yhteensä",
"veggiesOfTheWeek": "Viikon kasvikset",
"veggiesTotal": "Kaikki kasvikset yhteensä"
"veggiesTotal": "Kaikki toiminnot yhteensä"
},
"cheers": {
"0": "Hienoa",
Expand Down

0 comments on commit 48d4a39

Please sign in to comment.