Interface CommerceCommonI18NService
- All Known Implementing Classes:
DefaultCommerceCommonI18NService
public interface CommerceCommonI18NService
Interface to return list of currencies, based on sites and stores dependencies.
-
Method Summary
Modifier and TypeMethodDescriptionMethod for getting list of countries stored as a catalog version property.Method for getting all currencies for the current store.Method for getting list of languages stored as a catalog version property.Get the current currencyGet the current languageGet the current localeMethod for getting the default currency for the current store.Method for getting the default language for the current store.getLocaleForLanguage(LanguageModel language) Get the site specific locale for the specified languagevoidsetCurrentCurrency(CurrencyModel currency) Set current currency.voidsetCurrentLanguage(LanguageModel language) Set current language.
-
Method Details
-
getAllCurrencies
List<CurrencyModel> getAllCurrencies()Method for getting all currencies for the current store.- Returns:
- list of currencies supported.
-
getAllLanguages
Collection<LanguageModel> getAllLanguages()Method for getting list of languages stored as a catalog version property.- Returns:
- list of languages supported.
-
getAllCountries
Collection<CountryModel> getAllCountries()Method for getting list of countries stored as a catalog version property.- Returns:
- list of countries supported.
-
getDefaultLanguage
LanguageModel getDefaultLanguage()Method for getting the default language for the current store.- Returns:
- the default language.
-
getDefaultCurrency
CurrencyModel getDefaultCurrency()Method for getting the default currency for the current store.- Returns:
- the default currency.
-
getCurrentLanguage
LanguageModel getCurrentLanguage()Get the current language- Returns:
- the current language
-
setCurrentLanguage
Set current language.- Parameters:
language- the language to be set as a current language.
-
getCurrentCurrency
CurrencyModel getCurrentCurrency()Get the current currency- Returns:
- the current currency
-
setCurrentCurrency
Set current currency.- Parameters:
currency- the currency to be set as a current currency.
-
getCurrentLocale
Locale getCurrentLocale()Get the current locale- Returns:
- the current currency
-
getLocaleForLanguage
Get the site specific locale for the specified language- Parameters:
language- the language- Returns:
- the locale
-