Made about page

This commit is contained in:
2018-03-12 12:27:00 +11:00
parent eab2cb622c
commit d83894e283
17 changed files with 470 additions and 23 deletions

View File

@ -19,7 +19,9 @@ class Language {
}
get(key) {
return this.getRecursive(key.split(".")) || "Missing \"" + key + "\"";
let j = this.getRecursive(key.split("."));
if(typeof j === typeof undefined || j == null) return "Missing \"" + key + "\"";
return j;
}
getRecursive(key_array, data_obj) {
@ -29,6 +31,7 @@ class Language {
let k = key_array[0];
let o = data_obj[k];
if(typeof o === typeof undefined) return null;
if(typeof o === 'function') o = o();
//Awesome
if(key_array.length > 1) {