refactor: 更新语言类型导入路径,统一使用 '@/types/i18n'

This commit is contained in:
joyzhao
2026-01-09 08:19:48 +08:00
parent e7e15ab69f
commit 23b5fac1da
4 changed files with 5 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
---
import TaxonomyPageLayout from '../../../layouts/TaxonomyPageLayout.astro';
import { type Lang } from '@/i18n/utils';
import { type Lang } from '@/types/i18n';
import { defaultLang } from '@/i18n/ui';
import { getTaxonomyPageData } from '@/utils/blog-utils';

View File

@@ -5,7 +5,8 @@ import CategoryCard from '../../components/blog/CategoryCard.astro';
import TagCard from '../../components/blog/TagCard.astro';
import Container from '../../components/ui/Container';
import { type BlogPost } from '@/types';
import { type Lang, useTranslations } from '@/i18n/utils';
import { useTranslations } from '@/i18n/utils';
import { type Lang } from '@/types/i18n';
import { defaultLang } from '@/i18n/ui';
import { sortPostsByDate } from '@/utils/blog-utils';

View File

@@ -1,6 +1,6 @@
---
import TaxonomyPageLayout from '../../../layouts/TaxonomyPageLayout.astro';
import { type Lang } from '@/i18n/utils';
import { type Lang } from '@/types/i18n';
import { defaultLang } from '@/i18n/ui';
import { getTaxonomyPageData } from '@/utils/blog-utils';