diff --git a/docs-templates/api/components/plural.mdx b/docs-templates/api/components/plural.mdx index 18c95793..67c3c79b 100644 --- a/docs-templates/api/components/plural.mdx +++ b/docs-templates/api/components/plural.mdx @@ -14,8 +14,8 @@ In other languages, you have to define up to six. ```jsx const count = 1; You have one item.} + other={<>You have some items.} /> ``` @@ -95,8 +95,8 @@ import { Plural } from '__PACKAGE_NAME__'; export default function ItemCount({ count }) { return ( You have one item.} + other={<>You have some items.} /> ); } @@ -111,7 +111,7 @@ import { Plural } from '__PACKAGE_NAME__'; export default function ItemCount({ count }) { return ( You have one item.} > You have some items. // [!code highlight] @@ -129,9 +129,10 @@ export default function ItemCount({ count }) { return ( You have an item.} // [!code highlight] + other={<>You have some items.} // [!code highlight] /> + ); } ``` @@ -145,8 +146,8 @@ import { T, Plural, Num } from '__PACKAGE_NAME__'; export default function ItemCount({ count }) { return ( {count} item.} // [!code highlight] - other={You have {count} items.} // [!code highlight] + one={<>You have {count} item.} // [!code highlight] + other={<>You have {count} items.} // [!code highlight] /> ); } @@ -156,8 +157,8 @@ When inside of a `` component, wrap all dynamic content with a ``, ```jsx {count} item.} // [!code highlight] - other={You have {count} items.} // [!code highlight] + one={<>You have {count} item.} // [!code highlight] + other={<>You have {count} items.} // [!code highlight] /> ```