dotnet / dotnet/docs-maui

Localization of MAUI Windows UWP app – Replacing `x-generate` with individual languages required?

Open
#3,069 0 comments 0 reactions 0 assignees View on GitHub
:watch: Not Triaged dotnet-maui/subsvc dotnet-mobile/svc Pri2
Dominant language
No language data
Stars
282
Forks
265
Avg merge
2d 2h
Merged PRs (30d)
19

Description

### Type of issue

Missing information

### Description

On the Localization page, in the [Windows](https://learn.microsoft.com/en-us/dotnet/maui/fundamentals/localization#windows) paragraph, it reads:

> Replace `` with `` elements for each of your supported languages

However, on the [Resource page for UWP apps](https://learn.microsoft.com/en-us/uwp/schemas/appxpackage/uapmanifestschema/element-resource#remarks) it reads:

> If you have string/image/file resources in your Visual Studio project that have language qualifiers in their names (see [Tailor your resources for language, scale, high contrast, and other qualifiers](https://learn.microsoft.com/en-us/windows/uwp/app-resources/tailor-resources-lang-scale-contrast?branch=live)), then you can put the following in your app package manifest source file (`Package.appxmanifest`).
> ```xml
>
>
>
> ```

What's right?

For MAUI, do we need to manually replace the `x-generate` value with explicit language identifiers or will they automatically be generated if any localized resources are found in the MAUI project?

### Page URL

https://learn.microsoft.com/en-us/dotnet/maui/fundamentals/localization?view=net-maui-9.0

### Content source URL

https://github.com/dotnet/docs-maui/blob/main/docs/fundamentals/localization.md

### Document Version Independent Id

ce02582a-559e-5276-761c-d4bcb33c68ae

### Platform Id

9d01bc14-53fa-e691-7825-0370e6127001

### Article author

@davidortinau

### Metadata

* ID: ce02582a-559e-5276-761c-d4bcb33c68ae
* PlatformId: 9d01bc14-53fa-e691-7825-0370e6127001
* Service: **dotnet-mobile**
* Sub-service: **dotnet-maui**

[Related Issues](https://github.com/dotnet/docs-maui/issues?q=is%3Aissue+is%3Aopen+ce02582a-559e-5276-761c-d4bcb33c68ae)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.