mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-07 07:08:03 -05:00
added localization for "+Xd" suffix in Timer.vue
This commit is contained in:
@@ -88,7 +88,8 @@ function formatFinishTime(durationSeconds: number): string {
|
|||||||
target.startOf('day').diff(now.startOf('day'), 'days').days
|
target.startOf('day').diff(now.startOf('day'), 'days').days
|
||||||
)
|
)
|
||||||
if (daysDifference >= 1) {
|
if (daysDifference >= 1) {
|
||||||
timeString += ` +${daysDifference}d`
|
const label = daysDifference === 1 ? t('Day') : t('Days');
|
||||||
|
timeString += ` +${daysDifference} ${label}`;
|
||||||
}
|
}
|
||||||
return timeString
|
return timeString
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user