Class LocalizationBuilder.LocaleBuilder
java.lang.Object
com.tccc.kos.commons.core.localization.LocalizationBuilder.LocaleBuilder
- Enclosing class:
- LocalizationBuilder
Builder for a locale within a
NamespaceBuilder .-
Method Summary
Modifier and TypeMethodDescriptionaddFallback(String fallback) Add a fallback for the locale.getFile()getKab()Return the associatedNamespaceBuilder.setLocaleFile(KabFile kab, String file) Set the file that contains the translations for this locale.
-
Method Details
-
setLocaleFile
Set the file that contains the translations for this locale.- Parameters:
kab- the kab containing the filefile- the file path within the kab
-
addFallback
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
Return the associatedNamespaceBuilder. -
getLocale
-
getFallbacks
-
getFile
-
getKab
-