Skip to content

fix(statistics): Re-render MonthNavigator when language changes#5614

Closed
yuhanzhagn wants to merge 1 commit intousememos:mainfrom
yuhanzhagn:fix/calendar-i18n-refresh
Closed

fix(statistics): Re-render MonthNavigator when language changes#5614
yuhanzhagn wants to merge 1 commit intousememos:mainfrom
yuhanzhagn:fix/calendar-i18n-refresh

Conversation

@yuhanzhagn
Copy link

Description

Fixes the issue where MonthNavigator fails to update its display text when the language is toggled. By passing i18n.language as a prop, we force a re-render to ensure dayjs re-formats the date with the active locale.

Related Issue

Fixes #5578

Changes

  • Pass i18n.language to MonthNavigator in StatisticsView.
  • Update MonthNavigatorProps to accept language string.

Testing

  1. Open Statistics page.
  2. Toggle language.
  3. Confirm month title updates immediately.

@boojack boojack force-pushed the main branch 2 times, most recently from a196c72 to 71e8a06 Compare February 10, 2026 01:15
@boojack boojack self-requested a review as a code owner February 24, 2026 14:23
@boojack boojack force-pushed the main branch 2 times, most recently from 2b6b987 to 47d9414 Compare February 24, 2026 14:54
@boojack boojack added the Stale label Mar 4, 2026
@boojack boojack closed this Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Change the translation message of calendar title immediately when change language

2 participants