Skip to content

Commit

Permalink
made translation strings more consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
jabelone committed Sep 25, 2023
1 parent b40b190 commit 1fcf35c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 19 deletions.
4 changes: 1 addition & 3 deletions src-frontend/src/components/Billing/PlanCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
amount: $n(plan.cost / 100, 'currency', siteLocaleCurrency),
intervalCount: plan.intervalAmount,
interval: $tc(
`paymentPlans.${
plan.intervalAmount > 1 ? 'intervalPlurals' : 'interval'
}.${plan.interval.toLowerCase()}`
`paymentPlans.interval.${plan.interval.toLowerCase()}`
),
})
}}
Expand Down
6 changes: 1 addition & 5 deletions src-frontend/src/components/Billing/SelectTier.vue
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,7 @@
),
intervalCount: selectedPlan.intervalCount,
interval: $tc(
`paymentPlans.${
selectedPlan.intervalCount > 1
? 'intervalPlurals'
: 'interval'
}.${selectedPlan.interval.toLowerCase()}`
`paymentPlans.interval.${selectedPlan.interval.toLowerCase()}`
),
}),
})
Expand Down
6 changes: 1 addition & 5 deletions src-frontend/src/components/Billing/TierCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@
),
intervalCount: minPrice.intervalAmount,
interval: $tc(
`paymentPlans.${
minPrice.intervalAmount > 1
? 'intervalPlurals'
: 'interval'
}.${minPrice.interval.toLowerCase()}`
`paymentPlans.interval.${minPrice.interval.toLowerCase()}`
),
}),
})
Expand Down
10 changes: 4 additions & 6 deletions src-frontend/src/i18n/en-AU/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -479,12 +479,10 @@ export default {
week: 'week',
month: 'month',
year: 'year',
},
intervalPlurals: {
day: 'days',
week: 'weeks',
month: 'months',
year: 'years',
days: 'days',
weeks: 'weeks',
months: 'months',
years: 'years',
},
signupFailed: 'Signup failed',
signupSuccess: 'Signup success',
Expand Down

0 comments on commit 1fcf35c

Please sign in to comment.