Interface I18nSource


public interface I18nSource
Resolve message keys and message for internationalization. See: I18nHelper.setSource(I18nSource).
Since:
1.2.1
  • Method Summary

    Modifier and Type
    Method
    Description
    keys(String baseName, Locale locale)
    List all the message's keys for the given locale.
    message(String key, Locale locale, Object... args)
    Try to resolve the message under the given key.
  • Method Details

    • keys

      String[] keys(String baseName, Locale locale)
      List all the message's keys for the given locale.
      Parameters:
      baseName - The base name.
      locale - The current locale.
      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.