Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i18n(zh-cn): Create missing-middleware-for-internationalization.mdx #7867

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: 启用了手动国际化路由但没有提供中间件。
i18nReady: true
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
---

> **MissingMiddlewareForInternationalization**: 你的配置设置 `i18n.routing: 'manual'` 要求你提供自己的 i18n `middleware` 文件。

## 哪里出了问题?
如果用户启用了手动路由,但没有中间件文件,Astro 会抛出一个错误。



Loading