❔ Access Resources File
Hey, sorry to bother - quick question. I created a EmailResources.resx file inside a "Resources" folder, where I have the Name-Value pair of "ConfirmationEmailSubject" - "Verify Your Email Address".
On Program.cs I have:
On the controller I have instantiated the _localizer (private readonly IStringLocalizer<AuthController> _localizer), I have tried to do:
All of these are returning "ConfirmationEmailSubject" instead of "Verify Your Email Address". What am I doing wrong?
There's a lot of things I've tried on Program.cs. Still cannot do it.
3 Replies
Did you set the build properties of the folder/resource file?
Yes, it was build as a embedded resource.
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.