LocaleMessages typedef
LocaleMessages = JSAny
NutrientViewer.I18n.messages, keyed by locale and then by message id.
The ids the SDK ships
are suggested; any other key is accepted and ignored.
Both levels are optional. The map starts empty and gains a locale only
once that locale is
loaded, so reading one that is not loaded yet gives undefined, as does
reading an id the
locale does not override.
Assigning en is always safe. Assigning any other locale before it has
loaded replaces that
locale's messages rather than layering onto them, and the ids it does not
name fall back to
English — preload the locale first when you mean to override only part of
it.
Implementation
typedef LocaleMessages = _i1.JSAny;