Skip to content

Commit

Permalink
feat: add more refactor templates for svelte, close #629
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Aug 11, 2021
1 parent babed34 commit 8940cc2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/frameworks/svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ class SvelteFramework extends Framework {
refactorTemplates(keypath: string) {
return [
`$_('${keypath}')`,
`$t('${keypath}')`,
`{ $t('${keypath}') }`,
keypath,
]
}
Expand Down

0 comments on commit 8940cc2

Please sign in to comment.