Package io.mangoo.i18n
Class Messages
java.lang.Object
io.mangoo.i18n.Messages
- All Implemented Interfaces:
Serializable
Convenient class for handling translations
- Author:
- svenkubiak
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a localized value for a given key stored in messages_xx.properties and passing the given argumentsReturns a localized value for a given key stored in messages_xx.propertiesReturns a localized value for a given key stored in messages_xx.properties and passing the given argumentsvoidRefreshes the resource bundle by reloading the bundle with the default locale
-
Constructor Details
-
Messages
public Messages()
-
-
Method Details
-
reload
Refreshes the resource bundle by reloading the bundle with the default locale- Parameters:
locale- The locale to use
-
get
Returns a localized value for a given key stored in messages_xx.properties- Parameters:
key- The key to look up the localized value- Returns:
- The localized value or an empty value if the given key is not configured
-
get
Returns a localized value for a given key stored in messages_xx.properties and passing the given arguments- Parameters:
key- The key to look up the localized valuearguments- The arguments to use- Returns:
- The localized value or null value if the given key is not configured
-
get
Returns a localized value for a given key stored in messages_xx.properties and passing the given arguments- Parameters:
key- The key enum to lookup up the localized valuearguments- The arguments to use- Returns:
- The localized value or null value if the given key is not configured
-