Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 5 additions & 1 deletion src/content/docs/fr/reference/errors/csp-not-enabled.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ i18nReady: true
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
---

> The `experimental.csp` configuration isn't enabled.
:::caution[Dépréciée]
Cette erreur provient d'une ancienne version d'Astro et n'est plus utilisée. Si vous ne pouvez pas mettre à niveau votre projet vers une version plus récente, vous pouvez consulter [des instantanés non maintenus des anciennes documentations](/fr/upgrade-astro/#anciennes-documentations-non-maintenues) pour obtenir de l'aide.
:::

> The `security.csp` configuration isn't enabled.

## Qu'est-ce qui a mal tourné ?
La fonctionnalité CSP n'est pas activée
2 changes: 1 addition & 1 deletion src/content/docs/fr/reference/errors/forbidden-rewrite.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/
---

> **ForbiddenRewrite**: You tried to rewrite the on-demand route 'FROM' with the static route 'TO', when using the 'server' output. <br/><br/>The static route 'TO' is rendered by the component
'COMPONENT', which is marked as prerendered. This is a forbidden operation because during the build the component 'COMPONENT' is compiled to an
'COMPONENT', which is marked as prerendered. This is a forbidden operation because during the build, the component 'COMPONENT' is compiled to an
HTML file, which can't be retrieved at runtime by Astro.

## Qu'est-ce qui a mal tourné ?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/
> **GetEntryDeprecationError**: The `METHOD` function is deprecated and cannot be used to query the "COLLECTION" collection. Use `getEntry` instead.

## Qu'est-ce qui a mal tourné ?
Les fonctions `getDataEntryById` et `getEntryBySlug` sont dépréciées et ne peuvent pas être utilisées avec les collections utilisant les couches de contenu. Utilisez plutôt la fonction `getEntry`.
Les fonctions `getDataEntryById` et `getEntryBySlug` sont dépréciées et ne peuvent pas être utilisées avec les collections de contenu. Utilisez plutôt la fonction `getEntry`.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
title: Valeur non valide pour un paramètre de route dans getStaticPaths.
title: Paramètre de route invalide renvoyé par getStaticPaths().
i18nReady: true
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
---

> **GetStaticPathsInvalidRouteParam**: Invalid getStaticPaths route parameter for `KEY`. Expected undefined, a string or a number, received `VALUE_TYPE` (`VALUE`)
> **GetStaticPathsInvalidRouteParam**: Invalid `getStaticPaths()` route parameter for `KEY`. Expected a string or undefined, received `VALUE_TYPE` (`VALUE`)

## Qu'est-ce qui a mal tourné ?
Etant donné que les `params` sont encodées dans l'URL, seuls certains types sont pris en charge en tant que valeurs.
Expand All @@ -14,8 +14,9 @@ Etant donné que les `params` sont encodées dans l'URL, seuls certains types so
export async function getStaticPaths() {
return [
{ params: { id: '1' } } // Fonctionne
{ params: { id: 2 } } // Fonctionne
{ params: { id: 2 } } // Ne fonctionne pas
{ params: { id: false } } // Ne fonctionne pas
{ params: { id: [1, 2] } } // Ne fonctionne pas
];
}
---
Expand All @@ -27,8 +28,8 @@ Dans les routes utilisant les [paramètres du reste](/fr/guides/routing/#paramè
---
export async function getStaticPaths() {
return [
{ params: { id: 1 } } // /route/1
{ params: { id: 2 } } // /route/2
{ params: { id: '1' } } // /route/1
{ params: { id: '2' } } // /route/2
{ params: { id: undefined } } // /route/
];
}
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/fr/reference/errors/i18n-not-enabled.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ i18nReady: true
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
---

> **i18nNotEnabled**: The `astro:i18n` module can not be used without enabling i18n in your Astro config.
> **i18nNotEnabled**: The `astro:i18n` module cannot be used without enabling i18n in your Astro config.

## Qu'est-ce qui a mal tourné ?
Le module `astro:i18n` ne peut pas être utilisé sans activer i18n dans votre configuration Astro. Pour activer i18n, ajoutez une locale par défaut et une liste de locales prises en charge à votre configuration Astro :
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/
---

> **Exemple de message d'erreur :**<br/>
**blog** → **post** frontmatter does not match collection schema.<br/>
**blog** → **post** data does not match collection schema.<br/>
"title" is required.<br/>
"date" must be a valid date.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ i18nReady: true
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
---

:::caution[Dépréciée]
Cette erreur concerne uniquement les collections de contenu héritées qui ont été supprimées dans Astro 6.
:::

> **Exemple de message d'erreur :**<br/>
**blog** → **post.md** frontmatter does not match collection schema.<br/>
"title" is required.<br/>
Expand Down
4 changes: 4 additions & 0 deletions src/content/docs/fr/reference/errors/invalid-glob.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ i18nReady: true
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
---

:::caution[Dépréciée]
Cette erreur a été supprimée dans Astro v6.0.0 en même temps que la suppression de `Astro.glob()`.
:::

> **InvalidGlob**: Invalid glob pattern: `GLOB_PATTERN`. Glob patterns must start with './', '../' or '/'.

## Qu'est-ce qui a mal tourné ?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@ Erreur dans la configuration du contenu en ligne.

**Voir aussi :**
- [Contenu en ligne](/fr/guides/content-collections/)

2 changes: 1 addition & 1 deletion src/content/docs/fr/reference/errors/locals-reassigned.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ i18nReady: true
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
---

> **LocalsReassigned**: `locals` can not be assigned directly.
> **LocalsReassigned**: `locals` cannot be assigned directly.

## Qu'est-ce qui a mal tourné ?
Émise lorsqu'une valeur est définie comme champ `locals` sur l'objet global ou le contexte d'Astro.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/
---

> **Exemple de messages d'erreur :**<br/>
can not read an implicit mapping pair; a colon is missed<br/>
cannot read an implicit mapping pair; a colon is missed<br/>
unexpected end of the stream within a double quoted scalar<br/>
can not read a block mapping entry; a multiline key may not be an implicit key
cannot read a block mapping entry; a multiline key may not be an implicit key

## Qu'est-ce qui a mal tourné ?

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ Deux routes pré-rendues génèrent le même chemin, ce qui entraîne une collis
Un chemin statique ne peut être généré que par une seule route.

**Voir également :**
- [`getStaticPaths()`](/fr/reference/routing-reference/#getstaticpaths)
- [`params`](/fr/reference/api-reference/#params)
- [Ordre de priorité des routes](/fr/guides/routing/#ordre-de-priorité-des-routes)
- [`prerenderConflictBehavior`](/fr/reference/configuration-reference/#prerenderconflictbehavior)
Loading