Hii, Can ory support customize message using "@ory...
# general
a
Hii, Can ory support customize message using "@ory/elements-markup" for id '4000006' ?
s
This example uses react, but you can in the same way pass custom translations. Just get the base translation you want and override the key(s) you want to customize.
a
I am using kratos-ui-self-servic-node https://github.com/ory/kratos-selfservice-ui-node/blob/master/README.md if (flow.ui.messages.some(({ id }) => id === 4000006)) { console.log("flow session priyanka --------->", flow.ui.messages); flow.ui.messages = flow.ui.messages.map((message) => { if (message.id === 4000006) { message.text = 'Login Failed' // Use the custom message text } console.log("flow session ===============>", flow.ui.messages); return message; }); } and getting error [@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. Please consider using "@formatjs/cli" to pre-compile your messages for performance.