Skip to content

Commit

Permalink
use translate
Browse files Browse the repository at this point in the history
  • Loading branch information
twilight2294 authored Mar 8, 2025
1 parent edb08fd commit 734f89a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,7 @@ const translations = {
validate: 'Validate',
expenseReports: 'Expense Reports',
rateOutOfPolicy: 'Rate out of policy',
editYourProfile: 'Edit your profile',
},
supportalNoAccess: {
title: 'Not so fast',
Expand Down
1 change: 1 addition & 0 deletions src/languages/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,7 @@ const translations = {
validate: 'Validar',
expenseReports: 'Informes de Gastos',
rateOutOfPolicy: 'Tasa fuera de póliza',
editYourProfile: 'Edita tu perfil',
},
supportalNoAccess: {
title: 'No tan rápido',
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ProfilePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ function ProfilePage({route}: ProfilePageProps) {
{isCurrentUser && (
<MenuItem
shouldShowRightIcon
title={'Edit your Profile'} // This wil be trasnalted in es.ts file as well
title={translate('common.editYourProfile')}
icon={Expensicons.Pencil}
onPress={() => Navigation.navigate(ROUTES.SETTINGS_PROFILE.getRoute(Navigation.getActiveRoute()))}
/>
Expand Down

0 comments on commit 734f89a

Please sign in to comment.