Skip to content

Commit

Permalink
Add 'translate' key to HTMLAttributes interface (#6)
Browse files Browse the repository at this point in the history
This is important e.g. for Progressive Web Apps (PWAs) where you do not want to avoid translation suggestions.
  • Loading branch information
toniengelhardt committed Oct 18, 2022
1 parent 6d3fed4 commit 4ad3745
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/schema/src/html-attributes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ export interface HtmlAttributes {
* The dir global attribute is an enumerated attribute that indicates the directionality of the element's text.
*/
dir?: 'ltr' | 'rtl' | 'auto'
/**
* The translate global attribute is an enumerated attribute that is used to specify whether an element's
* translatable attribute values and its Text node children should be translated when the page is localized,
* or whether to leave them unchanged.
*
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/translate
*/
translate?: 'yes' | 'no'
/**
* The class global attribute is a space-separated list of the case-sensitive classes of the element.
*
Expand Down

0 comments on commit 4ad3745

Please sign in to comment.