mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
chore: update i18n dayjs (#10603)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user