```tsx
import { useIntlayer } from "next-intlayer";
const { myInsertion } = useIntlayer("my-key");
return (
{myInsertion({
name: 2, // number
// or
name: "John", // string
// or
name: John, // React element
})}
);
```
```tsx
import { useIntlayer } from "react-intlayer";
const { myInsertion } = useIntlayer("my-key");
return (
{myInsertion({
name: 2, // number
// or
name: "John", // string
// or
name: John, // React element
})}
);
```
```vue
```
```tsx
import { useIntlayer } from "preact-intlayer";
const { myInsertion } = useIntlayer("my-key");
return (
{myInsertion({
name: 2, // number
// or
name: "John", // string
// or
name: John, // Preact element
})}
);
```
```tsx
import { useIntlayer } from "solid-intlayer";
const { myInsertion } = useIntlayer("my-key");
return (
{myInsertion({
name: 2, // number
// or
name: "John", // string
// or
name: John, // Solid element
})}
);
```
```svelte
{myInsertion({
name: 2, // number
// or
name: "John", // string
})}
```
```typescript
import { Component } from "@angular/core";
import { useIntlayer } from "angular-intlayer";
@Component({
selector: "app-insertion-example",
template: `
{{ content().myInsertion({
name: 'John'
}) }}
`,
})
export class InsertionExampleComponent {
content = useIntlayer("my-key");
}
```
## Unicode CLDR Plural Rules (v8.8.0)
A new `plural` node helper has been introduced based on the plural rules defined by the Unicode CLDR Project, improving support for complex languages.
```typescript fileName="src/openings.content.ts"
import { plural, t, type Dictionary } from "intlayer";
const openingsContent = {
key: "total_openings",
content: {
totalOpenings: t({
en: plural({
one: "{{count}} opening",
other: "{{count}} openings",
}),
fr: plural({
one: "{{count}} offre",
other: "{{count}} offres",
}),
}),
},
} satisfies Dictionary;
export default openingsContent;
```
You can then pass the count dynamically in your framework component:
```tsx
import type { FC } from "react";
import { useIntlayer } from "react-intlayer";
const OpeningsComponent: FC<{ count: number }> = ({ count }) => {
const { totalOpenings } = useIntlayer("total_openings");
return (