Skip to content

Add localization infrastructure for context menu strings for TextInput and Text#15733

Open
iamAbhi-916 wants to merge 6 commits intomicrosoft:mainfrom
iamAbhi-916:localization-context-menu-strings
Open

Add localization infrastructure for context menu strings for TextInput and Text#15733
iamAbhi-916 wants to merge 6 commits intomicrosoft:mainfrom
iamAbhi-916:localization-context-menu-strings

Conversation

@iamAbhi-916
Copy link
Contributor

@iamAbhi-916 iamAbhi-916 commented Mar 6, 2026

Description

Add localization infrastructure for user-facing strings

Type of Change

  • New feature (non-breaking change which adds functionality)

Why

Hardcoded L"Cut" / L"Copy" etc. can't be translated. Loading from a STRINGTABLE resource
enables future multi-language support via MUI satellite DLLs — no code changes needed to add translations.

Resolves #15480

What

Replaced hardcoded English strings ("Cut", "Copy", "Paste", "Select All") in TextInput and Text context menus
with localized strings loaded from a Win32 STRINGTABLE resource at runtime.

Screenshots

Screenshot 2026-03-06 130009 Screenshot 2026-03-06 130031

Testing

Tested in playground

Changelog

Should this change be included in the release notes: _indicate yes

Add a brief summary of the change to use in the release notes for the next release.
Adds localization infrastructure for context menu strings for TextInput and Text Components

Microsoft Reviewers: Open in CodeFlow

@iamAbhi-916 iamAbhi-916 requested a review from a team as a code owner March 6, 2026 07:51
@iamAbhi-916 iamAbhi-916 requested a review from a team as a code owner March 6, 2026 08:42
Copy link
Contributor

@acoates-ms acoates-ms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is the resource dll? Who packages it? What changes need to happen in the template to support this? What language settings does it use? What infra is going to generate the localized strings?

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: Author Feedback The issue/PR needs activity from its author (label drives bot activity) label Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs: Author Feedback The issue/PR needs activity from its author (label drives bot activity)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add localization infrastructure for user-facing strings in RNW

3 participants