This only applies to document wide translations.
*[_type == "type" && __i18n_lang == $lang]
Note This will not work on never before published, base language documents because they will not have the __i18n_lang
field yet.
*[_type == "type" && !(_id in path("drafts.i18n.*") && _id in path("i18n.**"))]
*[_type == "type" && !(_id in match ["*__i18n__*"])]
*[_type == "type" && !(_id in path("drafts.i18n.*") && _id in path("i18n.**"))] {
"languages": [__i18n_lang, ...__i18n_refs[].lang]
}