From 601bdb583e8cabcb1aff77651e5bfaa8d7b124c8 Mon Sep 17 00:00:00 2001 From: Chris Swithinbank Date: Mon, 16 Dec 2024 20:37:23 +0100 Subject: [PATCH] Fix missing import in i18n collection docs (#2707) --- docs/src/content/docs/guides/i18n.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/src/content/docs/guides/i18n.mdx b/docs/src/content/docs/guides/i18n.mdx index 803d1372ae1..8533c53f97a 100644 --- a/docs/src/content/docs/guides/i18n.mdx +++ b/docs/src/content/docs/guides/i18n.mdx @@ -192,6 +192,7 @@ You can provide translations for additional languages you support — or overrid ```diff lang="js" ins=/, (i18nLoader|i18nSchema)/ // src/content.config.ts + import { defineCollection } from 'astro:content'; import { docsLoader, i18nLoader } from '@astrojs/starlight/loaders'; import { docsSchema, i18nSchema } from '@astrojs/starlight/schema';