Class LocalizationBuilder.LocaleBuilder

java.lang.Object
com.tccc.kos.commons.core.localization.LocalizationBuilder.LocaleBuilder
Enclosing class:
LocalizationBuilder

public static class LocalizationBuilder.LocaleBuilder extends Object
Builder for a locale within a NamespaceBuilder .
  • Method Details

    • setLocaleFile

      public LocalizationBuilder.LocaleBuilder setLocaleFile(KabFile kab, String file)
      Set the file that contains the translations for this locale.
      Parameters:
      kab - the kab containing the file
      file - the file path within the kab
    • addFallback

      public LocalizationBuilder.LocaleBuilder addFallback(String fallback)
      Add a fallback for the locale. Fallbacks will be used in they order they are added. Fallback locales will be normalized.
      Parameters:
      fallback - the fallback locale
    • getNamespace

      public LocalizationBuilder.NamespaceBuilder getNamespace()
      Return the associated NamespaceBuilder .
    • getLocale

      public String getLocale()
    • getFallbacks

      public List<String> getFallbacks()
    • getFile

      public String getFile()
    • getKab

      public KabFile getKab()