--- createdAt: 2025-05-20 updatedAt: 2025-06-29 title: Can I use an array as a content declaration? description: Learn how to use an array as a content declaration. keywords: - array - content - declaration - intlayer slugs: - frequent-questions - array-as-content-declaration author: aymericzip --- # Can I use an array as a content declaration? Yes, you can use an array as a content declaration. ```ts import { t, type Dictionary } from "intlayer"; const exampleContent = { key: "example", content: { test: t({ en: ["Test", "Test2", "Test3"], fr: ["Test", "Test2", "Test3"], es: ["Test", "Test2", "Test3"], }), }, }; export default exampleContent; ``` Then you can use the content like this: ```tsx import { useIntlayer } from "react-intlayer"; const Example = () => { const content = useIntlayer("example"); return (
{content.test.map((item) => (
{item}
))}
); }; ``` ```vue ``` `.value` allows you to get the value of the content, not wrapped by a `IntlayerNode`.