26 lines
807 B
Diff
26 lines
807 B
Diff
|
From 5de02cbd463bcc936907ed9af9dc13e4bd3e4f26 Mon Sep 17 00:00:00 2001
|
||
|
From: Max <max@privatevoid.net>
|
||
|
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 ced395a..593321e 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
|
||
|
|