public class DefaultLanguageService extends Object implements LanguageService
Default language service which returns the languages defined in the Locale.getISOLanguages()
.
Constructor and Description |
---|
DefaultLanguageService() |
Modifier and Type | Method and Description |
---|---|
List<Language> |
getLanguages(Locale displayLocale)
Returns the languages in the specified display locale.
|
@Cacheable(value="edorasOne-languagesByLocale") public List<Language> getLanguages(Locale displayLocale)
LanguageService
Returns the languages in the specified display locale.
getLanguages
in interface LanguageService
displayLocale
- the locale with which the Language.getName()
is returned. If it is null or has an empty language code the languages are
returned in the default localeCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.