public interface ILocalizer
Represents a class that can localize strings.
  • Method Details

    • getMessage

      String getMessage(String key, Locale locale, Object... args)
      Retrieves a localized message.
      Parameters:
      key - The key of the message.
      locale - The Locale to use.
      args - The arguments of the message, if any.
      Returns:
      The localized message associated with the provided key.
    • getMessage

      String getMessage(String key, Object... args)
      Retrieves a localized message using the default locale.
      Parameters:
      key - The key of the message.
      args - The arguments of the message, if any.
      Returns:
      The localized message associated with the provided key.
      Throws:
      MissingResourceException - When no mapping for the key can be found.
    • getStructureType

      default String getStructureType(StructureType structureType)
      Parameters:
      structureType - The structure type to localize.
      Returns:
      The localized name of the structure type.
    • getStructureType

      default String getStructureType(IStructureConst structure)
    • getAvailableLocales

      List<Locale> getAvailableLocales()
      Gets a list of Locales that are currently available.
      Returns:
      The list of available locales.