Class LocaleWrapper

java.lang.Object
com.inductiveautomation.ignition.common.i18n.LocaleWrapper
All Implemented Interfaces:
Serializable, Comparable<LocaleWrapper>

public class LocaleWrapper extends Object implements Serializable, Comparable<LocaleWrapper>
A class that represents a locale. It can be created with either a locale object or the lang code, and to-strings nicely.
See Also:
  • Constructor Details

    • LocaleWrapper

      public LocaleWrapper(Locale locale)
      Constructs a new LocaleWrapper from a Locale.
      Parameters:
      locale - The locale to wrap.
    • LocaleWrapper

      public LocaleWrapper(@Nullable String langCode)
      Constructs a new LocaleWrapper from a language code string. If the code is blank, the default locale is used.
      Parameters:
      langCode - The language code (e.g., "en", "en_US").
  • Method Details