Package io.quarkus.runtime
Class LocalesBuildTimeConfig
- java.lang.Object
-
- io.quarkus.runtime.LocalesBuildTimeConfig
-
@ConfigRoot(name="<<parent>>", phase=BUILD_AND_RUN_TIME_FIXED) public class LocalesBuildTimeConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_COUNTRY
static String
DEFAULT_LANGUAGE
Locale
defaultLocale
Default locale that can be consumed by the extensions.Set<Locale>
locales
The set of supported locales that can be consumed by the extensions.
-
Constructor Summary
Constructors Constructor Description LocalesBuildTimeConfig()
-
-
-
Field Detail
-
DEFAULT_LANGUAGE
public static final String DEFAULT_LANGUAGE
- See Also:
- Constant Field Values
-
DEFAULT_COUNTRY
public static final String DEFAULT_COUNTRY
- See Also:
- Constant Field Values
-
locales
@ConfigItem(defaultValue="${user.language:en}-${user.country:}", defaultValueDocumentation="Set containing the build system locale") public Set<Locale> locales
The set of supported locales that can be consumed by the extensions.The locales must be specified in the IETF BCP 47 format e.g. en-US or fr-FR.
For instance, the Hibernate Validator extension makes use of it.
Native-image build uses it to define additional locales that are supposed to be available at runtime.
-
defaultLocale
@ConfigItem(defaultValue="${user.language:en}-${user.country:}", defaultValueDocumentation="Build system locale") public Locale defaultLocale
Default locale that can be consumed by the extensions.The locale must be specified in the IETF BCP 47 format e.g. en-US or fr-FR.
For instance, the Hibernate Validator extension makes use of it.
Native-image build uses this property to derive user.language and user.country for the application's runtime.
-
-