Skip to content

Commit

Permalink
fix: lang configs
Browse files Browse the repository at this point in the history
  • Loading branch information
riderx committed Jan 8, 2025
1 parent 879fba8 commit 91bc5cb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/content/config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { docsSchema } from '@astrojs/starlight/schema'
import { docsSchema, i18nSchema } from '@astrojs/starlight/schema'
import { defineCollection } from 'astro:content'
import { docsLoader } from "@astrojs/starlight/loaders"
import { docsLoader, i18nLoader } from "@astrojs/starlight/loaders"

export const collections = {
docs: defineCollection({ loader: docsLoader(), schema: docsSchema() }),
i18n: defineCollection({ loader: i18nLoader(), schema: i18nSchema() }),
}

0 comments on commit 91bc5cb

Please sign in to comment.