This commit is contained in:
Vladimir Voronin
2024-11-06 19:14:53 +03:00
parent 04fae4dec7
commit 9d546f6069
23 changed files with 1008 additions and 108 deletions

View File

@@ -14,4 +14,33 @@ export const formatDate = (date) => {
month: '2-digit',
year: '2-digit',
});
}
export const getMonthName = (month: number) => {
switch (month) {
case 0:
return 'Январь'
case 1:
return 'Февраль'
case 2:
return 'Март'
case 3:
return 'Апрель'
case 4:
return 'Май'
case 5:
return 'Июнь'
case 6:
return 'Июль'
case 7:
return 'Август'
case 8:
return 'Сентябрь'
case 9:
return 'Октябрь'
case 10:
return 'Ноябрь'
case 11:
return 'Декабрь'
}
}