Bluesky app fork with some witchin' additions 💫 witchsky.app
bluesky fork client

Make ALT labels translatable (#9976)

authored by

smileyhead and committed by
GitHub
9746dd8e 8e2a5abf

+4 -2
+2 -1
src/components/images/AutoSizedImage.tsx
··· 9 9 import {utils} from '@bsky.app/alf' 10 10 import {msg} from '@lingui/core/macro' 11 11 import {useLingui} from '@lingui/react' 12 + import {Trans} from '@lingui/react/macro' 12 13 13 14 import {type Dimensions} from '#/lib/media/types' 14 15 import {useLargeAltBadgeEnabled} from '#/state/preferences/large-alt-badge' ··· 186 187 ], 187 188 ]}> 188 189 <Text style={[a.font_bold, largeAlt ? a.text_xs : {fontSize: 8}]}> 189 - ALT 190 + <Trans>ALT</Trans> 190 191 </Text> 191 192 </View> 192 193 )}
+2 -1
src/components/images/Gallery.tsx
··· 5 5 import {utils} from '@bsky.app/alf' 6 6 import {msg} from '@lingui/core/macro' 7 7 import {useLingui} from '@lingui/react' 8 + import {Trans} from '@lingui/react/macro' 8 9 9 10 import {type Dimensions} from '#/lib/media/types' 10 11 import {useLargeAltBadgeEnabled} from '#/state/preferences/large-alt-badge' ··· 116 117 ]}> 117 118 <Text 118 119 style={[a.font_bold, largeAltBadge ? a.text_xs : {fontSize: 8}]}> 119 - ALT 120 + <Trans>ALT</Trans> 120 121 </Text> 121 122 </View> 122 123 ) : null}