Class LocalizationFragment.Namespace
java.lang.Object
com.tccc.kos.commons.util.json.fragments.LocalizationFragment.Namespace
- Enclosing class:
- LocalizationFragment
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Return the collection of fallback locales for a specified locale.Return the collection of locales defined in this namespace.int
hashCode()
void
setFallbackLocales
(Map<String, List<String>> fallbackLocales) void
setLocales
(Map<String, String> locales) toString()
-
Constructor Details
-
Namespace
public Namespace()
-
-
Method Details
-
getLocales
Return the collection of locales defined in this namespace. Each locale name is expected to be an ISO 639 alpha2 country code with optional ISO 3166 alpha2 country code separated by dash or underscore. The value associated with each locale is a path within the kab to the file that contains the translations. -
getFallbackLocales
Return the collection of fallback locales for a specified locale. This is used by the ui to back fill missing translations. -
setLocales
-
setFallbackLocales
-
equals
-
hashCode
public int hashCode() -
toString
-