Closed kepae closed 6 months ago
Same issue also happens on prismic. When a new language is added we need to duplicate blog posts and docs in prismic and add the new language to the language
field. I think this could be improved by defaulting to en
if the document is missing on prismic.
I agree. The correct behavior here is requiring only one language, and making all others optional. Ideally, we don't specify which language – we could reasonably have a post only available in Spanish – but in reality, we should start by checking for en
and requiring it as a fallback.
@clari182 @pdcp1 Let's discuss this in our standup tomorrow. Or if it's blocking you today, let's discuss it on Slack. There are multiple areas we need to fix the language/translation expectations.
When creating a MDX-sourced blog post in
/blog
with the default langpost_name.mdx
file, the absence of other languages'post_name.[LANG].mdx
files for allowed languages causes errors. The error thrown is related to looking for the image file, but this issue goes away after providing thefr
andes
files.We should be able to publish MDX posts even with only one .mdx file in any language.
e.g.:
workflow build: https://github.com/responsible-ai-collaborative/aiid/actions/runs/7454131080/job/20280876233?pr=2535