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 Details
-
DEFAULT_LANGUAGE
- See Also:
-
DEFAULT_COUNTRY
- See Also:
-
locales
@ConfigItem(defaultValue="${user.language:en}-${user.country:}", defaultValueDocumentation="Set containing the build system locale") public Set<Locale> localesThe 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.
A special string "all" is translated as ROOT Locale and then used in native-image to include all locales. Image size penalty applies.
-
defaultLocale
@ConfigItem(defaultValue="${user.language:en}-${user.country:}", defaultValueDocumentation="Build system locale") public Locale defaultLocaleDefault 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.languageanduser.countryfor the application's runtime.
-
-
Constructor Details
-
LocalesBuildTimeConfig
public LocalesBuildTimeConfig()
-