feat: locales #27

Merged
Anri merged 26 commits from lang into main 2022-07-22 11:46:48 +02:00
Showing only changes of commit eb4a022954 - Show all commits

View file

@ -7,3 +7,14 @@
export const logStart = (name: string, status: boolean) => {
return `> ${name} ${status === true ? '✅' : '❌'}`;
};
/**
* Filename without path and extension
* @param path __filename
* @returns string
*/
export const getFilename = (path: string) => {
const path_list = path.split('/');
return path_list[path_list.length - 1].split('.')[0];
};