--- import { Container } from '@/components/container'; import { count as soundCount } from '@/lib/sounds'; import { getTranslation } from '@/data/i18n'; // Get language from URL path const url = Astro.url; const pathname = url.pathname; const isZhPage = pathname === '/zh' || pathname.startsWith('/zh/'); const lang = isZhPage ? 'zh-CN' : 'en'; const t = getTranslation(lang); const count = soundCount(); ---