Class PromptMsSupportGuiLocalizer

java.lang.Object
de.xima.fc.prompt.service.support.gui.locale.PromptMsSupportGuiLocalizer

public final class PromptMsSupportGuiLocalizer extends Object
Helper for accessing localized strings.
  • Method Details

    • localize

      public static String localize(Locale locale, String key)
      Gets a localized string. Falls back to English when no localization is available for the given locale.
      Parameters:
      locale - Locale for which to retrieve the localized string.
      key - Key of the localized string.
      Returns:
      The localized string.
    • localize

      public static String localize(Locale locale, String key, Object... params)
      Gets a localized string. Falls back to English when no localization is available for the given locale.
      Parameters:
      locale - Locale for which to retrieve the localized string.
      key - Key of the localized string.
      params - Values for the parameters in the template string.
      Returns:
      The localized string.