From 6c889e29df87a566dfc022f35d2bd7bf3a174b2b Mon Sep 17 00:00:00 2001 From: KishiTheMechanic Date: Sun, 27 Oct 2024 00:05:43 +0200 Subject: [PATCH] fix --- deno.json | 2 +- src/i18nPlugin.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deno.json b/deno.json index 8eb983a..5ffe047 100644 --- a/deno.json +++ b/deno.json @@ -1,6 +1,6 @@ { "name": "@elsoul/fresh-i18n", - "version": "0.9.1", + "version": "0.9.2", "description": "A simple and flexible internationalization (i18n) plugin for Deno's Fresh framework.", "runtimes": ["deno", "browser"], "exports": "./mod.ts", diff --git a/src/i18nPlugin.ts b/src/i18nPlugin.ts index 6b60ff1..ba42f21 100644 --- a/src/i18nPlugin.ts +++ b/src/i18nPlugin.ts @@ -41,7 +41,7 @@ async function readJsonFile(filePath: string): Promise> { */ export const i18nPlugin = ( { languages, defaultLanguage, localesDir }: I18nOptions, -): MiddlewareFn => { +): MiddlewareFn => { return async (ctx) => { const url = new URL(ctx.req.url) const pathSegments = url.pathname.split('/').filter(Boolean)