Skip to content

svelte-jsx.d.ts has no "translate" html attribute support #1349

@shadow-identity

Description

@shadow-identity

Description
language-tools has no translate attribute support. The attribute is described in WATWG spec. Possible values are "yes", "no" and an empty string.

To Reproduce
Paste the attribute into any html tag:

<p translate="no">

Observe the error:

Type '{ translate: string; }' is not assignable to type 'HTMLProps<HTMLParagraphElement>'.
  Property 'translate' does not exist on type 'HTMLProps<HTMLParagraphElement>'.ts(2322)

Expected behavior
There should be no error. Hint with "yes" and "no" options should be shown.

Screenshots
image

System (please complete the following information):

  • OS: Windows 10
  • IDE: VSCode
  • Plugin/Package: "Svelte for VSCode" v105.10.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions