Package io.quarkiverse.renarde.util
Class I18N
java.lang.Object
io.quarkiverse.renarde.util.I18N
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformatMessage(String key, Object... params) get()Deprecated.usegetLanguage()Returns the language part of the current localeThe current locale, as obtained via a cookie override, or HTTP headers, or the default.getMessage(String key) void
-
Field Details
-
LOCALE_COOKIE_NAME
- See Also:
-
LANGUAGE_COOKIE_NAME
Deprecated.- See Also:
-
-
Constructor Details
-
I18N
public I18N()
-
-
Method Details
-
set
-
get
Deprecated.usegetLanguage()Returns the language part of the current locale- Returns:
- the language part of the current locale
-
getLanguage
Returns the language part of the current locale- Returns:
- the language part of the current locale
-
getLocale
The current locale, as obtained via a cookie override, or HTTP headers, or the default.- Returns:
- the current locale, as obtained via a cookie override, or HTTP headers, or the default.
-
getMessage
-
formatMessage
-
LOCALE_COOKIE_NAME