diff --git a/package.json b/package.json index b371d20..f3a0725 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/index.ts b/src/index.ts index c0be4c1..41403d5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -344,7 +344,7 @@ export function useTranslation< >(event: Event): TranslationFunction { 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`', ) }