From 68eacd2b91b1362bd7c287d8f52afb9b187fc581 Mon Sep 17 00:00:00 2001 From: iamkun Date: Tue, 15 Nov 2022 01:07:07 +0800 Subject: [PATCH] chore: update i18n dayjs (#10603) --- docs/en-US/guide/i18n.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/en-US/guide/i18n.md b/docs/en-US/guide/i18n.md index 19c133e4e6..856bc5eaf4 100644 --- a/docs/en-US/guide/i18n.md +++ b/docs/en-US/guide/i18n.md @@ -52,6 +52,13 @@ for globally configuring locale and other settings. ``` +## Date and time localization + +We use [Day.js](https://day.js.org/docs/en/i18n/i18n) library to manage date and time in components like `DatePicker`. It is important to set a proper locale in Day.js to make the internationalization fully works. You have to import Day.js's locale config separately. +``` +import 'dayjs/locale/zh-cn' +``` + ## CDN Usage If you are using Element Plus via CDN, then you need to do this, let's again take