Mark `accessibilityLabel` and `accessibilityHint` for translation (#4351)

* mark `accessibilityLabel` and `accessibilityHint` for translation

* lint

* try again
zio/stable
surfdude29 2024-06-04 19:15:28 +01:00 committed by GitHub
parent e4b4d854d6
commit d6b8313932
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 2 deletions

View File

@ -958,6 +958,7 @@ function SearchHistory({
}) {
const {isTabletOrDesktop, isMobile} = useWebMediaQueries()
const pal = usePalette('default')
const {_} = useLingui()
return (
<CenteredView
@ -1010,8 +1011,10 @@ function SearchHistory({
</Link>
<Pressable
accessibilityRole="button"
accessibilityLabel="Remove profile"
accessibilityHint="Remove profile from search history"
accessibilityLabel={_(msg`Remove profile`)}
accessibilityHint={_(
msg`Remove profile from search history`,
)}
onPress={() => onRemoveProfileClick(profile)}
hitSlop={createHitslop(6)}
style={styles.profileRemoveBtn}>