Skip to content

DateTime function bug in Chrome with some locales #1002

@RollingTL

Description

@RollingTL

Reporting a bug?

#d function returns wrong date representation for certain locales in Chrome. Firefox and Safari work properly.

$d function should return:
2022 ж. 5 мамыр, бейсенбі
instead of:
Thursday, May 5, 2022
for locale kk.

Other minor languages behave inconsistently too, f.e. az.

Chrome

Screen Shot 2022-05-05 at 13 36 30

Expected behavior

$d function should return:
2022 ж. 5 мамыр, бейсенбі
for locale kk. Other minor languages behave inconsistently too, f.e. az.

Safari

Screen Shot 2022-05-05 at 13 37 11

or

FireFox

Screen Shot 2022-05-05 at 13 36 47

Reproduction

https://codesandbox.io/s/vue-i18n-9-dates-espu09?file=/index.html

<div class="mark">{{ $d(new Date(), 'long', 'az') }}</div>

System Info

MacOS Big Sur. 
SandBox, i18n Vue template

Screenshot

No response

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions