Skip to content
Open
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
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
title: Action inattendue demandée par le serveur.
title: Action appelée depuis le serveur sans `Astro.callAction()`.
i18nReady: true
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
---

> **ActionCalledFromServerError**: Action called from a server page or endpoint without using `Astro.callAction()`. This wrapper must be used to call actions from server code.
> **ActionCalledFromServerError**: Action called from a server-rendered page or endpoint without using `Astro.callAction()`. This wrapper must be used to call actions from server code.

## Qu'est-ce qui a mal tourné ?
Action déclenchée à partir d'une page serveur ou d'un point de terminaison sans utiliser `Astro.callAction()`.
Action déclenchée à partir d'une page rendue par le serveur ou d'un point de terminaison sans utiliser `Astro.callAction()`.

**Voir aussi :**
- [Référence d'`Astro.callAction()`](/fr/reference/api-reference/#callaction)
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
---

> **ActionsWithoutServerOutputError**: A server is required to create callable backend functions. To deploy routes to a server, add an adapter to your Astro config and configure your route for on-demand rendering
> **ActionsWithoutServerOutputError**: A server is required to create callable backend functions. To deploy routes to a server, add an adapter to your Astro config and configure your route for on-demand rendering.

## Qu'est-ce qui a mal tourné ?
Votre projet doit avoir une sortie serveur pour créer des fonctions backend avec des actions.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ En fonction de votre adaptateur, il peut y avoir un point d'entrée différent

**Voir aussi :**
- [Rendu côté serveur](/fr/guides/on-demand-rendering/)

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/
> An error occurred while fetching font file from the given URL.

## Qu'est-ce qui a mal tourné ?
Impossible de récupérer le fichier de police donné
Impossible de récupérer le fichier de police donné.
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ L'adaptateur que vous utilisez ne prend malheureusement pas en charge `Astro.cli

**Voir aussi :**
- [Intégrations officielles](/fr/guides/integrations/#intégrations-officielles)
- [Astro.clientAddress](/fr/reference/api-reference/#clientaddress)
- [`Astro.clientAddress`](/fr/reference/api-reference/#clientaddress)
2 changes: 1 addition & 1 deletion src/content/docs/fr/reference/errors/config-not-found.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
---

> **ConfigNotFound** : Unable to resolve `--config "CONFIG_FILE"`. Does the file exist?
> **ConfigNotFound**: Unable to resolve `--config "CONFIG_FILE"`. Does the file exist?

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

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: L'entrée de contenu ne contient pas d'ID
title: L'entrée de contenu ne contient pas d'ID.
i18nReady: true
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ Un schéma de collection de contenu hérité ne doit pas contenir le champ `slug

**Voir aussi :**
- [Collections de contenu héritées](/fr/guides/upgrade-to/v5/#mise-à-jour-des-collections-existantes)

1 change: 1 addition & 0 deletions src/content/docs/fr/reference/errors/csssyntax-error.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ CSSSyntaxError: Unclosed string<br/>
## Qu'est-ce qui a mal tourné ?

Astro a rencontré une erreur lors de l'analyse du CSS en raison d'une erreur de syntaxe. Cela est souvent causé par l'absence d'un point-virgule.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Variable d'environnement invalide
title: Variables d'environnement invalides.
i18nReady: true
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: envPrefix entre en conflit avec des variables d'environnement secrètes
title: envPrefix entre en conflit avec des variables d'environnement secrètes.
i18nReady: true
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
---
Expand Down
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
---

> **ExpectedImageOptions**: Expected getImage() parameter to be an object. Received `OPTIONS`.
> **ExpectedImageOptions**: Expected `getImage()` parameter to be an object. Received `OPTIONS`.

## Qu'est-ce qui a mal tourné ?
Le premier paramètre de `getImage()` doit être un objet contenant les différentes propriétés à appliquer à votre image.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Échec de la récupération des dimensions de l'image distante
title: Échec de la récupération des dimensions de l'image distante.
i18nReady: true
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
---
Expand All @@ -8,6 +8,3 @@ githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/

## Qu'est-ce qui a mal tourné ?
La détermination des dimensions de l'image distante a échoué. Cela est généralement dû à une URL incorrecte ou à une tentative de déduire la taille d'une image dans le dossier public, ce qui n'est pas possible.



Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Astro n'a pas pu trouver la bonne page à afficher
title: Astro n'a pas pu trouver la bonne page à afficher.
i18nReady: true
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---

title: Les motifs glob ne sont pas pris en charge dans le chargeur file
title: Les motifs glob ne sont pas pris en charge dans le chargeur `file`.
i18nReady: true
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Analyseur de fichiers introuvable
title: Analyseur de fichiers introuvable.
i18nReady: true
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Famille de polices non trouvée
title: Famille de polices non trouvée.
i18nReady: true
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
---
Expand Down
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
---

> **GenerateContentTypesError**: La commande `astro sync` n'a pas pu générer les types de collection de contenu: ERROR_MESSAGE
> **GenerateContentTypesError**: La commande `astro sync` n'a pas pu générer les types de collection de contenu: ERROR_MESSAGE.

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ const optimizedImage = await getImage({ src: myImage, width: 300 });

**Voir aussi :**
- [Images](/fr/guides/images/)
- [getImage()](/fr/reference/modules/astro-assets/#getimage)
- [`getImage()`](/fr/reference/modules/astro-assets/#getimage)
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
title: Propriété params manquante pour une route utilisant getStaticPaths.
title: Propriété params manquante pour une route utilisant `getStaticPaths()`.
i18nReady: true
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
---

> **GetStaticPathsExpectedParams**: Missing or empty required `params` property on `getStaticPaths` route.

## Qu'est-ce qui a mal tourné ?
Chaque route spécifiée par `getStaticPaths` nécessite une propriété `params` spécifiant les paramètres du chemin nécessaires pour correspondre à la route.
Chaque route spécifiée par `getStaticPaths()` nécessite une propriété `params` spécifiant les paramètres du chemin nécessaires pour correspondre à la route.

Par exemple, le code suivant :
```astro title="pages/blog/[id].astro"
Expand Down
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
---

> **GetStaticPathsInvalidRouteParam**: Invalid `getStaticPaths()` route parameter for `KEY`. Expected a string or undefined, 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 Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ i18nReady: true
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
---

> **GetStaticPathsRequired**: `getStaticPaths()` function is required for dynamic routes. Make sure that you `export` a `getStaticPaths` function from your dynamic route.
> **GetStaticPathsRequired**: `getStaticPaths()` function is required for dynamic routes. Make sure that you `export` a `getStaticPaths()` function from your dynamic route.

## Qu'est-ce qui a mal tourné ?
En [mode statique](/fr/guides/routing/#mode-statique-ssg), toutes les routes doivent être déterminées au moment de la compilation. Ainsi, les routes dynamiques doivent exporter une fonction `getStaticPaths` retournant les différents chemins à générer.
En [mode statique](/fr/guides/routing/#mode-statique-ssg), toutes les routes doivent être déterminées au moment de la compilation. Ainsi, les routes dynamiques doivent exporter une fonction `getStaticPaths()` retournant les différents chemins à générer.

**Voir aussi :**
- [Routes dynamiques](/fr/guides/routing/#routes-dynamiques)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
title: Le chemin ne contient aucun paramètre régional
title: Le chemin ne contient aucun paramètre régional.
i18nReady: true
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
---

> **i18nNoLocaleFoundInPath**: You tried to use an i18n utility on a path that doesn't contain any locale. You can use `pathHasLocale` first to determine if the path has a locale.

## Qu'est-ce qui a mal tourné ?
Un utilitaire i18n a essayé d'utiliser les paramètres régionaux à partir d'un chemin d'URL qui n'en contient pas. Vous pouvez éviter cette erreur en utilisant pathHasLocale pour vérifier si les URL contiennent des paramètres régionaux avant d'utiliser les utilitaires i18n.
Un utilitaire i18n a essayé d'utiliser les paramètres régionaux à partir d'un chemin d'URL qui n'en contient pas. Vous pouvez éviter cette erreur en utilisant `pathHasLocale()` pour vérifier si les URL contiennent des paramètres régionaux avant d'utiliser les utilitaires i18n.
4 changes: 2 additions & 2 deletions src/content/docs/fr/reference/errors/i18n-not-enabled.mdx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
title: i18n non activé
title: Le routage d'internationalisation n'est pas activé.
i18nReady: true
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
---

> **i18nNotEnabled**: The `astro:i18n` module cannot 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
@@ -1,5 +1,5 @@
---
title: Impossible de définir à la fois des densités et des largeurs
title: Impossible de définir à la fois des densités et des largeurs.
i18nReady: true
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Vous ne pouvez pas utiliser la fonction actuelle avec la stratégie actuelle.
title: Fonction incompatible avec la stratégie actuelle.
i18nReady: true
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
---
Expand All @@ -11,5 +11,3 @@ Certaines fonctions d'internationalisation ne sont disponibles que lorsque le ro

**Voir aussi:**
- [routage `i18n`](/fr/guides/internationalization/#routing)


Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
title: Valeur non valide renvoyée par un chemin getStaticPaths.
title: Valeur invalide renvoyée par une route depuis `getStaticPaths()`.
i18nReady: true
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
---

> **InvalidGetStaticPathParam**: Invalid params given to `getStaticPaths` path. Expected an `object`, got `PARAM_TYPE`
> **InvalidGetStaticPathParam**: Invalid `params` value returned by a route from `getStaticPaths()`. Expected an `object`, got `PARAM_TYPE`.

## Qu'est-ce qui a mal tourné ?
La propriété `params` de la valeur de retour de `getStaticPaths` (un tableau d'objets) doit également être un objet.
La propriété `params` de la valeur de retour de `getStaticPaths()` (un tableau d'objets) doit également être un objet.

```astro title="pages/blog/[id].astro"
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
title: Entrée invalide dans la valeur de retour de getStaticPath
title: Entrée invalide dans la valeur de retour de getStaticPath().
i18nReady: true
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
---

> **InvalidGetStaticPathsEntry**: Invalid entry returned by getStaticPaths. Expected an object, got `ENTRY_TYPE`
> **InvalidGetStaticPathsEntry**: Invalid entry returned by `getStaticPaths()`. Expected an object, got `ENTRY_TYPE`.

## Qu'est-ce qui a mal tourné ?
La valeur de retour de `getStaticPaths` doit être un tableau d'objets. Dans la plupart des cas, cette erreur se produit parce qu'un tableau de tableaux a été retourné. L'utilisation de [`.flatMap()`](https://developer.mozilla.org/fr-FR/docs/Web/JavaScript/Reference/Global_Objects/Array/flatMap) ou d'un appel [`.flat()`](https://developer.mozilla.org/fr-FR/docs/Web/JavaScript/Reference/Global_Objects/Array/flat) peut être utile.
La valeur de retour de `getStaticPaths()` doit être un tableau d'objets. Dans la plupart des cas, cette erreur se produit parce qu'un tableau de tableaux a été retourné. L'utilisation de [`.flatMap()`](https://developer.mozilla.org/fr-FR/docs/Web/JavaScript/Reference/Global_Objects/Array/flatMap) ou d'un appel [`.flat()`](https://developer.mozilla.org/fr-FR/docs/Web/JavaScript/Reference/Global_Objects/Array/flat) peut être utile.

```ts title="pages/blog/[id].astro"
export async function getStaticPaths() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
title: Valeur invalide renvoyée par getStaticPaths.
title: Valeur invalide renvoyée par getStaticPaths().
i18nReady: true
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
---

> **InvalidGetStaticPathsReturn**: Invalid type returned by `getStaticPaths`. Expected an `array`, got `RETURN_TYPE`
> **InvalidGetStaticPathsReturn**: Invalid type returned by `getStaticPaths()`. Expected an `array`, got `RETURN_TYPE`.

## Qu'est-ce qui a mal tourné ?
La valeur de retour de `getStaticPaths` doit être un tableau d'objets.
La valeur de retour de `getStaticPaths()` doit être un tableau d'objets.

```ts title="pages/blog/[id].astro"
export async function getStaticPaths() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Configuration du middleware d'internationalisation invalide
title: Configuration du middleware d'internationalisation invalide.
i18nReady: true
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
---
Expand Down
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
---

> **LocalImageUsedWrongly**: `Image`'s and `getImage`'s `src` parameter must be an imported image or an URL, it cannot be a string filepath. Received `IMAGE_FILE_PATH`.
> **LocalImageUsedWrongly**: `Image`'s and `getImage`'s `src` parameter must be an imported image or a URL, it cannot be a string filepath. Received `IMAGE_FILE_PATH`.

## Qu'est-ce qui a mal tourné ?
Lors de l'utilisation des services d'images par défaut, les paramètres `src` de `Image` et `getImage` doivent être soit une image importée, soit une URL, ils ne peuvent pas être une chaîne de caractères représentant un chemin de fichier.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Dimensions de l'image manquantes
title: Dimensions de l'image manquantes.
i18nReady: true
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
---
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/fr/reference/errors/missing-locale.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/
> **MissingLocale**: The locale/path `LOCALE` does not exist in the configured `i18n.locales`.

## Qu'est-ce qui a mal tourné ?
Astro ne trouve pas les paramètres régionaux demandés. Tous les paramètres régionaux pris en charge doivent être configurés dans [i18n.locales](/fr/reference/configuration-reference/#i18nlocales) et avoir des répertoires correspondants dans `src/pages/`.
Astro ne trouve pas les paramètres régionaux demandés. Tous les paramètres régionaux pris en charge doivent être configurés dans [`i18n.locales`](/fr/reference/configuration-reference/#i18nlocales) et avoir des répertoires correspondants dans `src/pages/`.
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
---

> **MissingMediaQueryDirective**: Media query not provided for `client:media` directive. A media query similar to `client:media="(max-width: 600px)"` must be provided
> **MissingMediaQueryDirective**: Media query not provided for `client:media` directive. A media query similar to `client:media="(max-width: 600px)"` must be provided.

## Qu'est-ce qui a mal tourné ?
Un paramètre de [requête média](https://developer.mozilla.org/fr-FR/docs/Web/CSS/Media_Queries/Using_media_queries) est requis lors de l'utilisation de la directive `client:media`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ Pour utiliser les îlots de serveur, les mêmes contraintes que pour le rendu c

**Voir aussi :**
- [Rendu à la demande](/fr/guides/on-demand-rendering/)

Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ Pour utiliser le rendu côté serveur, un adaptateur doit être installé afin q

**Voir aussi :**
- [Rendu côté serveur](/fr/guides/on-demand-rendering/)

Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/
Une [route dynamique](/fr/guides/routing/#routes-dynamiques) a été trouvée, mais aucun chemin correspondant n'a été trouvé pour les paramètres demandés. Cela est souvent dû à une faute de frappe dans le chemin généré ou dans le chemin demandé.

**Voir aussi :**
- [getStaticPaths()](/fr/reference/routing-reference/#getstaticpaths)
- [`getStaticPaths()`](/fr/reference/routing-reference/#getstaticpaths)
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ i18nReady: true
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
---

> **NoPrerenderedRoutesWithDomains**: Static pages aren't yet supported with multiple domains. To enable this feature, you must disable prerendering for the page COMPONENT
> **NoPrerenderedRoutesWithDomains**: Static pages aren't yet supported with multiple domains. To enable this feature, you must disable prerendering for the page COMPONENT.

## Qu'est-ce qui a mal tourné ?
Les pages statiques ne sont pas encore prises en charge par les domaines i18n. Si vous souhaitez activer cette fonctionnalité, vous devez désactiver le pré-rendu.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ return new Response(null, {
statusText: 'Not found'
});

// Pour les redirections, Astro.redirect renvoie également une instance de Response
// Alternativement, pour les redirections, `Astro.redirect()` renvoie également une instance de `Response`.
return Astro.redirect('/login');
---
```
Expand Down
Loading
Loading