fix: Away text translations

This commit is contained in:
Muhsin Keloth
2024-03-12 12:25:04 +05:30
parent aaf70cf1cf
commit 99a31f03ca
2 changed files with 11 additions and 4 deletions
+4 -1
View File
@@ -20,7 +20,10 @@
"IN_A_FEW_MINUTES": "Typically replies in a few minutes",
"IN_A_FEW_HOURS": "Typically replies in a few hours",
"IN_A_DAY": "Typically replies in a day",
"BACK_IN": "We will be back online"
"BACK_IN": "We will be back online",
"BACK_AT": "at",
"BACK_ON": "on",
"BACK_IN_SOME_TIME": "in some time"
},
"DAY_NAMES": [
"Sunday",
@@ -111,7 +111,9 @@ export default {
},
exactTimeInAmPm() {
return `${
this.timeSlot.day === this.currentDay ? `at ${this.timeSlot.from}` : ''
this.timeSlot.day === this.currentDay
? `${this.$t('REPLY_TIME.BACK_AT')} ${this.timeSlot.from}`
: ''
}`;
},
hoursAndMinutesLeft() {
@@ -151,7 +153,7 @@ export default {
if (hoursLeft > 0 || minutesLeft > 0) {
return this.hoursAndMinutesLeft;
}
return 'in some time';
return this.$t('REPLY_TIME.BACK_IN_SOME_TIME');
},
timeLeftToBackInOnline() {
if (
@@ -169,7 +171,9 @@ export default {
this.dayDiff >= 1 &&
this.presentHour >= this.currentDayTimings.closeHour
) {
return `on ${this.dayNameOfNextWorkingDay}`;
return `${this.$t('REPLY_TIME.BACK_ON')} ${
this.dayNameOfNextWorkingDay
}`;
}
return this.hoursAndMinutesToBack;
},