Skip to content

Commit 68eacd2

Browse files
authored
chore: update i18n dayjs (element-plus#10603)
1 parent 5facbb7 commit 68eacd2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/en-US/guide/i18n.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ for globally configuring locale and other settings.
5252
</script>
5353
```
5454

55+
## Date and time localization
56+
57+
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.
58+
```
59+
import 'dayjs/locale/zh-cn'
60+
```
61+
5562
## CDN Usage
5663

5764
If you are using Element Plus via CDN, then you need to do this, let's again take

0 commit comments

Comments
 (0)