Skip to content

Commit 80fa1fb

Browse files
Clean up a handful of typos [i18nIgnore] (#14197)
Co-authored-by: Yan <61414485+yanthomasdev@users.noreply.github.com>
1 parent 93b7f67 commit 80fa1fb

11 files changed

Lines changed: 12 additions & 12 deletions

File tree

src/content/docs/en/guides/actions.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ export const onRequest = defineMiddleware(async (context, next) => {
699699

700700
## Security when using actions
701701

702-
Actions are accessible as public endpoints based on the name of the action. For example, the action `blog.like()` will be accessible from `/_actions/blog.like`. This is useful for unit testing action results and debugging production errors. However, this means you **must** use same authorization checks that you would consider for API endpoints and on-demand rendered pages.
702+
Actions are accessible as public endpoints based on the name of the action. For example, the action `blog.like()` will be accessible from `/_actions/blog.like`. This is useful for unit testing action results and debugging production errors. However, this means you **must** use the same authorization checks that you would consider for API endpoints and on-demand rendered pages.
703703

704704
### Authorize users from an action handler
705705

src/content/docs/en/guides/authentication.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ There is no official authentication solution for Astro, but you can find [commun
2323

2424
Better Auth is a framework-agnostic authentication (and authorization) framework for TypeScript. It provides a comprehensive set of features out of the box and includes a plugin ecosystem that simplifies adding advanced functionalities.
2525

26-
It supports Astro out of the box, and you can use it to add authentication to your astro project.
26+
It supports Astro out of the box, and you can use it to add authentication to your Astro project.
2727

2828
### Installation
2929

src/content/docs/en/guides/backend/firebase.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ if (Astro.cookies.has("__session")) {
435435

436436
`src/pages/dashboard.astro` will verify the user's session cookie using the Firebase server app. If the user is not authenticated, the page will redirect the user to the `/signin` page.
437437

438-
The example page below display the user's name and a button to sign out. Clicking the button will send a `GET` request to the `/api/auth/signout` endpoint.
438+
The example page below displays the user's name and a button to sign out. Clicking the button will send a `GET` request to the `/api/auth/signout` endpoint.
439439

440440
The endpoint will delete the user's session cookie and redirect the user to the `/signin` page.
441441

src/content/docs/en/guides/backend/supabase.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ Create these endpoints in the `src/pages/api/auth` directory of your project. If
142142
- package.json
143143
</FileTree>
144144

145-
`register.ts` creates a new user in Supabase. It accepts a `POST` request with the an email and password. It then uses the Supabase SDK to create a new user.
145+
`register.ts` creates a new user in Supabase. It accepts a `POST` request with an email and password. It then uses the Supabase SDK to create a new user.
146146

147147
```ts title="src/pages/api/auth/register.ts"
148148
// With `output: 'static'` configured:
@@ -172,7 +172,7 @@ export const POST: APIRoute = async ({ request, redirect }) => {
172172
};
173173
```
174174

175-
`signin.ts` signs in a user. It accepts a `POST` request with the an email and password. It then uses the Supabase SDK to sign in the user.
175+
`signin.ts` signs in a user. It accepts a `POST` request with an email and password. It then uses the Supabase SDK to sign in the user.
176176

177177
```ts title="src/pages/api/auth/signin.ts"
178178
// With `output: 'static'` configured:

src/content/docs/en/guides/cms/drupal.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ To retrieve an individual entity, the URL structure will be `/jsonapi/{entity_ty
116116

117117
#### Retrieving only certain fields
118118

119-
Retrieve only certain field by adding the Query String field to the request.
119+
Retrieve only certain fields by adding the Query String field to the request.
120120

121121
GET: `/jsonapi/{entity_type_id}/{bundle_id}?field[entity_type]=field_list`
122122

src/content/docs/en/guides/cms/frontmatter-cms.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ Open the **Front Matter CMS Dashboard**; you can do this as follows:
139139

140140
### Using Markdoc with Front Matter CMS
141141

142-
To use Markdoc with Front Matter CMS, you must configure this in the `frontMatter.content.supportedFileTypes`. This setting lets the CMS know which types of files it can progress.
142+
To use Markdoc with Front Matter CMS, you must configure this in the `frontMatter.content.supportedFileTypes`. This setting lets the CMS know which types of files it can process.
143143

144144
You can configure the setting as follows:
145145

src/content/docs/en/guides/middleware.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ export function onRequest (context, next) {
250250
};
251251
```
252252

253-
The `next()` function accepts the same payload of [the `Astro.rewrite()` function](/en/reference/api-reference/#rewrite). The location of the rewrite path can be provided as a string, URL, or `Request`.
253+
The `next()` function accepts the same payload as [the `Astro.rewrite()` function](/en/reference/api-reference/#rewrite). The location of the rewrite path can be provided as a string, URL, or `Request`.
254254

255255
When you have multiple middleware functions chained via [sequence()](#chaining-middleware), submitting a path to `next()` will rewrite the `Request` in place and the middleware will not execute again. The next middleware function in the chain will receive the new `Request` with its updated `context`.
256256

src/content/docs/en/guides/routing.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ const { page } = Astro.props;
528528

529529
A more advanced use-case for pagination is **nested pagination.** This is when pagination is combined with other dynamic route params. You can use nested pagination to group your paginated collection by some property or tag.
530530

531-
For example, if you want to group your paginated Markdown posts by some tag, you would use nested pagination by creating a `/src/pages/[tag]/[page].astro` page that would match the following URLS:
531+
For example, if you want to group your paginated Markdown posts by some tag, you would use nested pagination by creating a `/src/pages/[tag]/[page].astro` page that would match the following URLs:
532532

533533
- `/red/1` (tag=red)
534534
- `/red/2` (tag=red)

src/content/docs/en/guides/server-islands.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ However, [the browser limits URLs to a maximum length of 2048 bytes](https://chr
9090

9191
## Accessing the page URL in a server island
9292

93-
In most cases you, your server island component can get information about the page rendering it by [passing props](/en/basics/astro-components/#component-props) like in normal components.
93+
In most cases, your server island component can get information about the page rendering it by [passing props](/en/basics/astro-components/#component-props) like in normal components.
9494

9595
However, server islands run in their own isolated context outside of the page request. `Astro.url` and `Astro.request.url` in a server island component both return a URL that looks like `/_server-islands/Avatar` instead of the current page's URL in the browser. Additionally, if you are prerendering the page you will not have access to information such as query parameters in order to pass as props.
9696

src/content/docs/en/guides/troubleshooting.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ console.log('Hi! I’m the client. This is logged in browser dev console.');
2424

2525
A `console.log()` statement in Astro frontmatter will always output to the **terminal** running the Astro CLI. This is because Astro runs on the server, and never in the browser.
2626

27-
Code that is written or imported inside of an Astro `<script>` tag is run in the browser. Any `console.log()` statements or other debug output will be printed to the **console in your browser**.
27+
Code that is written or imported inside of an Astro `<script>` tag is run in the browser. Any `console.log()` statements or other debug output will be printed to the **console in your browser**.
2828

2929
### Debugging framework components
3030

0 commit comments

Comments
 (0)