Package org.craftercms.commons.locale
Class LocaleUtils
java.lang.Object
org.craftercms.commons.locale.LocaleUtils
Utility class for handling locale codes
- Since:
- 4.0.0
- Author:
- joseross
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringappendLocale(String str, Locale locale) appendLocales(String name, Locale primary, Locale fallback) static StringdelocalizePath(String path) static StringgetCompatibleLocales(Locale locale) getCompatibleLocales(Locale primary, Locale fallback) static StringlocalizePath(String path, Locale locale) static LocaleparseLocale(String localeValue) parseLocales(List<String> localeValues) static String
-
Field Details
-
CONFIG_KEY_DEFAULT_LOCALE
- See Also:
-
CONFIG_KEY_SUPPORTED_LOCALES
- See Also:
-
CONFIG_KEY_FALLBACK
- See Also:
-
LOCALE_SEPARATOR
- See Also:
-
LOCALE_PATTERN
-
-
Constructor Details
-
LocaleUtils
public LocaleUtils()
-
-
Method Details
-
parseLocale
-
parseLocales
-
toString
-
appendLocale
-
localizePath
-
delocalizePath
-
findPath
-
appendLocales
-
getCompatibleLocales
-
getCompatibleLocales
-