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

Dates: make the format configurable #1449

Open
bpierre opened this issue Jun 16, 2020 · 0 comments
Open

Dates: make the format configurable #1449

bpierre opened this issue Jun 16, 2020 · 0 comments

Comments

@bpierre
Copy link
Contributor

bpierre commented Jun 16, 2020

Not as urgent and straightforward as #1406, but it could be a better solution in the longer term.

ISO-8601 is good to represent dates without ambiguity, but letting users choose their preferred format would be a better option.

It would require the following:

  • Add a way to pass it through aragon.js (see the addition of guiStyle as an example).
  • Add a “Display” section to the global preferences, with the date format.
  • Use it to format the client dates.
  • Use it to format the apps dates (this could be done as a second step).

We could also think of adding other information and passing it all at once, e.g. we could have a i18n object containing the preferred date and time formats and the currency. If we decide to localize the client and the apps one day, this is also where the preferred language would go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants