import { useTranslation } from 'react-i18next' import CodeEditor from '@/components/CodeEditor' import { CDN_DEMO_CN_URL, CDN_DEMO_URL } from '@/constants' export default function QuickStart() { const { t, i18n } = useTranslation('docs') const isZh = i18n.language === 'zh-CN' return (
{t('quick_start.subtitle')}
| {isZh ? '镜像' : 'Mirrors'} | URL |
|---|---|
| {isZh ? '全球' : 'Global'} | {CDN_DEMO_URL} |
| {isZh ? '中国' : 'China'} | {CDN_DEMO_CN_URL} |