every file now supports translation & the languages "custom & dutch" are added

v2.1.0 push 9
This commit is contained in:
DJj123dj
2022-06-23 19:59:35 +02:00
parent 15825d0da6
commit 0bbde2018c
11 changed files with 190 additions and 46 deletions
+3 -3
View File
@@ -19,10 +19,10 @@ const errorLog = async () => {
console.log(chalk.red("Something went wrong when loading the language!")+"\nCheck the config file or create a ticket in our server!")
}
const successLog = async () => {
const successLog = async (language) => {
const chalk = await (await import("chalk")).default
console.log(chalk.green("loaded language file..."))
console.log(chalk.green("loaded language "+language+"..."))
}
if (!localLanguage){
@@ -33,5 +33,5 @@ if (!localLanguage){
runError()
}else{
exports.language = localLanguage
successLog()
successLog(config.languagefile)
}