Package io.quarkus.qute.i18n
Annotation Type MessageBundle
-
@Retention(RUNTIME) @Target(TYPE) public @interface MessageBundle
Denotes a message bundle interface.Each method represents a single message:
@MessageBundle interface MyBundle { @Message("Hello {name}!") String hello_world(String name); }
-
-
Field Summary
Fields Modifier and Type Fields Description static StringDEFAULT_LOCALEConstant value forlocale()indicating that the default locale specified via thequarkus.default-localeconfig property should be used.static StringDEFAULT_NAMEConstant value forvalue().
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description StringdefaultKeyThe value may be one of the following:Message.ELEMENT_NAME,Message.HYPHENATED_ELEMENT_NAMEandMessage.UNDERSCORED_ELEMENT_NAME.StringlocaleStringvalueThe name is used as a namespace in templates expressions.
-
-
-
-
defaultKey
String defaultKey
The value may be one of the following:Message.ELEMENT_NAME,Message.HYPHENATED_ELEMENT_NAMEandMessage.UNDERSCORED_ELEMENT_NAME.- Returns:
- the default key strategy
- See Also:
Message.key()
- Default:
- "<<element name>>"
-
-
-
locale
String locale
- Returns:
- the locale for the default message bundle
- Default:
- "<<default locale>>"
-
-