Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

localization support? #152

Open
cdarrigo opened this issue Oct 22, 2021 · 3 comments
Open

localization support? #152

cdarrigo opened this issue Oct 22, 2021 · 3 comments

Comments

@cdarrigo
Copy link

Does this package support localizing (via .resx files) the messages and titles of the problem details?
I couldn't tell from the source code, and found no examples doing this.
Thanks.

@khellang
Copy link
Owner

It should, but I haven't tested it myself. It's kinda up to you how you map status codes and exceptions to problem responses. The defaults only have a single localizable string, which is the title, which is just the default HTTP reason phrase.

@pampua84
Copy link

pampua84 commented Sep 8, 2022

Hi,
I'm also trying to solve the same problem, but the localization doesn't seem to work, I'm using the ProblemDetails class.

@khellang
Copy link
Owner

Can you provide an example of the string you want to localize?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants