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: allow to configure date and time format over i18n #2419

Merged
merged 11 commits into from
Jun 14, 2024

Conversation

MartinCupela
Copy link
Contributor

🎯 Goal

Allow to configure date and time formatting globally.

🛠 Implementation details

To maintain backwards compatibility, the default formatting param values like calendar and format have been kept. The new added guide documents how to make it possible to override those from translation JSON files.

Copy link

codecov bot commented Jun 11, 2024

Codecov Report

Attention: Patch coverage is 98.07692% with 1 line in your changes missing coverage. Please review.

Project coverage is 85.47%. Comparing base (ded8f05) to head (0e1d194).
Report is 3 commits behind head on release-v11.

Files Patch % Lines
src/i18n/Streami18n.ts 88.88% 1 Missing ⚠️
Additional details and impacted files
@@               Coverage Diff               @@
##           release-v11    #2419      +/-   ##
===============================================
+ Coverage        85.41%   85.47%   +0.05%     
===============================================
  Files              392      392              
  Lines             9031     9072      +41     
  Branches          2326     2342      +16     
===============================================
+ Hits              7714     7754      +40     
- Misses            1116     1117       +1     
  Partials           201      201              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@MartinCupela MartinCupela force-pushed the feat/configure-datetime-format-i18n branch from e940a50 to a4e7133 Compare June 14, 2024 09:12
@MartinCupela MartinCupela force-pushed the feat/configure-datetime-format-i18n branch from a4e7133 to daa4d4c Compare June 14, 2024 09:24
@MartinCupela MartinCupela merged commit cb09dc1 into release-v11 Jun 14, 2024
8 checks passed
@MartinCupela MartinCupela deleted the feat/configure-datetime-format-i18n branch June 14, 2024 10:17
github-actions bot pushed a commit that referenced this pull request Jun 14, 2024
## [11.21.0](v11.20.0...v11.21.0) (2024-06-14)

### Bug Fixes

* allow to pass minRows prop to MessageInput ([#2411](#2411)) ([e6bfd40](e6bfd40))
* memoize addNotification function provided by Channel component ([#2423](#2423)) ([b3734a4](b3734a4))

### Features

* allow to configure date and time format over i18n ([#2419](#2419)) ([cb09dc1](cb09dc1))
@stream-ci-bot
Copy link
Collaborator

🎉 This PR is included in version 11.21.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants