Skip to content

How to change language on buttons/fields #157

Answered by Benehiko
pedrodgoes asked this question in Q&A
Discussion options

You must be logged in to vote

I have sent this in Slack, but will also paste it here for others to see.

We have built in translations with the Ory Account Experience and Ory Elements. They should already work out of the box by setting the preferred language you would like in the <IntlProvider> component.

Like so

<IntlProvider locale="pt" />

To customize the labels, however, you would need to provide your own translation file
In your case you can see the ID label can be changed by providing a value for this key https://github.com/ory/elements/blob/main/src/locales/en.json#L61

See below for a screenshot of the translation in Portuguese of the sign in page.

We also already provide Portuguese out of the box here https://…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Benehiko
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