Every component in the suite has a messages object, a locale property that selects the language, and a localize(key, values) method that replaces {{token}} placeholders.
German, French, Spanish and Simplified Chinese packs are included. Each pack is keyed by tag name, covers all 54 Industrial components and is applied with Smart.Industrial.applyLocale(document.body, 'fr'). A test reads the English keys of every component from a live instance and fails if a pack is missing a key, contains a stale key or drops a {{token}}.
Note. Assigning element.messages = { de: … } replaces the whole object, including the built-in en pack, so switching back to English would show raw message keys. applyLocale merges the languages instead. A pack is only loaded when it is requested.
The accessible names are translated together with the visible text. The values below are read from the live components.