From 228e0c3aa0e68eb6294f9513a11966d0e7c54f9d Mon Sep 17 00:00:00 2001 From: vineyardbovines Date: Thu, 2 Apr 2026 10:50:29 -0400 Subject: [PATCH] lingui fix --- src/components/images/Gallery/index.tsx | 14 ++++++-------- src/components/images/Gallery/index.web.tsx | 14 ++++++-------- 2 files changed, 12 insertions(+), 16 deletions(-) diff --git a/src/components/images/Gallery/index.tsx b/src/components/images/Gallery/index.tsx index 93f5f6fec3..8c8482134e 100644 --- a/src/components/images/Gallery/index.tsx +++ b/src/components/images/Gallery/index.tsx @@ -6,9 +6,7 @@ import {type AnimatedRef, useAnimatedRef} from 'react-native-reanimated' import {Image} from 'expo-image' import {type AppBskyEmbedImages} from '@atproto/api' import {utils} from '@bsky.app/alf' -import {msg} from '@lingui/core/macro' -import {useLingui} from '@lingui/react' -import {Trans} from '@lingui/react/macro' +import {Trans, useLingui} from '@lingui/react/macro' import {type Dimensions} from '#/lib/media/types' import {useA11y} from '#/state/a11y' @@ -40,7 +38,7 @@ export function Gallery({ viewContext, }: GalleryProps) { const t = useTheme() - const {_} = useLingui() + const {t: l} = useLingui() const ax = useAnalytics() const {screenReaderEnabled} = useA11y() const largeAltBadge = useLargeAltBadgeEnabled() @@ -118,9 +116,9 @@ export function Gallery({ onPressIn={onPressIn ? () => onPressIn(index) : undefined} accessibilityRole="button" accessibilityLabel={ - image.alt || _(msg`Image ${index + 1} of ${images.length}`) + image.alt || l`Image ${index + 1} of ${images.length}` } - accessibilityHint={_(msg`Opens full image`)} + accessibilityHint={l`Opens full image`} style={[a.flex_1]}> + aria-label={l`Image gallery, ${images.length} images`}> {containerWidth > 0 && ( onPressIn(index) : undefined} accessibilityRole="button" accessibilityLabel={ - image.alt || _(msg`Image ${index + 1} of ${images.length}`) + image.alt || l`Image ${index + 1} of ${images.length}` } - accessibilityHint={_(msg`Opens full image`)} + accessibilityHint={l`Opens full image`} style={[ a.flex_1, a.rounded_md,