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 String
DEFAULT_LOCALE
Constant value forlocale()
indicating that the default locale specified via thequarkus.default-locale
config property should be used.static String
DEFAULT_NAME
Constant value forvalue()
.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description String
defaultKey
The value may be one of the following:Message.ELEMENT_NAME
,Message.HYPHENATED_ELEMENT_NAME
andMessage.UNDERSCORED_ELEMENT_NAME
.String
locale
String
value
The 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_NAME
andMessage.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>>"
-
-