Skip to content

Commit 17ea58e

Browse files
committed
chore: spelling
1 parent babecfe commit 17ea58e

File tree

13 files changed

+17
-17
lines changed

13 files changed

+17
-17
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,15 +153,15 @@ You can do `import { ... } from '@intlify/utils'` the above utilities
153153
- `tryPathLocale`
154154
- `tryQueryLocale`
155155

156-
The about utilies functions accpet Web APIs such as [Request](https://developer.mozilla.org/en-US/docs/Web/API/Request) and [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) that is supported by JS environments (such as Deno, Bun, and Browser)
156+
The about utilities functions accept Web APIs such as [Request](https://developer.mozilla.org/en-US/docs/Web/API/Request) and [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) that is supported by JS environments (such as Deno, Bun, and Browser)
157157

158158
#### Specialized environments
159159

160160
If you will use Node.js and H3, You can do `import { ... } from '@intlify/utils/{ENV}'` the above utilities.
161161

162162
The namespace `{ENV}` is one of the following:
163163

164-
- `node`: accpet `IncomingMessage` and `Outgoing` by Node.js [http](https://nodejs.org/api/http.html) module
164+
- `node`: accept `IncomingMessage` and `Outgoing` by Node.js [http](https://nodejs.org/api/http.html) module
165165
- `h3`: accept `H3Event` by HTTP framework [h3](https://github.com/unjs/h3)
166166
- `hono`: accept `Context` by edge-side web framework [hono](https://github.com/honojs/hono)
167167

deno/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,15 +153,15 @@ You can do `import { ... } from '@intlify/utils'` the above utilities
153153
- `tryPathLocale`
154154
- `tryQueryLocale`
155155

156-
The about utilies functions accpet Web APIs such as [Request](https://developer.mozilla.org/en-US/docs/Web/API/Request) and [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) that is supported by JS environments (such as Deno, Bun, and Browser)
156+
The about utilities functions accept Web APIs such as [Request](https://developer.mozilla.org/en-US/docs/Web/API/Request) and [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) that is supported by JS environments (such as Deno, Bun, and Browser)
157157

158158
#### Specialized environments
159159

160160
If you will use Node.js and H3, You can do `import { ... } from '@intlify/utils/{ENV}'` the above utilities.
161161

162162
The namespace `{ENV}` is one of the following:
163163

164-
- `node`: accpet `IncomingMessage` and `Outgoing` by Node.js [http](https://nodejs.org/api/http.html) module
164+
- `node`: accept `IncomingMessage` and `Outgoing` by Node.js [http](https://nodejs.org/api/http.html) module
165165
- `h3`: accept `H3Event` by HTTP framework [h3](https://github.com/unjs/h3)
166166
- `hono`: accept `Context` by edge-side web framework [hono](https://github.com/honojs/hono)
167167

deno/locale.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ export type ParseScriptSubtag<
258258
> = Result
259259

260260
/**
261-
* paser unicode script subtag (EBNF: = alpha{4};)
261+
* parser unicode script subtag (EBNF: = alpha{4};)
262262
* https://unicode.org/reports/tr35/#unicode_script_subtag
263263
*/
264264
// TODO: Check if the script subtag is in CLDR

deno/shared.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export let pathLanguageParser: PathLanguageParser = /* #__PURE__*/ createPathInd
131131
/**
132132
* register the path language parser
133133
*
134-
* @description register a parser to be used in the `getPathLanugage` utility function
134+
* @description register a parser to be used in the `getPathLanguage` utility function
135135
*
136136
* @param {PathLanguageParser} parser the path language parser
137137
*/

deno/web.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export function getHeaderLanguages(
5454
/**
5555
* get language from header
5656
*
57-
* @description parse header string, default `accept-language`. if you use `accept-language`, this function retuns the **first language tag** of `accept-language` header.
57+
* @description parse header string, default `accept-language`. if you use `accept-language`, this function returns the **first language tag** of `accept-language` header.
5858
*
5959
* @example
6060
* example for Web API request on Deno:

scripts/deno.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ async function main() {
2626
throw new Error(`not found ${destPath}`)
2727
}
2828

29-
console.log('copy some source files to denoland hosting directries 🦕 ...')
29+
console.log('copy some source files to denoland hosting directories 🦕 ...')
3030

3131
// copy docs
3232
for (const p of ['README.md', 'LICENSE']) {

src/h3.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export function getHeaderLanguages(event: H3Event, {
5454
/**
5555
* get language from header
5656
*
57-
* @description parse header string, default `accept-language`. if you use `accept-language`, this function retuns the **first language tag** of `accept-language` header.
57+
* @description parse header string, default `accept-language`. if you use `accept-language`, this function returns the **first language tag** of `accept-language` header.
5858
*
5959
* @example
6060
* example for h3:

src/hono.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export function getHeaderLanguages(context: Context, {
5555
/**
5656
* get language from header
5757
*
58-
* @description parse header string, default `accept-language`. if you use `accept-language`, this function retuns the **first language tag** of `accept-language` header.
58+
* @description parse header string, default `accept-language`. if you use `accept-language`, this function returns the **first language tag** of `accept-language` header.
5959
*
6060
* @example
6161
* example for Hone:

src/locale.test-d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ test('ParseVariantsSubtag', () => {
286286
>()
287287
})
288288

289-
test('ParseUnicodeLangugageId', () => {
289+
test('ParseUnicodeLanguageId', () => {
290290
/**
291291
* Success cases
292292
*/
@@ -312,7 +312,7 @@ test('ParseUnicodeLangugageId', () => {
312312
]
313313
>()
314314

315-
/** Erros */
315+
/** Errors */
316316
expectTypeOf<ParseUnicodeLanguageId<'a-ana-p-jauer-jauer'>>().toMatchTypeOf<
317317
[
318318
{ lang: never; script: never; region: never; variants: [] },

src/locale.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ export type ParseScriptSubtag<
258258
> = Result
259259

260260
/**
261-
* paser unicode script subtag (EBNF: = alpha{4};)
261+
* parse unicode script subtag (EBNF: = alpha{4};)
262262
* https://unicode.org/reports/tr35/#unicode_script_subtag
263263
*/
264264
// TODO: Check if the script subtag is in CLDR

src/node.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export function getHeaderLanguages(
5555
/**
5656
* get language from header
5757
*
58-
* @description parse header string, default `accept-language`. if you use `accept-language`, this function retuns the **first language tag** of `accept-language` header.
58+
* @description parse header string, default `accept-language`. if you use `accept-language`, this function returns the **first language tag** of `accept-language` header.
5959
*
6060
* @example
6161
* example for Node.js request:
@@ -577,7 +577,7 @@ let navigatorLanguage = ''
577577
* @description
578578
* You can get the language tag from system environment variables.
579579
*
580-
* @returns {string} {@link https://datatracker.ietf.org/doc/html/rfc4646#section-2.1 | BCP 47 language tag}, if you can't get the language tag, return a enmpty string.
580+
* @returns {string} {@link https://datatracker.ietf.org/doc/html/rfc4646#section-2.1 | BCP 47 language tag}, if you can't get the language tag, return a empty string.
581581
*/
582582
function getNavigatorLanguage(): string {
583583
return navigatorLanguage ||

src/shared.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export let pathLanguageParser: PathLanguageParser = /* #__PURE__*/ createPathInd
131131
/**
132132
* register the path language parser
133133
*
134-
* @description register a parser to be used in the `getPathLanugage` utility function
134+
* @description register a parser to be used in the `getPathLanguage` utility function
135135
*
136136
* @param {PathLanguageParser} parser the path language parser
137137
*/

src/web.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export function getHeaderLanguages(
5454
/**
5555
* get language from header
5656
*
57-
* @description parse header string, default `accept-language`. if you use `accept-language`, this function retuns the **first language tag** of `accept-language` header.
57+
* @description parse header string, default `accept-language`. if you use `accept-language`, this function returns the **first language tag** of `accept-language` header.
5858
*
5959
* @example
6060
* example for Web API request on Deno:

0 commit comments

Comments
 (0)