diff --git a/src/frameworks/svelte.ts b/src/frameworks/svelte.ts index 50585f20..503a33fd 100644 --- a/src/frameworks/svelte.ts +++ b/src/frameworks/svelte.ts @@ -23,7 +23,7 @@ class SvelteFramework extends Framework { // for visualize the regex, you can use https://regexper.com/ usageMatchRegex = [ - '\\$[_t]\\([\'"`]({key})[\'"`]', + '(\\$(_|t|format)|(get)\\(\s*(_|t|format)\s*\\))\(\s*[\'"`]({key})[\'"`]', ] refactorTemplates(keypath: string) {