Make EN language load first (fixes file reset)

This commit is contained in:
Govindas 2020-05-17 17:11:15 +03:00
parent fa7a8b28dd
commit 4bf717237c
1 changed files with 10 additions and 12 deletions

View File

@ -10,14 +10,12 @@ on script load:
loop {_languages::*}:
set {languageslist::%loop-value%} to loop-value
load yaml "plugins/Skript/scripts/languages/LanguageEN.yml" as "langEN"
loop {languageslist::*}:
loop-value is not "EN"
#load it in memory so we can always have it loaded
load yaml "plugins/Skript/scripts/languages/Language%loop-value%.yml" as "lang%loop-value%"
#clear non-existent messages that have been removed from original EN file, but still exist in other languages
loop-value is not "EN":
loop yaml nodes from "lang%loop-value%":
yaml value loop-value-2 from "langEN" is not set: