Made about page
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user