From 78fcae404409937ef3d2324b2698ea82da668397 Mon Sep 17 00:00:00 2001 From: erik-gullberg Date: Tue, 4 Aug 2026 11:07:27 +0200 Subject: [PATCH 1/2] feat(jsx): add global translate attribute to HTMLAttributes --- src/declarations/stencil-public-runtime.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/declarations/stencil-public-runtime.ts b/src/declarations/stencil-public-runtime.ts index 67ee61ca002..ae03e217379 100644 --- a/src/declarations/stencil-public-runtime.ts +++ b/src/declarations/stencil-public-runtime.ts @@ -1583,6 +1583,10 @@ export namespace JSXBase { tabIndex?: number; tabindex?: number | string; title?: string; + // The `'yes' | 'no'` literals provide autocomplete for the common values, + // while `(string & {})` keeps that autocomplete without rejecting values + // that are widened to `string` (e.g. spread from an object literal). + translate?: 'yes' | 'no' | (string & {}); // These types don't allow you to use popover as a boolean attribute // so you can't write HTML like `
` and get the default value. // Developer must explicitly specify one of the valid popover values or it will fallback From 0b8ea561fd5e19981dbfb2d9adabc35b6cdaf2dd Mon Sep 17 00:00:00 2001 From: Erik Gullberg <126695088+erik-gullberg@users.noreply.github.com> Date: Tue, 4 Aug 2026 13:00:39 +0200 Subject: [PATCH 2/2] Update src/declarations/stencil-public-runtime.ts Co-authored-by: John Jenkins --- src/declarations/stencil-public-runtime.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/declarations/stencil-public-runtime.ts b/src/declarations/stencil-public-runtime.ts index ae03e217379..3c01cddb25a 100644 --- a/src/declarations/stencil-public-runtime.ts +++ b/src/declarations/stencil-public-runtime.ts @@ -1583,9 +1583,7 @@ export namespace JSXBase { tabIndex?: number; tabindex?: number | string; title?: string; - // The `'yes' | 'no'` literals provide autocomplete for the common values, - // while `(string & {})` keeps that autocomplete without rejecting values - // that are widened to `string` (e.g. spread from an object literal). + // `(string & {})` keeps autocomplete without rejecting vals spread from an object literal translate?: 'yes' | 'no' | (string & {}); // These types don't allow you to use popover as a boolean attribute // so you can't write HTML like `
` and get the default value.