Bluesky app fork with some witchin' additions 馃挮
at feat/tealfm 56 lines 1.5 kB view raw
1import {useMemo} from 'react' 2import {msg} from '@lingui/macro' 3import {useLingui} from '@lingui/react' 4 5export type GlobalLabelStrings = Record< 6 string, 7 { 8 name: string 9 description: string 10 } 11> 12 13export function useGlobalLabelStrings(): GlobalLabelStrings { 14 const {_} = useLingui() 15 return useMemo( 16 () => ({ 17 '!hide': { 18 name: _(msg`Content Blocked`), 19 description: _(msg`This content has been hidden by the moderators.`), 20 }, 21 '!warn': { 22 name: _(msg`Content Warning`), 23 description: _( 24 msg`This content has received a general warning from moderators.`, 25 ), 26 }, 27 '!no-unauthenticated': { 28 name: _(msg`Sign-in Required`), 29 description: _( 30 msg`This user has requested that their content only be shown to signed-in users.`, 31 ), 32 }, 33 porn: { 34 name: _(msg`Adult Content`), 35 description: _(msg`Explicit sexual images.`), 36 }, 37 sexual: { 38 name: _(msg`Sexually Suggestive`), 39 description: _(msg`Does not include nudity.`), 40 }, 41 nudity: { 42 name: _(msg`Non-sexual Nudity`), 43 description: _(msg`E.g. artistic nudes.`), 44 }, 45 'graphic-media': { 46 name: _(msg`Graphic Media`), 47 description: _(msg`Explicit or potentially disturbing media.`), 48 }, 49 gore: { 50 name: _(msg`Graphic Media`), 51 description: _(msg`Explicit or potentially disturbing media.`), 52 }, 53 }), 54 [_], 55 ) 56}