Class StringToLocaleConverter

java.lang.Object
de.hybris.platform.integrationservices.item.StringToLocaleConverter
All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<String,Locale>

public class StringToLocaleConverter extends Object implements org.springframework.core.convert.converter.Converter<String,Locale>
Converts String presentation of a locale to a Locale. This implementation ignores any parts of the Locale besides language and country because that is the level of locale support inside the ECP. Variant and extension parts won't make any difference in the application.
  • Constructor Details

    • StringToLocaleConverter

      public StringToLocaleConverter()
  • Method Details

    • convert

      public Locale convert(String tag)
      Specified by:
      convert in interface org.springframework.core.convert.converter.Converter<String,Locale>