Replies: 2 comments 3 replies
-
Velite is just a content to data converter, it does not determine the structure of your content. You can achieve this by either defining separate collections for different languages or adding a language field within a single content collection. for example const posts = defineCollection({
name: 'Post',
pattern: 'posts/**/*.md',
schema: s
.object({
title: s.string(),
lang: s.enum(['en', 'zh', 'fr']), // <-----
content: s.markdown()
})
}) |
Beta Was this translation helpful? Give feedback.
-
I have the same issue, Can you drop the full implementation please. |
Beta Was this translation helpful? Give feedback.
-
I want to implement internationalization for my website. The content layer of my website is using Velite. I want to know the best practice to implement internationalization with Velite. Or is there a plan to integrate the feature in Velite?
Beta Was this translation helpful? Give feedback.
All reactions