Package org.spincast.core.locale
Interface LocaleResolver
- All Known Implementing Classes:
LocaleResolverDefault
public interface LocaleResolver
Component which finds the best Locale to use, using a cookie, a
Accept-Language
header or using a custom way.-
Method Summary
-
Method Details
-
getLocaleToUse
Locale getLocaleToUse()The best Locale to use.- Returns:
- The best Locale to use. If none is found, returns
the default Locale, as defined by
SpincastConfig#getDefaultLocale()
-