Rewrited to TypeScript, better file structure

This commit is contained in:
2022-01-12 23:15:24 +01:00
parent 5eafee03b2
commit c988ef64c4
13 changed files with 112 additions and 55 deletions

View File

@@ -13,4 +13,15 @@ export default class Global {
console.log(colors.bgYellow.red(errorMsg))
return
}
static langToLanguage(lang: string): string {
switch (lang) {
case 'js':
return 'Javascript'
case 'ts':
return 'Typescript'
default:
return 'Unknown language'
}
}
}