I am unable to implement translation in the Windows 10 Universal (UWP) apps.
I have created a folder and created the .resw resource file, with the following structure Resources/es-ES/Resources.resw inside Resources.resw I only have String1 with the value "Hello World" and in the XAML template I indicate the loading of the resource with x:Uid <TextBlock x:Uid="String1" text="hi" />
But when I compile the text it shows hi , which is the one specified initially, as I can show Hello World , the device language is already specified in Spanish from Spain, that is, use "es-ES"
Solved!
The translation of resources in universal windows 10 applications (UWP), in the identifier of the translation resource, in addition to specifying an identifier, you must specify which property it will affect, that is, if the recipient is a user,
textblock
to change the text it is required to modify the propertytext
, so insideResources.resw
idRecurso.Text
and the value to replace.Resources.resw
In the XAML layout, the relationship with the resource must be specified with
x:Uid
: