From 1bd1721900b99d4adff0c780ce9608e4b0f44327 Mon Sep 17 00:00:00 2001 From: KishiTheMechanic Date: Sun, 27 Oct 2024 04:31:42 +0100 Subject: [PATCH] fix --- deno.json | 2 +- src/createTranslator.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deno.json b/deno.json index 0a97462..962ae30 100644 --- a/deno.json +++ b/deno.json @@ -1,6 +1,6 @@ { "name": "@elsoul/fresh-i18n", - "version": "0.9.11", + "version": "0.9.12", "description": "A simple and flexible internationalization (i18n) plugin for Deno's Fresh framework.", "runtimes": ["deno", "browser"], "exports": "./mod.ts", diff --git a/src/createTranslator.ts b/src/createTranslator.ts index b17400e..38b148d 100644 --- a/src/createTranslator.ts +++ b/src/createTranslator.ts @@ -6,7 +6,7 @@ */ export function createTranslator( translations: Record>, -) { +): (key: string) => string { /** * Translates a key string like 'common.title' or 'common.titlerow.title.example' * by traversing the nested structure of `translations`.