Interface ODataLocalizationService
-
- All Known Implementing Classes:
DefaultODataLocalizationService
public interface ODataLocalizationServiceDefines functionality to handle localization
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.LocalegetCommerceSuiteLocale()Gets the locale of the Commerce Suitejava.util.LocalegetLocaleForLanguage(java.lang.String isoCode)Looks up a locale supported by the Commerce Suite by the standard ISO code, i.e "en"java.util.Locale[]getSupportedLocales()Looks up a all locales supported by this Commerce Suite installation.
-
-
-
Method Detail
-
getLocaleForLanguage
java.util.Locale getLocaleForLanguage(java.lang.String isoCode)
Looks up a locale supported by the Commerce Suite by the standard ISO code, i.e "en"- Parameters:
isoCode- The isoCode used to search for an existing LanguageModel- Returns:
- The locale
-
getSupportedLocales
java.util.Locale[] getSupportedLocales()
Looks up a all locales supported by this Commerce Suite installation.- Returns:
- an array of locales. May return empty if no locales are supported. Will never return null.
-
getCommerceSuiteLocale
java.util.Locale getCommerceSuiteLocale()
Gets the locale of the Commerce Suite- Returns:
- The locale
-
-