chore: update i18n dayjs (#10603)

This commit is contained in:
iamkun
2022-11-15 01:07:07 +08:00
committed by GitHub
parent 5facbb70a5
commit 68eacd2b91

View File

@@ -52,6 +52,13 @@ for globally configuring locale and other settings.
</script>
```
## 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