Skip to content

Commit

Permalink
fix: support snake_case translation key (#1119)
Browse files Browse the repository at this point in the history
  • Loading branch information
loukhin authored Jul 20, 2023
1 parent 7338322 commit e82d427
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 e82d427

Please sign in to comment.