Class LocaleUtil

java.lang.Object
de.hybris.platform.sap.core.common.util.LocaleUtil

public final class LocaleUtil extends Object
Helper class to access the Locale attached with the executing thread.
  • Method Details

    • getLocale

      public static Locale getLocale()
      Get the current locale.
      Returns:
      locale the current locale
    • setLocale

      public static void setLocale(Locale locale)
      Set the locale (for test purposes).
      Parameters:
      locale - the default locale to be used in tests