Skip to content

Localization: document NeutralLanguage typo fix and runtime culture switching pattern#3266

Open
sheiksyedm wants to merge 1 commit intodotnet:mainfrom
sheiksyedm:fix/localization-runtime-culture-switching-3255
Open

Localization: document NeutralLanguage typo fix and runtime culture switching pattern#3266
sheiksyedm wants to merge 1 commit intodotnet:mainfrom
sheiksyedm:fix/localization-runtime-culture-switching-3255

Conversation

@sheiksyedm
Copy link
Copy Markdown
Contributor

  • Fix typo 'don'y' -> 'don't' in NeutralLanguage warning.
  • Add 'Switch language at runtime' section with the LocalizationResourceManager pattern (INotifyPropertyChanged singleton with indexer) that allows in-app language switching without restarting.
  • Document XAML indexer binding pattern as alternative to x:Static.
  • Document SetCulture() usage and note about platform controls that cache native text needing manual refresh.

Fixes #3255

…witching pattern

- Fix typo 'don'y' -> 'don't' in NeutralLanguage warning.
- Add 'Switch language at runtime' section with the
  LocalizationResourceManager pattern (INotifyPropertyChanged singleton
  with indexer) that allows in-app language switching without restarting.
- Document XAML indexer binding pattern as alternative to x:Static.
- Document SetCulture() usage and note about platform controls that
  cache native text needing manual refresh.

Fixes dotnet#3255
@learn-build-service-prod
Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod
Copy link
Copy Markdown
Contributor

Learn Build status updates of commit 04cbe7b:

✅ Validation status: passed

File Status Preview URL Details
docs/fundamentals/localization.md ✅Succeeded View (>=net-maui-8.0)

For more details, please refer to the build report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Localization: document NeutralLanguage requirement and runtime culture switching pattern

1 participant