Class ILocalizer.DummyLocalizer

java.lang.Object
nl.pim16aap2.animatedarchitecture.core.localization.ILocalizer.DummyLocalizer
All Implemented Interfaces:
ILocalizer
Enclosing interface:
ILocalizer

public static final class ILocalizer.DummyLocalizer extends Object implements ILocalizer
A dummy localizer that returns the key, locale and arguments in a string.
  • Method Details

    • getMessage

      public String getMessage(String key, @Nullable Locale clientLocale, Object... args)
      Description copied from interface: ILocalizer
      Retrieves a localized message.
      Specified by:
      getMessage in interface ILocalizer
      Parameters:
      key - The key of the message.
      clientLocale - The Locale configured for the client. If the configuration does not allow client-specific locales or if the provided Locale is null, this parameter is ignored.
      args - The arguments of the message, if any.
      Returns:
      The localized message associated with the provided key.
    • getAvailableLocales

      public List<Locale> getAvailableLocales()
      Description copied from interface: ILocalizer
      Gets a list of Locales that are currently available.
      Specified by:
      getAvailableLocales in interface ILocalizer
      Returns:
      The list of available locales.