Skip to content

Vue single-file component (SFC) extractor #4

Description

@idomy

Goal

Extract user-facing strings from Vue SFCs (.vue), the same way we do for React/TSX.

Scope for a first PR

Start with the <template> block only:

  • text nodes (<p>Hello</p>)
  • a curated attribute allow-list (title, placeholder, aria-*, ...)
  • skip :class / class and directives

Pointers

  • Parse .vue with @vue/compiler-sfc (template AST) instead of Babel.
  • Mirror src/extract.mjs; keep the same record shape {file,start,end,kind,text} so apply and verify work unchanged.
  • Larger than the other issues — labeled help wanted. Ask questions on the issue before diving in.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions