Skip to content

Customizable error messages output #747

Answered by vinckr
insotriplesix asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @5aboteur,
is your use case related to this: ory/kratos#1348 ?

To quote:

This is not really solved in kratos, but should rather be solved in your UI.
You can just map the response you get to some translation you actually want to display.

Right now we just have IDs so you can map messages to your own strings. You have to interpret the context on your own and we don't have a neat overview over all the IDs and associated contexts. The message you see is just a sensible default you can display if you don't want to bother rewriting all the messages. [...] Everything happens in the text package, including all the constants.

Let me know if that helps! 🐝

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@insotriplesix
Comment options

@vinckr
Comment options

@insotriplesix
Comment options

Answer selected by vinckr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants