ilnaz
acd39b1e32
Some checks failed
it-academy/dry-wash-pl/pipeline/pr-main There was a failure building this commit
13 lines
315 B
TypeScript
13 lines
315 B
TypeScript
import dayjs from 'dayjs';
|
|
import i18next from 'i18next';
|
|
|
|
export const getTimeSlot = (start: string, end: string) => {
|
|
const startDay = dayjs(start).format('HH:mm');
|
|
const endDay = dayjs(end).format('HH:mm');
|
|
|
|
return i18next.t('~:dry-wash.washTime.timeSlot', {
|
|
start: startDay,
|
|
end: endDay,
|
|
});
|
|
};
|