export const useQuestionList = () => { const { getDirectusLocale } = useLocalizations(); const locale = getDirectusLocale(); return useAsyncData(`question-list-${locale}`, async () => { try { const data = $fetch(`/api/cms/questionList`, { headers: { 'x-locale': locale }, }); return data; } catch (error) { logger.error('Error fetching question list:', error); throw error; } }); };