import { readSingleton } from '@directus/sdk'; export const useCompanyProfile = () => { const { $directus } = useNuxtApp(); const { getDirectusLocale } = useLocalizations(); const locale = getDirectusLocale(); return useAsyncData(`company-profile-${locale}`, async () => { return await $directus.request( readSingleton('company_profile', { fields: [ 'id', { translations: ['id', 'content'], }, ], deep: { translations: { _filter: { languages_code: { _eq: locale, }, }, }, }, }) ); }); };