Skip to content

Commit 75b1d15

Browse files
committed
fix: typo with typos
1 parent 11dd1a3 commit 75b1d15

File tree

5 files changed

+29
-6
lines changed

5 files changed

+29
-6
lines changed

.github/workflows/typos.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Typos
2+
on:
3+
pull_request:
4+
branches-ignore:
5+
- gh-pages
6+
- releases/**
7+
types:
8+
- opened
9+
- synchronize
10+
- reopened
11+
12+
jobs:
13+
run:
14+
name: Spell check with Typos
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
19+
with:
20+
fetch-depth: 0
21+
22+
- name: Spell check
23+
uses: crate-ci/typos@0c17dabcee8b8f1957fa917d17393a23e02e1583 # v1.36.3

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![npm downloads][npm-downloads-src]][npm-downloads-href]
55
[![CI][ci-src]][ci-href]
66

7-
Internationalization middleware & utilities for h3 (and therfore also for Nitro, which is using h3)
7+
Internationalization middleware & utilities for h3 (and therefore also for Nitro, which is using h3)
88

99
## 🌟 Features
1010

@@ -209,7 +209,7 @@ const middleware = defineI18nMiddleware<[ResourceSchema], 'en' | 'ja'>({
209209
})
210210

211211
const app = createApp({ ...middleware })
212-
// someting your implementation code ...
212+
// something your implementation code ...
213213
// ...
214214
```
215215

@@ -310,7 +310,7 @@ router.get(
310310
The advantage of this way is that it is not necessary to specify the resource schema in the `useTranslation` type parameter.
311311
312312
313-
## 🛠️ Utilites & Helpers
313+
## 🛠️ Utilities & Helpers
314314
315315
`@intlify/h3` has a concept of composable utilities & helpers.
316316

playground/typesafe-schema/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ const middleware = defineI18nMiddleware<[ResourceSchema], 'en' | 'ja'>({
2121
})
2222

2323
const app = createApp({ ...middleware })
24-
// someting your implementation code ...
24+
// something your implementation code ...
2525
// ...

src/index.test-d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ declare module './index.ts' {
1414

1515
test('defineI18nMiddleware', () => {
1616
const en = {
17-
hello: 'workd',
17+
hello: 'worked',
1818
}
1919
type ResourceSchema = typeof en
2020
defineI18nMiddleware<[ResourceSchema], 'en' | 'ja'>({

src/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ describe('useTranslation', () => {
8181
expect(t('hello', { name: 'h3' })).toEqual('こんにちは, h3')
8282
})
8383

84-
test('not initilize context', async () => {
84+
test('not initialize context', async () => {
8585
const eventMock = {
8686
node: {
8787
req: {

0 commit comments

Comments
 (0)