I'm trying to use resource files in my Xamarin Forms project but I'm not sure how to reference the file string. Ex: <Label Text="MyApp.Resources.MinhaString" />
.
Does anyone know how to do it?
I'm trying to use resource files in my Xamarin Forms project but I'm not sure how to reference the file string. Ex: <Label Text="MyApp.Resources.MinhaString" />
.
Does anyone know how to do it?
Follow the procedure described in link and access the resource file using the TranslateExtension class .
Ex: <Button Text="{i18n:TranslateExtension Text=AddButton}" />
or to be less verbose hide the word extension <Button Text="{i18n:Translate Text=AddButton}" />