Skip to content

Conversation

@simonguo
Copy link
Member

fix: #4332

@simonguo simonguo requested a review from Copilot June 26, 2025 10:56
@codesandbox
Copy link

codesandbox bot commented Jun 26, 2025

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

This comment was marked as outdated.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jun 26, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@codecov
Copy link

codecov bot commented Jun 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.20%. Comparing base (11e4ccb) to head (9cef20a).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4333      +/-   ##
==========================================
- Coverage   89.21%   89.20%   -0.01%     
==========================================
  Files         528      528              
  Lines       12550    12548       -2     
  Branches     3216     3216              
==========================================
- Hits        11196    11194       -2     
  Misses        677      677              
  Partials      677      677              
Flag Coverage Δ
ChromeCi 89.15% <100.00%> (-0.01%) ⬇️
Firefox 89.12% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@vercel
Copy link

vercel bot commented Jun 26, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rsuite-nextjs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 27, 2025 1:48am
rsuite-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 27, 2025 1:48am

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the issue reported in #4332 by allowing the locale prop on TimePicker and TimeRangePicker to override the global locale settings.

  • Added tests to verify custom locale rendering for TimePicker and TimeRangePicker.
  • Refactored the locale key mapping in CustomProvider/useCustom.ts to accommodate the changes.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/TimeRangePicker/test/TimeRangePickerSpec.tsx Added custom locale test for TimeRangePicker.
src/TimePicker/test/TimePickerSpec.tsx Added custom locale test for TimePicker including 'now'.
src/CustomProvider/useCustom.ts Renamed and refactored the locale key function.

@simonguo simonguo merged commit 6f66dfd into main Jun 27, 2025
16 checks passed
@simonguo simonguo deleted the fix/time-picker-and-custom-provider branch June 27, 2025 02:24
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.

2 participants