code: function translate (key, locale) {
  	if (locale) {
  		let loc = i18n.getLocale();
  		i18n.setLocale(locale);
  		let res = i18n.__(key);
  		i18n.setLocale(loc);
  		return res;
  	} else {
  		return i18n.__(key);
  	}
  }
docs: Translate the given work to the current locale of to a one specified in the arguments.
  @param {String} key The key to use in the translation sheet.
  @param {String} locale Custom locale to translate the key.
  @return {String} localized key.