File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/screens/StarterPack/Wizard Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 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,8 +73,9 @@ function reducer(state: State, action: Action): State {
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 {
You can’t perform that action at this time.
0 commit comments