Created
August 23, 2022 08:43
-
-
Save dbauszus-glx/505758c140cac10c683555e9a45cb65e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dictionary: new Proxy({}, { | |
get: function(target, key, receiver){ | |
if (mapp.dictionaries[mapp.language][key]) { | |
return mapp.dictionaries[mapp.language][key] | |
} | |
// Return english | |
return mapp.dictionaries.en[key] | |
}}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment