-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e1b9f3a
commit 8269963
Showing
4 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/content/docs/en/reference/errors/incorrect-strategy-for-i18n.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
# NOTE: This file is auto-generated from 'scripts/error-docgen.mjs' | ||
# Do not make edits to it directly, they will be overwritten. | ||
# Instead, change this file: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts | ||
# Translators, please remove this note and the <DontEditWarning/> component. | ||
|
||
title: You can't use the current function with the current strategy | ||
i18nReady: true | ||
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts | ||
--- | ||
import DontEditWarning from '~/components/DontEditWarning.astro' | ||
|
||
<DontEditWarning /> | ||
|
||
|
||
> **IncorrectStrategyForI18n**: The function `FUNCTION_NAME\' can only be used when the `i18n.routing.strategy` is set to `"manual"`. | ||
## What went wrong? | ||
Some internationalization functions are only available when Astro's own i18n routing is disabled by the configuration setting `i18n.routing: "manual"`. | ||
|
||
**See Also:** | ||
- [`i18n` routing](/en/guides/internationalization/#routing) | ||
|
||
|
22 changes: 22 additions & 0 deletions
22
...ontent/docs/en/reference/errors/missing-middleware-for-internationalization.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
# NOTE: This file is auto-generated from 'scripts/error-docgen.mjs' | ||
# Do not make edits to it directly, they will be overwritten. | ||
# Instead, change this file: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts | ||
# Translators, please remove this note and the <DontEditWarning/> component. | ||
|
||
title: Enabled manual internationalization routing without having a middleware. | ||
i18nReady: true | ||
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts | ||
--- | ||
import DontEditWarning from '~/components/DontEditWarning.astro' | ||
|
||
<DontEditWarning /> | ||
|
||
|
||
> **MissingMiddlewareForInternationalization**: Your configuration setting `i18n.routing: 'manual'` requires you to provide your own i18n `middleware` file. | ||
## What went wrong? | ||
Astro throws an error if the user enables manual routing, but it doesn't have a middleware file. | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters