Skip to content

Instantly share code, notes, and snippets.

@dbauszus-glx
Created August 23, 2022 08:43
Show Gist options
  • Save dbauszus-glx/505758c140cac10c683555e9a45cb65e to your computer and use it in GitHub Desktop.
Save dbauszus-glx/505758c140cac10c683555e9a45cb65e to your computer and use it in GitHub Desktop.
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