Skip to content

Commit

Permalink
docs(i18n): fix typo in fallbackType JSDoc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ArmandPhilippot committed Aug 29, 2024
1 parent 17f7127 commit 5eb847b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/little-zebras-march.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Fixes typo in documenting the `fallbackType` property in i18n routing
4 changes: 2 additions & 2 deletions packages/astro/src/@types/astro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export type TransitionAnimationValue =

// Allow users to extend this for astro-jsx.d.ts

// eslint-disable-next-line @typescript-eslint/no-empty-object-type
export interface AstroClientDirectives {}

export interface AstroBuiltinAttributes {
Expand Down Expand Up @@ -1683,7 +1683,7 @@ export interface AstroUserConfig {
*
* When `i18n.routing.fallback: "rewrite"` is configured, Astro will create pages that render the contents of the fallback page on the original, requested URL.
*
* With the following configuration, if you have the file `src/pages/en/about.astro` but not `src/pages/fr/about.astro`, the `astro build` command will generate `dist/fr/about.html` with the same content as the `dist/en/index.html` page.
* With the following configuration, if you have the file `src/pages/en/about.astro` but not `src/pages/fr/about.astro`, the `astro build` command will generate `dist/fr/about.html` with the same content as the `dist/en/about.html` page.
* Your site visitor will see the English version of the page at `https://example.com/fr/about/` and will not be redirected.
*
* ```js
Expand Down

0 comments on commit 5eb847b

Please # to comment.