The localization process includes 2 things – settings the messages property and defining messages for a given locale and then setting the locale property.
For example, define messages[‘kr’] = ‘json object for a component’. Then set the locale to ‘kr’. All messages used by a component can be seen in its API page.