Skip to content

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

@SetTrend

Description

@SetTrend

Type of issue

Missing information

Description

On the Localization page, in the Windows paragraph, it reads:

Replace <Resource Language="x-generate"> with <Resource /> elements for each of your supported languages

However, on the Resource page for UWP apps 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), then you can put the following in your app package manifest source file (Package.appxmanifest).

<Resources>
  <Resource Language="x-generate" />
</Resources>

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions