Mark `accessibilityLabel` and `accessibilityHint` for translation (#4351)
* mark `accessibilityLabel` and `accessibilityHint` for translation * lint * try againzio/stable
parent
e4b4d854d6
commit
d6b8313932
|
@ -958,6 +958,7 @@ function SearchHistory({
|
||||||
}) {
|
}) {
|
||||||
const {isTabletOrDesktop, isMobile} = useWebMediaQueries()
|
const {isTabletOrDesktop, isMobile} = useWebMediaQueries()
|
||||||
const pal = usePalette('default')
|
const pal = usePalette('default')
|
||||||
|
const {_} = useLingui()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<CenteredView
|
<CenteredView
|
||||||
|
@ -1010,8 +1011,10 @@ function SearchHistory({
|
||||||
</Link>
|
</Link>
|
||||||
<Pressable
|
<Pressable
|
||||||
accessibilityRole="button"
|
accessibilityRole="button"
|
||||||
accessibilityLabel="Remove profile"
|
accessibilityLabel={_(msg`Remove profile`)}
|
||||||
accessibilityHint="Remove profile from search history"
|
accessibilityHint={_(
|
||||||
|
msg`Remove profile from search history`,
|
||||||
|
)}
|
||||||
onPress={() => onRemoveProfileClick(profile)}
|
onPress={() => onRemoveProfileClick(profile)}
|
||||||
hitSlop={createHitslop(6)}
|
hitSlop={createHitslop(6)}
|
||||||
style={styles.profileRemoveBtn}>
|
style={styles.profileRemoveBtn}>
|
||||||
|
|
Loading…
Reference in New Issue