Got stuck on something stupidly simple,, I have been looking at this code for an hour, and I can't get it right. I have a global collection in Directus, that is translated to a bunch of languages, when trying to get the content in an example next.js app I only get the default text, not the translated one, this one in french...):
async function getGlobals() {
const languageCode = 'fr-FR';
const { data } = await directus.items('global').readByQuery({
fields: ['*'],
deep: {
translation: {
_filter: {
languages_code: {
_eq: languageCode,
},
}
}
}
});
return data;
}
```.
Just so you know, we have moved your message here, @abstract saffron. In future, please ask questions in one of the help channels as per the server rules.
@stone sorrel was the person who moved it, so if there's aditional context, they will add it here for you. Your original post has been deleted.