LocalizableResource
public class LocalizableResource: Resource
LocalizableResource
Base class for any Resource that has the capability of carrying information for multiple locales.
If more than one locale is fetched using either /sync endpoint, or specifying the wildcard value
for the locale paramater (i.e [locale
: *
]) during a fetch, the SDK will cache returned values for
all locales. This class gives an interface to specify which locale should be used when fetching data
from Resource instances that are in memory.
-
Content fields. If there is no value for a field associated with the currently selected
Locale, the SDK will walk down fallback chain until a value is found. If there is still no value after walking the full chain, the field will be omitted from thefieldsdictionary.Declaration
Swift
public var fields: [FieldName: Any]
-
Undocumented
Declaration
Swift
public class LocalizableResource: Resource
View on GitHub
LocalizableResource Class Reference