Skip to content

Commit 160b277

Browse files
i18n(fr): update reference/errors (#13473)
Co-authored-by: Yan <61414485+yanthomasdev@users.noreply.github.com>
1 parent 3a6bf3c commit 160b277

12 files changed

+28
-16
lines changed

src/content/docs/fr/reference/errors/csp-not-enabled.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ i18nReady: true
44
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
55
---
66

7-
> The `experimental.csp` configuration isn't enabled.
7+
:::caution[Dépréciée]
8+
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.
9+
:::
10+
11+
> The `security.csp` configuration isn't enabled.
812
913
## Qu'est-ce qui a mal tourné ?
1014
La fonctionnalité CSP n'est pas activée

src/content/docs/fr/reference/errors/forbidden-rewrite.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/
55
---
66

77
> **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
8-
'COMPONENT', which is marked as prerendered. This is a forbidden operation because during the build the component 'COMPONENT' is compiled to an
8+
'COMPONENT', which is marked as prerendered. This is a forbidden operation because during the build, the component 'COMPONENT' is compiled to an
99
HTML file, which can't be retrieved at runtime by Astro.
1010

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

src/content/docs/fr/reference/errors/get-entry-deprecation-error.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/
77
> **GetEntryDeprecationError**: The `METHOD` function is deprecated and cannot be used to query the "COLLECTION" collection. Use `getEntry` instead.
88
99
## Qu'est-ce qui a mal tourné ?
10-
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`.
10+
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`.

src/content/docs/fr/reference/errors/get-static-paths-invalid-route-param.mdx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
title: Valeur non valide pour un paramètre de route dans getStaticPaths.
2+
title: Paramètre de route invalide renvoyé par getStaticPaths().
33
i18nReady: true
44
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
55
---
66

7-
> **GetStaticPathsInvalidRouteParam**: Invalid getStaticPaths route parameter for `KEY`. Expected undefined, a string or a number, received `VALUE_TYPE` (`VALUE`)
7+
> **GetStaticPathsInvalidRouteParam**: Invalid `getStaticPaths()` route parameter for `KEY`. Expected a string or undefined, received `VALUE_TYPE` (`VALUE`)
88
99
## Qu'est-ce qui a mal tourné ?
1010
Etant donné que les `params` sont encodées dans l'URL, seuls certains types sont pris en charge en tant que valeurs.
@@ -14,8 +14,9 @@ Etant donné que les `params` sont encodées dans l'URL, seuls certains types so
1414
export async function getStaticPaths() {
1515
return [
1616
{ params: { id: '1' } } // Fonctionne
17-
{ params: { id: 2 } } // Fonctionne
17+
{ params: { id: 2 } } // Ne fonctionne pas
1818
{ params: { id: false } } // Ne fonctionne pas
19+
{ params: { id: [1, 2] } } // Ne fonctionne pas
1920
];
2021
}
2122
---
@@ -27,8 +28,8 @@ Dans les routes utilisant les [paramètres du reste](/fr/guides/routing/#paramè
2728
---
2829
export async function getStaticPaths() {
2930
return [
30-
{ params: { id: 1 } } // /route/1
31-
{ params: { id: 2 } } // /route/2
31+
{ params: { id: '1' } } // /route/1
32+
{ params: { id: '2' } } // /route/2
3233
{ params: { id: undefined } } // /route/
3334
];
3435
}

src/content/docs/fr/reference/errors/i18n-not-enabled.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ i18nReady: true
44
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
55
---
66

7-
> **i18nNotEnabled**: The `astro:i18n` module can not be used without enabling i18n in your Astro config.
7+
> **i18nNotEnabled**: The `astro:i18n` module cannot be used without enabling i18n in your Astro config.
88
99
## Qu'est-ce qui a mal tourné ?
1010
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 :

src/content/docs/fr/reference/errors/invalid-content-entry-data-error.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/
55
---
66

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

src/content/docs/fr/reference/errors/invalid-content-entry-frontmatter-error.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ i18nReady: true
44
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
55
---
66

7+
:::caution[Dépréciée]
8+
Cette erreur concerne uniquement les collections de contenu héritées qui ont été supprimées dans Astro 6.
9+
:::
10+
711
> **Exemple de message d'erreur :**<br/>
812
**blog** → **post.md** frontmatter does not match collection schema.<br/>
913
"title" is required.<br/>

src/content/docs/fr/reference/errors/invalid-glob.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ i18nReady: true
44
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
55
---
66

7+
:::caution[Dépréciée]
8+
Cette erreur a été supprimée dans Astro v6.0.0 en même temps que la suppression de `Astro.glob()`.
9+
:::
10+
711
> **InvalidGlob**: Invalid glob pattern: `GLOB_PATTERN`. Glob patterns must start with './', '../' or '/'.
812
913
## Qu'est-ce qui a mal tourné ?

src/content/docs/fr/reference/errors/live-content-config-error.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@ Erreur dans la configuration du contenu en ligne.
1212

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

src/content/docs/fr/reference/errors/locals-reassigned.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ i18nReady: true
44
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
55
---
66

7-
> **LocalsReassigned**: `locals` can not be assigned directly.
7+
> **LocalsReassigned**: `locals` cannot be assigned directly.
88
99
## Qu'est-ce qui a mal tourné ?
1010
Émise lorsqu'une valeur est définie comme champ `locals` sur l'objet global ou le contexte d'Astro.

0 commit comments

Comments
 (0)