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

Feat - Handle basic date formatting using i18n #401

Closed
wants to merge 1 commit into from

Conversation

ntatoud
Copy link
Contributor

@ntatoud ntatoud commented Jul 21, 2023

Describe your changes

closes #391

Following the code snippet given by @yoannfleurydev, I implemented a default date formatter and displayed the possibility to create cutom ones inside the formatters.ts file

For the default date formatter, I decided to use dayjs since it was already used in Start UI and because it provides a simple and easy-to-use format function.

Screenshots

Usage in the code :
code

Result :
result

Checklist

  • I performed a self review of my code
  • I ensured that everything is written in English
  • I tested the feature or fix on my local environment
  • I ran the yarn storybook command and everything is working

@vercel
Copy link

vercel bot commented Jul 21, 2023

@ntatoud is attempting to deploy a commit to the Team Bearstudio Team on Vercel.

A member of the Team first needs to authorize it.

@sonarcloud
Copy link

sonarcloud bot commented Jul 21, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@ntatoud ntatoud closed this by deleting the head repository May 5, 2024
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.

i18n and date formatting
1 participant