Interface I18nSource

    • Method Detail

      • keys

        String[] keys​(String baseName,
                      Locale locale)
        List all the message's keys for the given locale.
        Parameters:
        locale - The current locale.
        baseName - The base name.
        Returns:
        All the message's keys.
      • message

        String message​(String key,
                       Locale locale,
                       Object... args)
        Try to resolve the message under the given key.
        Parameters:
        key - The message's key.
        locale - The current locale.
        args - The message arguments.
        Returns:
        The message, null or a default message. It depends on the implementation.