Interface I18nSource


@Deprecated(since="2024-07-10") public interface I18nSource
Deprecated.
com.github.jknack.handlebars.helper package is deprecated and marked for removal in subsequent releases which will involve removal of the handlebars dependency in AEM.
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)
    Deprecated.
    List all the message's keys for the given locale.
    message(String key, Locale locale, Object... args)
    Deprecated.
    Try to resolve the message under the given key.
  • Method Details

    • keys

      String[] keys(String baseName, Locale locale)
      Deprecated.
      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)
      Deprecated.
      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.