Translate string

PHOTO EMBED

Tue Feb 15 2022 12:08:44 GMT+0000 (UTC)

Saved by @nathan #appscript

function trsl(key) {
  locale = Session.getActiveUserLocale();
  if (['en', 'es'].includes(locale)) {
  return LANGUAGE_MAP[key][locale]
  }
  else {
    return LANGUAGE_MAP[key]['en']
  }
}
content_copyCOPY