diff --git a/src/components/Onfido/BaseOnfidoWeb.js b/src/components/Onfido/BaseOnfidoWeb.js index 12eea80fa87c..389ff903ebf1 100644 --- a/src/components/Onfido/BaseOnfidoWeb.js +++ b/src/components/Onfido/BaseOnfidoWeb.js @@ -104,7 +104,17 @@ class Onfido extends React.Component { onModalRequestClose: () => { Log.hmmm('Onfido user closed the modal'); }, - language: this.props.preferredLocale, + language: { + locale: this.props.preferredLocale, + + // Provide a custom phrase for the back button so that the first letter is capitalized, + // and translate the phrase while we're at it. See the issue and documentation for more context. + // https://github.com/Expensify/App/issues/17244 + // https://documentation.onfido.com/sdk/web/#custom-languages + phrases: { + 'generic.back': this.props.translate('common.back'), + }, + }, }); window.addEventListener('userAnalyticsEvent', (event) => {