Add splitRoutePath and getMonthName functions to utils/numbers.ts and texts.ts
This commit is contained in:
@@ -11,7 +11,13 @@ const splitRoutePath = (routePath: string): string[] => {
|
||||
|
||||
return routeArray
|
||||
}
|
||||
|
||||
const getMonthName = (monthNumber :number)=> {
|
||||
const months = [
|
||||
'Januari', 'Februari', 'Maret', 'April', 'Mei', 'Juni',
|
||||
'Juli', 'Agustus', 'September', 'Oktober', 'November', 'Desember'
|
||||
];
|
||||
return months[monthNumber - 1] || '';
|
||||
}
|
||||
export {
|
||||
splitRoutePath
|
||||
splitRoutePath,getMonthName
|
||||
}
|
Reference in New Issue
Block a user