Package de.xima.fc.common.locale
Interface IMessageLocalizer
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface IMessageLocalizer
Interface for objects that can localize message keys in a given locale, optional with parameters.- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
localize(Locale locale, String message, Object... parameters)
Localizes a message key in the given locale.
-
-
-
Method Detail
-
localize
String localize(Locale locale, String message, Object... parameters)
Localizes a message key in the given locale.- Parameters:
locale
- The locale to localize the message in.message
- The message key to localize.parameters
- Optional parameters to replace in the message.- Returns:
- The localized message.
-
-