From 585c3b05855e4bf3e2bf059d0fda0a893700d3a0 Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 15 Mar 2022 18:26:44 +0100 Subject: [PATCH 3/9] use s.location.languages --- libs/language.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/language.js b/libs/language.js index 285d514..3f964b6 100644 --- a/libs/language.js +++ b/libs/language.js @@ -16,7 +16,7 @@ module.exports = function(s,config){ return Object.assign({},lang) } s.listOfPossibleLanguages = [] - fs.readdirSync(s.mainDirectory + '/languages').forEach(function(filename){ + fs.readdirSync(s.location.languages).forEach(function(filename){ var name = filename.replace('.json','') s.listOfPossibleLanguages.push({ "name": name, -- 2.35.1