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

localize document-info #898

Merged
merged 2 commits into from
Oct 2, 2023
Merged

localize document-info #898

merged 2 commits into from
Oct 2, 2023

Conversation

filipbech
Copy link
Contributor

I added type to the <umb-localize element... it should probably be individual elements instead, since the input "key" is weird for the input for dates, numbers etc... Could we reworked later!

@bjarnef
Copy link
Contributor

bjarnef commented Sep 26, 2023

I wonder if it would be better to add some utility functions to format date, number, etc. to a specific culture?

E.g. the Shoelace has some great components:
https://shoelace.style/components/format-date
https://shoelace.style/components/format-number
https://shoelace.style/components/relative-time

I think it may confuse with localization of translation keys?

Maybe this would be better:
<umb-format-date>, <umb-format-number>, <umb-relative-time>

Regarding relative time there was also some suggestions here in UI library:
umbraco/Umbraco.UI#143

@iOvergaard iOvergaard merged commit 1ab621d into main Oct 2, 2023
6 checks passed
@iOvergaard iOvergaard deleted the localize-document-info branch October 2, 2023 05:35
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

Successfully merging this pull request may close these issues.

3 participants