Skip to content

Commit

Permalink
fix: next-translate multiline key detection
Browse files Browse the repository at this point in the history
Basically lokalise#1014 but for next-translate
  • Loading branch information
noahstreller authored Sep 12, 2024
1 parent 36a3065 commit 1804584
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frameworks/next-translate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class NextTranslateFramework extends Framework {

// for visualize the regex, you can use https://regexper.com/
usageMatchRegex = [
'[^\\w\\d]t\\([\'"`]({key})[\'"`]',
'[^\\w\\d]t\\s*\\(\\s*[\'"`]({key})[\'"`]',
'[^\\w\\d]t`({key})`',
'Trans\\s+i18nKey=[\'"`]({key})[\'"`]',
]
Expand Down

0 comments on commit 1804584

Please sign in to comment.