Open voroninp opened 1 month ago
Here's the place in constructor of ResourceManagerStringLocalizerFactory
which causes the issue:
if (!string.IsNullOrEmpty(_resourcesRelativePath))
{
_resourcesRelativePath = _resourcesRelativePath.Replace(Path.AltDirectorySeparatorChar, '.')
.Replace(Path.DirectorySeparatorChar, '.') + ".";
}
Is there an existing issue for this?
Describe the bug
If I use trainling slash:
IStringLocalizer
cannot find resources. If I omit the slash, everything works fine.Expected Behavior
Trainling slash should not affect the behavior.
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
8.0.303
Anything else?
No response