Class JiraLocaleResolver

java.lang.Object
com.atlassian.jira.i18n.JiraLocaleResolver
All Implemented Interfaces:
com.atlassian.sal.api.message.LocaleResolver

public class JiraLocaleResolver extends Object implements com.atlassian.sal.api.message.LocaleResolver
Resolves the locale for a particular request. Depends on the user that's currently logged in, otherwise the system default locale will be used.
Since:
v2.1
  • Constructor Details

  • Method Details

    • getLocale

      public Locale getLocale(jakarta.servlet.http.HttpServletRequest request)
      Specified by:
      getLocale in interface com.atlassian.sal.api.message.LocaleResolver
    • getLocale

      public Locale getLocale()
      Specified by:
      getLocale in interface com.atlassian.sal.api.message.LocaleResolver
    • getLocale

      public Locale getLocale(com.atlassian.sal.api.user.UserKey userKey)
      Specified by:
      getLocale in interface com.atlassian.sal.api.message.LocaleResolver
    • getApplicationLocale

      public Locale getApplicationLocale()
      Specified by:
      getApplicationLocale in interface com.atlassian.sal.api.message.LocaleResolver
    • getSupportedLocales

      public Set<Locale> getSupportedLocales()
      Specified by:
      getSupportedLocales in interface com.atlassian.sal.api.message.LocaleResolver