OptionallocaleA BCP 47 tag such as 'fr' or 'de-CH'. It picks the plural rules, how numbers
are written and how lists sort. When given, it is also set as the lang of the
graph's root element.
English, Simplified Chinese (zh), French (fr), German (de), Portuguese (pt),
Dutch (nl), Japanese (ja), Arabic (ar) and Spanish (es) are bundled.
Regional tags such as de-CH use their
language's catalogue and retain their own formatting and plural rules.
OptionalmessagesMessages that override the bundled catalogue, by key. Missing keys use the selected language, or English when no catalogue is bundled.
OptionaltranslateA bridge to the host's own translation library, asked for every key messages
does not have. It gets the raw params, so the host's plural rules apply, and the
English text. Returning undefined uses the bundled language, then English.
The language the library's own text is written in. Text the host passes in (labels, facets, pivots, menu rows) is drawn as given and never looked up.
A string is looked up in this order: the feature's own option when it has one (such as
UI.emptyState.render), thenmessages, thentranslate, then the bundled language catalogue, then English.