Skip to content

Commit

Permalink
Merge pull request #6267 from Expensify/monil-fixLanguagePicker
Browse files Browse the repository at this point in the history
Fix language selector
  • Loading branch information
MariaHCD authored Nov 9, 2021
2 parents 777b158 + 829f00d commit e230e7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/LocalePicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ const LocalePicker = (props) => {

return (
<ExpensiPicker
label={props.size === 'normal' ? translate('preferencesPage.language') : null}
label={props.size === 'normal' ? translate(props.preferredLocale, 'preferencesPage.language') : null}
onChange={(locale) => {
if (locale === props.preferredLocale) {
return;
}

setLocale();
setLocale(locale);
}}
items={_.values(localesToLanguages)}
size={props.size}
Expand Down

0 comments on commit e230e7e

Please sign in to comment.