Skip to content

Commit

Permalink
fix: long accessibility label (#1043)
Browse files Browse the repository at this point in the history
Signed-off-by: Jason C. Leach <[email protected]>
  • Loading branch information
jleach authored Dec 14, 2023
1 parent e4c23aa commit e3dc111
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
2 changes: 0 additions & 2 deletions packages/legacy/core/App/localization/en/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,6 @@ const translation = {
"Welcome": "Welcome",
"Notification": "Notification",
"Notifications": "Notifications",
"OneNotification": "1 Notification",
"CountNotifications": "{{ count }} Notifications",
"NoNewUpdates": "You have no new notifications.",
"NoCredentials": "You have no credentials in your wallet.",
"SeeAll": "See all",
Expand Down
2 changes: 0 additions & 2 deletions packages/legacy/core/App/localization/fr/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,6 @@ const translation = {
"Welcome": "Bienvenue",
"Notification": "Notification",
"Notifications": "Notifications",
"OneNotification": "1 Notification",
"CountNotifications": "{{ count }} Notification",
"NoNewUpdates": "Vous n'avez pas de nouvelles notifications.",
"NoCredentials": "Vous n'avez pas de justificatifs dans votre portefeuille.",
"SeeAll": "Voir tout",
Expand Down
4 changes: 1 addition & 3 deletions packages/legacy/core/App/navigators/TabStack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@ const TabStack: React.FC = () => {
</AttachTourStep>
),
tabBarShowLabel: false,
tabBarAccessibilityLabel: `${t('TabStack.Home')} (${
total === 1 ? t('Home.OneNotification') : t('Home.CountNotifications', { count: total || 0 })
})`,
tabBarAccessibilityLabel: `${t('TabStack.Home')} (${total ?? 0})`,
tabBarTestID: testIdWithKey(t('TabStack.Home')),
tabBarBadge: total || undefined,
tabBarBadgeStyle: {
Expand Down

0 comments on commit e3dc111

Please sign in to comment.