Skip to content

Fix the typo in Template section of BitCalendar demo (#12278)#12279

Merged
msynk merged 1 commit into
bitfoundation:developfrom
zahra-yousefi:12278-calendar-demo-template-typo
Apr 25, 2026
Merged

Fix the typo in Template section of BitCalendar demo (#12278)#12279
msynk merged 1 commit into
bitfoundation:developfrom
zahra-yousefi:12278-calendar-demo-template-typo

Conversation

@zahra-yousefi
Copy link
Copy Markdown
Member

@zahra-yousefi zahra-yousefi commented Apr 25, 2026

closes #12278

Summary by CodeRabbit

  • Bug Fixes
    • Fixed an issue in the Calendar component demo where the culture setting was not being correctly applied to month name abbreviations, ensuring localized date formatting displays properly.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 25, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 50f1a845-f4e7-4fa5-9944-68ee6efefe89

📥 Commits

Reviewing files that changed from the base of the PR and between e221f58 and a15bd69.

📒 Files selected for processing (1)
  • src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/Calendar/BitCalendarDemo.razor.samples.cs

Walkthrough

Fixed a variable name casing error in the BitCalendar demo where Culture was incorrectly used instead of the lowercase culture variable in the MonthCellTemplate sample code.

Changes

Cohort / File(s) Summary
BitCalendar Demo Fix
src/BlazorUI/Demo/Client/.../BitCalendarDemo.razor.samples.cs
Corrected variable reference in MonthCellTemplate from Culture to culture for proper scope binding.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 A typo caught with careful eye,
The capital C was way too high!
Now culture shines in lowercase light,
The demo code is set aright! ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: fixing a typo in the BitCalendar demo template section by correcting the variable name from 'Culture' to 'culture'.
Linked Issues check ✅ Passed The pull request directly addresses the objective in issue #12278 by correcting the misspelled 'culture' variable in the BitCalendar demo Template section.
Out of Scope Changes check ✅ Passed The change is narrowly scoped to fixing the variable name typo in the demo file, with no unrelated modifications or out-of-scope changes detected.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
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

Fixes a typo in the BitCalendar demo’s Templates sample snippet so it matches the actual demo component code-behind variable name.

Changes:

  • Corrects @Culture... to @culture... in the MonthCellTemplate sample code.

@msynk msynk merged commit 8a0bfd2 into bitfoundation:develop Apr 25, 2026
7 checks passed
@zahra-yousefi zahra-yousefi deleted the 12278-calendar-demo-template-typo branch April 25, 2026 20:22
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.

The Template section of the BitCalendar demo page has a typo

3 participants