Class JiraI18nResolver

java.lang.Object
com.codebarrel.i18n.JiraI18nResolver
All Implemented Interfaces:
I18nResolver

public class JiraI18nResolver extends Object implements I18nResolver
  • Constructor Details

    • JiraI18nResolver

      public JiraI18nResolver(I18nHelper i18nHelper)
  • Method Details

    • getText

      public String getText(String key)
      Description copied from interface: I18nResolver
      Returns a translated string for the given key, or the key if no translations can be found.
      Specified by:
      getText in interface I18nResolver
      Parameters:
      key - The key of the translation.
      Returns:
      Translated text
    • getText

      public String getText(String key, Serializable... params)
      Description copied from interface: I18nResolver
      Returns a translated string for the given key and params, or the key if no translations can be found.
      Specified by:
      getText in interface I18nResolver
      Parameters:
      key - The key of the translation.
      params - Additional parameters to use in the translation.
      Returns:
      Translated text