Class LocalizationBuilder.LocaleBuilder
java.lang.Object
com.kosdev.kos.commons.core.localization.LocalizationBuilder.LocaleBuilder
- Enclosing class:
- LocalizationBuilder
Builder for a locale within a
NamespaceBuilder .- Since:
- 6
- Version:
- 6
-
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- Since:
- 6
-
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- Since:
- 6
-
getNamespace
Return the associatedNamespaceBuilder.- Since:
- 6
-
getLocale
-
getFallbacks
-
getFile
-
getKab
-