Interface LocaleProvider

    • Method Detail

      • getLocale

        Locale getLocale​(DocumentModel userProfileDoc)
        Gets the locale stored in the given user profile.
        Returns:
        the Locale to be used or null to let the caller decide
      • getLocaleWithDefault

        Locale getLocaleWithDefault​(String requestedLocale)
        Returns the default locale for given requested locale.

        Checks if requested locale is part of supported locales, and fall-backs on a default locale if not (or if requested locale is empty).

        Since:
        8.4