Use plural forms
This commit is contained in:
parent
b5fe5487ef
commit
e75413b962
2 changed files with 18 additions and 6 deletions
|
@ -383,10 +383,14 @@ export const CategoryDetails: React.StatelessComponent<
|
||||||
>
|
>
|
||||||
<DialogContentText>
|
<DialogContentText>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
defaultMessage="Are you sure you want to remove {number} categories?"
|
defaultMessage="Are you sure you want to remove {counter, plural,
|
||||||
|
one {this attribute}
|
||||||
|
other {{displayQuantity} categories}
|
||||||
|
}?"
|
||||||
id="categoryDetailsDeleteCategoriesDialogContent"
|
id="categoryDetailsDeleteCategoriesDialogContent"
|
||||||
values={{
|
values={{
|
||||||
number: (
|
counter: params.ids.length,
|
||||||
|
displayQuantity: (
|
||||||
<strong>{params.ids.length}</strong>
|
<strong>{params.ids.length}</strong>
|
||||||
)
|
)
|
||||||
}}
|
}}
|
||||||
|
@ -421,10 +425,14 @@ export const CategoryDetails: React.StatelessComponent<
|
||||||
{" "}
|
{" "}
|
||||||
<DialogContentText>
|
<DialogContentText>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
defaultMessage="Are you sure you want to remove {number} products?"
|
defaultMessage="Are you sure you want to remove {counter, plural,
|
||||||
|
one {this attribute}
|
||||||
|
other {{displayQuantity} products}
|
||||||
|
}?"
|
||||||
id="categoryDetailsDeleteProductsDialogContent"
|
id="categoryDetailsDeleteProductsDialogContent"
|
||||||
values={{
|
values={{
|
||||||
number: (
|
counter: params.ids.length,
|
||||||
|
displayQuantity: (
|
||||||
<strong>{params.ids.length}</strong>
|
<strong>{params.ids.length}</strong>
|
||||||
)
|
)
|
||||||
}}
|
}}
|
||||||
|
|
|
@ -134,10 +134,14 @@ export const CategoryList: React.StatelessComponent<CategoryListProps> = ({
|
||||||
variant="delete"
|
variant="delete"
|
||||||
>
|
>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
defaultMessage="Are you sure you want to remove {number} categories?"
|
defaultMessage="Are you sure you want to remove {counter, plural,
|
||||||
|
one {this attribute}
|
||||||
|
other {{displayQuantity} categories}
|
||||||
|
}?"
|
||||||
id="categoryListDeleteCategoriesDialogContent"
|
id="categoryListDeleteCategoriesDialogContent"
|
||||||
values={{
|
values={{
|
||||||
number: <strong>{params.ids.length}</strong>
|
counter: params.ids.length,
|
||||||
|
displayQuantity: <strong>{params.ids.length}</strong>
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<DialogContentText>
|
<DialogContentText>
|
||||||
|
|
Loading…
Reference in a new issue