Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The state of components, follow the browser language or the node's language? #134

Open
xfq opened this issue Jul 9, 2024 · 0 comments
Open

Comments

@xfq
Copy link
Member

xfq commented Jul 9, 2024

Currently, it's not possible to specify the format of the numbers, and whether the numbers are half-width or full-width for the HTML <input type="date"> element. It seems to be bound to the browser's language preference. This will cause a problem: the internationalization status of the date component is separated from the internationalization status of the whole page.

Do we need a best practice about this (maybe in section 10)? For example:

  • use the page/node's language by default, and if the browser's built-in date picker (or another component) does not support the page/node's language, fall back to the browser language
  • use the browser language by default, but let the author override/control the appearance and localization of the component
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant