Files
2026-04-14 23:17:07 +08:00

21 lines
911 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: 模板对比
description: basic 与 with-lingui 的包名、国际化与持久化键对比
---
# 模板对比
以下字段以仓库内 **`package.json`** 与 **`src/stores/settings.ts`** 为准。
| 项目 | `apps/basic` | `apps/with-lingui` |
|------|----------------|---------------------|
| **package.json `name`** | `antd-admin-basic` | `antd-admin` |
| **Lingui(i18n)** | 无(英文界面) | 有(`@lingui/core`、`@lingui/react`,en / zh) |
| **Ant Design `ConfigProvider` locale** | 固定 `antd/locale/en_US` | 随设置切换:`en` → `en_US`,`zh` → `zh_CN`(见 `src/routes/__root.tsx`) |
| **Zustand persist(settings)`name`** | `settings-storage-basic` | `settings-storage` |
选型建议:
- 只要英文、希望依赖最少:选 **`apps/basic`**。
- 需要中英文切换、Lingui 工作流与 Ant Design 随语言联动:选 **`apps/with-lingui`**。