Loading Messages
You can load messages for specific languages which will be used later on for localizing the components.
To load the messages and associate them with a specific language, utilize the loadMessages
method that is exported by the Internationalization package. The messages can be either in the form of a JSON file or as an iterable key-value collection.
import { loadMessages } from '@progress/kendo-react-intl';
const language = 'en';
const messagesObj = {
'greeting': "Hello",
...
...
}
loadMessages(messagesObj, language);