Translating error messages returend by okta-auth-js


We use the the okta-auth-js package to sign our users in to our web app. We allow our users to set the language they see our app in using i18next.

We are trying to translate the error messages returned via okta-auth-js during log in to display in the language that the user has selected in OUR app.

We dont use the okta-signin-widget and our users dont have access to the Okta console. So cannot use either of those approaches to set their language.

Any one know how we can set the language for the response error messages to given in using okta-auth-js?

I notice in okta-signin-widget repository there is a list of error messages. Does anyone also if there is similar for okta-auth-js?


For auth-js there is not that I am aware of.