fix small issues

This commit is contained in:
wukko
2022-09-01 19:51:18 +06:00
parent e61122d5b0
commit f70128f4fc
11 changed files with 40 additions and 49 deletions

View File

@ -6,7 +6,7 @@ const locPath = './src/localization/languages'
let loc = {}
export async function loadLoc() {
export function loadLoc() {
fs.readdir(locPath, (err, files) => {
files.forEach(file => {
loc[file.split('.')[0]] = loadJson(`${locPath}/${file}`)