Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Adds runtime, in-app localization support to the WPF UI by introducing a central LocalizationService, persisting language selection, and replacing hard-coded UI strings with localized bindings.
Changes:
- Introduce
LocalizationService(with language switching + in-memory resources) andUserPreferencesService(persist language selection). - Update XAML pages to bind UI text to
LocalizationService.Instance[...]and add a language selector to Settings. - Localize key ViewModel-driven strings (navigation, status text, dialogs, notifications) and add a converter for localized null/empty fallbacks.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| ContextMenuProfiler.UI/Views/Pages/SettingsPage.xaml | Localizes Settings UI strings and adds Language selection UI. |
| ContextMenuProfiler.UI/Views/Pages/DashboardPage.xaml | Replaces many hard-coded strings with localized bindings; adds localized null/empty converter usage. |
| ContextMenuProfiler.UI/ViewModels/SettingsViewModel.cs | Adds language option list + selection logic; localizes Explorer restart dialog strings. |
| ContextMenuProfiler.UI/ViewModels/MainWindowViewModel.cs | Localizes title/menu/tray items and reacts to runtime language changes. |
| ContextMenuProfiler.UI/ViewModels/DashboardViewModel.cs | Localizes status strings and category labels; updates localization-change behavior. |
| ContextMenuProfiler.UI/MainWindow.xaml | Localizes status-bar version text via localization service binding. |
| ContextMenuProfiler.UI/Core/Services/UserPreferencesService.cs | New JSON-based preferences persistence (language code). |
| ContextMenuProfiler.UI/Core/Services/LocalizationService.cs | New localization singleton with indexer-based resource lookup + runtime language switching. |
| ContextMenuProfiler.UI/Converters/NullOrEmptyToLocalizedConverter.cs | New converter to replace null/empty display values with localized placeholders. |
| ContextMenuProfiler.UI/App.xaml.cs | Initializes localization from saved preferences at startup. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.