Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideAligns tutorials navigation and pages with proper localization resources and updates the Memorial tutorial sample to use localized text, with corresponding locale entries added/updated. File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8023 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 766 766
Lines 34123 34123
Branches 4692 4692
=========================================
Hits 34123 34123
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
Updates the Tutorials documentation/sample experience in the BootstrapBlazor.Server site by moving/adding localization strings used by the Tutorials navigation and pages, and by localizing the new “Memorial” tutorial sample UI.
Changes:
- Moved Tutorials page summary strings into the
TutorialsNavMenulocalization section and removed the oldPages.Tutorialssection (en-US / zh-CN). - Localized
Memorial.razorUI text viaIStringLocalizer<Memorial>and added corresponding locale entries. - Updated
Tutorials.razorandTutorialsNavMenu.razor.csto use the new localization mapping.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/BootstrapBlazor.Server/Locales/zh-CN.json | Adds/moves Tutorials + Memorial localization keys in zh-CN. |
| src/BootstrapBlazor.Server/Locales/en-US.json | Adds/moves Tutorials + Memorial localization keys in en-US. |
| src/BootstrapBlazor.Server/Components/Samples/Tutorials/Memorial.razor | Replaces hardcoded UI strings with localized strings for the Memorial tutorial. |
| src/BootstrapBlazor.Server/Components/Pages/Tutorials.razor | Switches Tutorials page localization to the updated resource group. |
| src/BootstrapBlazor.Server/Components/Layout/TutorialsNavMenu.razor.cs | Simplifies nav menu localization injection and uses the new localizer source. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| @layout TutorialsLayout | ||
| @page "/tutorials" | ||
| @inject IStringLocalizer<Tutorials> Localizer | ||
| @inject IStringLocalizer<TutorialsNavMenu> Localizer |
| [Inject] | ||
| [NotNull] | ||
| private IStringLocalizer<Tutorials>? TutorialsLocalizer { get; set; } | ||
|
|
||
| [Inject] | ||
| [NotNull] | ||
| private IStringLocalizer<Tutorials>? Localizer { get; set; } | ||
| private IStringLocalizer<TutorialsNavMenu>? Localizer { get; set; } |
Link issues
fixes #8022
Summary By Copilot
Regression?
Risk
Verification
Packaging changes reviewed?
☑️ Self Check before Merge
Summary by Sourcery
Localize tutorials navigation and sample content using component-specific resource scopes and update tutorial UI text to be driven by localization resources.
Enhancements:
Documentation: