public static boolean hasKey(String key) {
   return i18nLocale.hasKey(key);
 }
 /**
  * Translates the given string and then formats it. Equivilant to String.format(translate(key),
  * parameters).
  */
 public static String format(String translateKey, Object... parameters) {
   return i18nLocale.formatMessage(translateKey, parameters);
 }