2022-03-18 00:35:45 +02:00
|
|
|
From 585c3b05855e4bf3e2bf059d0fda0a893700d3a0 Mon Sep 17 00:00:00 2001
|
2022-03-17 21:50:30 +02:00
|
|
|
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
|
2022-03-18 00:35:45 +02:00
|
|
|
index 285d514..3f964b6 100644
|
2022-03-17 21:50:30 +02:00
|
|
|
--- a/libs/language.js
|
|
|
|
+++ b/libs/language.js
|
|
|
|
@@ -16,7 +16,7 @@ module.exports = function(s,config){
|
2022-03-18 00:35:45 +02:00
|
|
|
return Object.assign({},lang)
|
2022-03-17 21:50:30 +02:00
|
|
|
}
|
|
|
|
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
|
|
|
|
|