Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add plural formatting for `STARTER_PACK_MAX_SIZE` toast (#8000)

* add plural formatting for starter pack max size toast

* tweak

* try again

authored by

surfdude29 and committed by
GitHub
7a041da3 ffbcbf81

+4 -3
+4 -3
src/screens/StarterPack/Wizard/State.tsx
··· 1 1 import React from 'react' 2 2 import {AppBskyGraphDefs, AppBskyGraphStarterpack} from '@atproto/api' 3 3 import {GeneratorView} from '@atproto/api/dist/client/types/app/bsky/feed/defs' 4 - import {msg} from '@lingui/macro' 4 + import {msg, plural} from '@lingui/macro' 5 5 6 6 import {STARTER_PACK_MAX_SIZE} from '#/lib/constants' 7 7 import {useSession} from '#/state/session' ··· 73 73 case 'AddProfile': 74 74 if (state.profiles.length > STARTER_PACK_MAX_SIZE) { 75 75 Toast.show( 76 - msg`You may only add up to ${STARTER_PACK_MAX_SIZE} profiles` 77 - .message ?? '', 76 + msg`You may only add up to ${plural(STARTER_PACK_MAX_SIZE, { 77 + other: `${STARTER_PACK_MAX_SIZE} profiles`, 78 + })}`.message ?? '', 78 79 'info', 79 80 ) 80 81 } else {