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 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.