We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6aedf8f commit 03796e4Copy full SHA for 03796e4
src/frameworks/transloco.ts
@@ -25,7 +25,7 @@ export default class TranslocoFramework extends Framework {
25
// https://ngneat.github.io/transloco/docs/translation-in-the-template#structural-directive
26
'[^\\w\\d](?:t)\\([\\s\\n]*[\'"`]({key})[\'"`]',
27
// https://ngneat.github.io/transloco/docs/translation-api
28
- '[^\\w\\d](?:translate|selectTranslate|getTranslateObject|selectTranslateObject|getTranslation|setTranslationKey)\\([\\s\\n]*(.*?)[\\s\\n]*\\)',
+ '[^\\w\\d](?:translate|selectTranslate|getTranslateObject|selectTranslateObject|getTranslation|setTranslationKey)\\([\\s\\n]*["\'`](.*?)["\'`][\\s\\n]*\\)',
29
// https://ngneat.github.io/transloco/docs/translation-in-the-template#attribute-directive
30
'[^*\\w\\d]transloco=[\'"`]({key})[\'"`]',
31
]
0 commit comments