Skip to content

Commit

Permalink
fix: typo npm script and error message
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Oct 23, 2023
1 parent 9080446 commit f819a44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"lint": "deno lint",
"format": "deno fmt",
"build": "unbuild",
"play:basic": "bun run ./playground/basicindex.ts",
"play:basic": "bun run ./playground/basic/index.ts",
"test": "npm run test:type && npm run test:unit",
"test:type": "vitest typecheck --run",
"test:unit": "vitest run",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ export function useTranslation<
>(event: Event): TranslationFunction<Schema, DefineLocaleMessage> {
if (event.context.i18n == null) {
throw new Error(
'middleware not initialized, please setup `onRequest` and `onAfterResponse` options of `createApp` with the middleware obtained with `defineI18nRequestMiddleware`',
'middleware not initialized, please setup `onRequest` and `onAfterResponse` options of `createApp` with the middleware obtained with `defineI18nMiddleware`',
)
}

Expand Down

0 comments on commit f819a44

Please sign in to comment.