To localize dates you can pass the
dateLocale parameter to the
Chat widget. This locale will be passed to intl, so we can localize dates.
Before you can use a
dateLocale, you need to initialize the intl date formatting. To do it you can:
This is the simplest solution, do your research if you want to handle it more gracefully.
You can override anything from some defined l10n or create a new one from scratch. See the l10n implementation here. To override l10n partially, use any defined l10n and change what is needed, like on this example:
If you created a l10n from scratch just pass it to the
l10n parameter. To see all available l10ns, check API reference.