Skip to content

Date picker placeholder missing for Norwegian Bokmål #8593

@16patsle

Description

@16patsle

Provide a general summary of the issue here

Placeholder date values are missing for Norwegian Bokmål, but exist for Norwegian Nynorsk (which is otherwise not supported) and the generic Norwegian "no" language code

🤔 Expected Behavior?

Datepickers with the locale "nb" should show "dd.mm.åååå" as placeholder

😯 Current Behavior

Datepickers with the locale "nb" show the English "dd.mm.yyyy" as placeholder

💁 Possible Solution

An entry for nb is missing in react-spectrum/packages/@react-stately/datepicker/src/placeholders.ts, it should have an identical one to nn and no.

nb: {year: 'åååå', month: 'mm', day: 'dd'},

🔦 Context

No response

🖥️ Steps to Reproduce

https://stackblitz.com/edit/vitejs-vite-ehzaj81g?file=Datepicker.tsx

Version

react-aria-components 1.10.1

What browsers are you seeing the problem on?

Chrome

If other, please specify.

No response

What operating system are you using?

macOS

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions