feat: Implement course discovery page with browsing, filtering, and detailed course views, supported by new course card and category sidebar components and a course composable.
All checks were successful
Build and Deploy Frontend Learner / Build Frontend Learner Docker Image (push) Successful in 38s
Build and Deploy Frontend Learner / Deploy E-learning Frontend Learner to Dev Server (push) Successful in 2s
Build and Deploy Frontend Learner / Notify Deployment Status (push) Successful in 1s

This commit is contained in:
supalerk-ar66 2026-02-10 14:02:45 +07:00
parent 0691ca40cd
commit 4955bc9e5c
4 changed files with 13 additions and 8 deletions

View file

@ -39,10 +39,11 @@ const emit = defineEmits<{
viewCertificate: []
}>()
const { locale } = useI18n()
const getLocalizedText = (text: string | { th: string; en: string } | undefined) => {
if (!text) return ''
if (typeof text === 'string') return text
return text.th || text.en || ''
return text[locale.value] || text.th || text.en || ''
}
const displayTitle = computed(() => getLocalizedText(props.title))