Class TestingLocaleManager

    • Constructor Detail

      • TestingLocaleManager

        public TestingLocaleManager()
    • Method Detail

      • getLocale

        public Locale getLocale​(com.atlassian.user.User user)
        Description copied from class: DefaultLocaleManager
        Returns the user's locale if they have one set in their preferences, otherwise returns the site default locale. Caches the result in the thread-local cache so we only check the preference or settings once per request.
        Specified by:
        getLocale in interface LocaleManager
        getLocale in class DefaultLocaleManager