element-plus [i18n] [date-picker] Exposed dayjs doesn't use locale

amrnrhlw  于 5个月前  发布在  其他
关注(0)|答案(6)|浏览(66)

Bug Type: i18n

Environment

  • Vue Version: 3.2.47
  • Element Plus Version: 2.3.4
  • Browser / OS: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0
  • Build Tool: CDN

Reproduction

  • el-date-picker

JSFiddle

Steps to reproduce

Choose a month

What is Expected?

It should display the name of the chosen month in French

What is actually happening?

The name of the month is in English

Additional comments

The documentation shows how to specify a locale for dayjs in a build, not with CDN. Maybe I missed something?

3pmvbmvn

3pmvbmvn1#

The fiddle doesn't work, check it.

huus2vyu

huus2vyu2#

The fiddle doesn't work, check it.

It works (with Firefox), I checked it out just now. Maybe a timeout from the CDN?

ojsjcaue

ojsjcaue3#

Opera and Google Chrome (Version 112.0.5615.137)

f1tvaqid

f1tvaqid4#

Very weird... I tested with Chrome (112.0.5615.138) with the same result as yours on JSFiddle, but it works if I open the same page in Chrome from my computer. So I guess it's a problem with JSFiddle but I don't know how to fix it. 😞

ubof19bj

ubof19bj5#

@Harry-Dunne Sorry, my network cannot access JSFiddle, can you provide a repo with another path?

相关问题