Skip to content

Commit

Permalink
fix: support snake_case translation key
Browse files Browse the repository at this point in the history
  • Loading branch information
loukhin committed Jul 20, 2023
1 parent 7338322 commit 611ae96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ type RemovePlural<Key extends string> = Key extends `${infer Prefix}${
| '_few'
| '_many'
| '_other'
| `_${infer Num}`}`
| `_${number}`}`
? Prefix
: Key

Expand Down

0 comments on commit 611ae96

Please sign in to comment.