localizing-wpf-applications

Solid

Localizes WPF applications using resource files, x:Uid, and BAML localization. Use when building multi-language applications or supporting right-to-left layouts.

Web & Frontend 40 stars 6 forks Updated 6 days ago MIT

Install

View on GitHub

Quality Score: 78/100

Stars 20%
54
Recency 20%
100
Frontmatter 20%
40
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# WPF Localization Patterns Implementing multi-language support in WPF applications. ## 1. Localization Overview ``` Localization Approaches ├── Resource Files (.resx) │ ├── Simple string lookup │ └── Strongly-typed access ├── BAML Localization │ ├── x:Uid attributes │ └── LocBaml tool └��─ Runtime Features ├── FlowDirection (RTL support) ├── Culture-aware formatting └── Dynamic language switching ``` --- ## 2. Resource File Approach ### 2.1 Creating Resource Files ``` Project Structure: ├── Properties/ │ └── Resources.resx (default/fallback) ├── Resources/ │ ├── Strings.resx (default English) │ ├── Strings.ko-KR.resx (Korean) │ ├── Strings.ja-JP.resx (Japanese) │ └── Strings.de-DE.resx (German) ``` ### 2.2 Resource File Content **Strings.resx (English - default):** ```xml <data name="AppTitle" xml:space="preserve"> <value>My Application</value> </data> <data name="WelcomeMessage" xml:space="preserve"> <value>Welcome, {0}!</value> </data> <data name="SaveButton" xml:space="preserve"> <value>Save</value> </data> <data name="CancelButton" xml:space="preserve"> <value>Cancel</value> </data> ``` **Strings.ko-KR.resx (Korean):** ```xml <data name="AppTitle" xml:space="preserve"> <value>My Application (Korean translation)</value> </data> <data name="WelcomeMessage" xml:space="preserve"> <value>Welcome, {0}! (Korean translation)</value> </data> <data name="SaveButton" xml:space="preser...

Details

Author
christian289
Repository
christian289/dotnet-with-claudecode
Created
7 months ago
Last Updated
6 days ago
Language
C#
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category