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