From 611ae96ba8124aabb6037825aad30586fd26fb40 Mon Sep 17 00:00:00 2001 From: Supakit Khawmeewong <29707893+loukhin@users.noreply.github.com> Date: Thu, 20 Jul 2023 21:06:30 +0700 Subject: [PATCH] fix: support snake_case translation key --- src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index d1dc7eb..52ee3c8 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -175,7 +175,7 @@ type RemovePlural = Key extends `${infer Prefix}${ | '_few' | '_many' | '_other' - | `_${infer Num}`}` + | `_${number}`}` ? Prefix : Key