@@ -103,16 +103,16 @@ fun pluralStringResource(tolgee: Tolgee, @PluralsRes id: Int, quantity: Int): St
103103 val translationFlow = (tolgee as ? TolgeeAndroid )?.tPluralFlow(context.resources, id, quantity)
104104 ? : (key ? : TolgeeAndroid .getKeyFromResources(context, id))?.let {
105105 tolgee.tFlow(key = it, parameters = TolgeeMessageParams .Indexed (quantity))
106- } ? : flowOf(androidx.compose.ui.res.pluralStringResource(id, quantity))
106+ } ? : flowOf(androidx.compose.ui.res.pluralStringResource(id, quantity, quantity ))
107107
108108 return translationFlow.collectAsState(
109- initial = androidx.compose.ui.res.pluralStringResource(id, quantity)
109+ initial = androidx.compose.ui.res.pluralStringResource(id, quantity, quantity )
110110 ).value
111111}
112112
113113@Composable
114114fun pluralStringResource (@PluralsRes id : Int , quantity : Int ): String {
115- val instance = Tolgee .instanceOrNull ? : return androidx.compose.ui.res.pluralStringResource(id, quantity)
115+ val instance = Tolgee .instanceOrNull ? : return androidx.compose.ui.res.pluralStringResource(id, quantity, quantity )
116116
117117 return pluralStringResource(instance, id, quantity)
118118}
@@ -127,16 +127,16 @@ fun pluralStringResource(tolgee: Tolgee, @PluralsRes id: Int, quantity: Int, var
127127 val translationFlow = (tolgee as ? TolgeeAndroid )?.tPluralFlow(context.resources, id, quantity, * formatArgs)
128128 ? : (key ? : TolgeeAndroid .getKeyFromResources(context, id))?.let {
129129 tolgee.tFlow(key = it, parameters = TolgeeMessageParams .Indexed (quantity, * formatArgs))
130- } ? : flowOf(androidx.compose.ui.res.pluralStringResource(id, quantity, * formatArgs))
130+ } ? : flowOf(androidx.compose.ui.res.pluralStringResource(id, quantity, quantity, * formatArgs))
131131
132132 return translationFlow.collectAsState(
133- initial = androidx.compose.ui.res.pluralStringResource(id, quantity, * formatArgs)
133+ initial = androidx.compose.ui.res.pluralStringResource(id, quantity, quantity, * formatArgs)
134134 ).value
135135}
136136
137137@Composable
138138fun pluralStringResource (@PluralsRes id : Int , quantity : Int , vararg formatArgs : Any ): String {
139- val instance = Tolgee .instanceOrNull ? : return androidx.compose.ui.res.pluralStringResource(id, quantity, * formatArgs)
139+ val instance = Tolgee .instanceOrNull ? : return androidx.compose.ui.res.pluralStringResource(id, quantity, quantity, * formatArgs)
140140
141141 return pluralStringResource(instance, id, quantity, * formatArgs)
142142}
0 commit comments