Skip to content

Commit

Permalink
fix: transloco translate api not detected properly (#984)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bricklou authored Aug 27, 2023
1 parent 6aedf8f commit 03796e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frameworks/transloco.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default class TranslocoFramework extends Framework {
// https://ngneat.github.io/transloco/docs/translation-in-the-template#structural-directive
'[^\\w\\d](?:t)\\([\\s\\n]*[\'"`]({key})[\'"`]',
// https://ngneat.github.io/transloco/docs/translation-api
'[^\\w\\d](?:translate|selectTranslate|getTranslateObject|selectTranslateObject|getTranslation|setTranslationKey)\\([\\s\\n]*(.*?)[\\s\\n]*\\)',
'[^\\w\\d](?:translate|selectTranslate|getTranslateObject|selectTranslateObject|getTranslation|setTranslationKey)\\([\\s\\n]*["\'`](.*?)["\'`][\\s\\n]*\\)',
// https://ngneat.github.io/transloco/docs/translation-in-the-template#attribute-directive
'[^*\\w\\d]transloco=[\'"`]({key})[\'"`]',
]
Expand Down

0 comments on commit 03796e4

Please sign in to comment.