Currently, I am trying to localize my Chrome extension with various other languages and I am getting the variable message from _locales using i189.getmessage
and then I want to use it inside a const
Object dictionary. Below is the code:
var stad = chrome.i18n.getMessage("stand");
const emoji_map = {
"__1_person__": "",
"2 people": "",
"3 people": "",
"4 people": "",
"stad": "sdss",
}
I want to use the value of the stad
variable in place of "stad"
, but don't know how to do this.