Localization
Translate every UI string in EliteChart at runtime — locale dictionaries + the message contract.
Every visible UI string in EliteChart is keyed against a message catalogue. Override the catalogue at the React boundary and the whole UI re-renders in your language.
Quick example
How it works
The component tree reads strings from useMessages() — a hook
re-exported from the package. The default messages are English; the
package ships a small set of pre-built locales (en-US, es-ES,
de-DE, fr-FR, ja-JP, zh-CN). You can also supply your own
message map.
Number and date formatting follow the active Intl locale by
default. Override with <MessagesProvider locale="ko-KR"> to
decouple the locale from the message catalogue.
Variations
Partial override
Detect from the browser
API
| Symbol | From | Notes |
|---|---|---|
MessagesProvider | @elitechart/elitechart | scoped message override |
useMessages() | – | hook for inner components |
| Locale modules | @elitechart/elitechart/locales/* | preshipped catalogues |