You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To display text I Use the .Humanize()work.WorkType.Humanize() method, when working on debug mode it works as expected pulling the string from the resource file, but on release mode it displays the Description instead, this happens on Android,
haven't tested on iOS.
Is there anything I'm missing?
The text was updated successfully, but these errors were encountered:
For me also doesn't work neither in debug in ASP.NET core. I created Class and I added resx files. If I use IStringLocalizer<Resources.FieldTranslations> it works, but not with Humanize and enums.
This is how I set:
public enum Fields
{
[Display(Description = "CountryId", ResourceType = typeof(Resources.FieldTranslations))]
CountryId
}
This is really great feature to localize enums, but couldn't find any solution of this problem...
I have a Net MAUI 8 app, and I'm using Humanizer.Core and Humanizer.Core.es V2.14.1 and I only have one resource file
I have enums like this
public enum WorkType { [Display(Description = "Homework", ResourceType = typeof(AppResources))] Homework, [Display(Description = "ClassWork", ResourceType = typeof(AppResources))] ClassWork }
To display text I Use the .Humanize()
work.WorkType.Humanize()
method, when working on debug mode it works as expected pulling the string from the resource file, but on release mode it displays the Description instead, this happens on Android,haven't tested on iOS.
Is there anything I'm missing?
The text was updated successfully, but these errors were encountered: