Skip to content

feat: add language prop - #71

Merged
dguyen merged 3 commits into
mainfrom
feat/add-language-prop
Mar 18, 2026
Merged

feat: add language prop#71
dguyen merged 3 commits into
mainfrom
feat/add-language-prop

Conversation

@dguyen

@dguyen dguyen commented Mar 18, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings March 18, 2026 04:25

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an optional language prop to the embed wrappers across frameworks (Vue, Svelte, Solid, React, Preact, Angular, and the Mitosis sources) and forwards it into the iframe options payload so the hosted embed can localize UI.

Changes:

  • Add language?: string to each component’s public props type/interface.
  • Include language in the JSON options encoded into the iframe URL/hash for each embed variant (create/update/sign/multisign/direct).

Reviewed changes

Copilot reviewed 63 out of 63 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
packages/vue/src/update-template.vue Add language prop and forward into iframe options.
packages/vue/src/update-envelope.vue Add language prop and forward into iframe options.
packages/vue/src/update-document.vue Add language prop and forward into iframe options.
packages/vue/src/sign-document.vue Add language prop and forward into iframe options.
packages/vue/src/multisign-document.vue Add language prop and forward into iframe options.
packages/vue/src/direct-template.vue Add language prop and forward into iframe options.
packages/vue/src/create-template.vue Add language prop and forward into iframe options.
packages/vue/src/create-envelope.vue Add language prop and forward into iframe options.
packages/vue/src/create-document.vue Add language prop and forward into iframe options.
packages/svelte/src/update-template.svelte Add language prop and forward into iframe options.
packages/svelte/src/update-envelope.svelte Add language prop and forward into iframe options.
packages/svelte/src/update-document.svelte Add language prop and forward into iframe options.
packages/svelte/src/sign-document.svelte Add language prop and forward into iframe options.
packages/svelte/src/multisign-document.svelte Add language prop and forward into iframe options.
packages/svelte/src/direct-template.svelte Add language prop and forward into iframe options.
packages/svelte/src/create-template.svelte Add language prop and forward into iframe options.
packages/svelte/src/create-envelope.svelte Add language prop and forward into iframe options.
packages/svelte/src/create-document.svelte Add language prop and forward into iframe options.
packages/solid/src/update-template.tsx Add language prop and forward into iframe options.
packages/solid/src/update-envelope.tsx Add language prop and forward into iframe options.
packages/solid/src/update-document.tsx Add language prop and forward into iframe options.
packages/solid/src/sign-document.tsx Add language prop and forward into iframe options.
packages/solid/src/multisign-document.tsx Add language prop and forward into iframe options.
packages/solid/src/direct-template.tsx Add language prop and forward into iframe options.
packages/solid/src/create-template.tsx Add language prop and forward into iframe options.
packages/solid/src/create-envelope.tsx Add language prop and forward into iframe options.
packages/solid/src/create-document.tsx Add language prop and forward into iframe options.
packages/react/src/update-template.tsx Add language prop and forward into iframe options.
packages/react/src/update-envelope.tsx Add language prop and forward into iframe options.
packages/react/src/update-document.tsx Add language prop and forward into iframe options.
packages/react/src/sign-document.tsx Add language prop and forward into iframe options.
packages/react/src/multisign-document.tsx Add language prop and forward into iframe options.
packages/react/src/direct-template.tsx Add language prop and forward into iframe options.
packages/react/src/create-template.tsx Add language prop and forward into iframe options.
packages/react/src/create-envelope.tsx Add language prop and forward into iframe options.
packages/react/src/create-document.tsx Add language prop and forward into iframe options.
packages/preact/src/update-template.tsx Add language prop and forward into iframe options.
packages/preact/src/update-envelope.tsx Add language prop and forward into iframe options.
packages/preact/src/update-document.tsx Add language prop and forward into iframe options.
packages/preact/src/sign-document.tsx Add language prop and forward into iframe options.
packages/preact/src/multisign-document.tsx Add language prop and forward into iframe options.
packages/preact/src/direct-template.tsx Add language prop and forward into iframe options.
packages/preact/src/create-template.tsx Add language prop and forward into iframe options.
packages/preact/src/create-envelope.tsx Add language prop and forward into iframe options.
packages/preact/src/create-document.tsx Add language prop and forward into iframe options.
packages/mitosis/src/update-template.lite.tsx Add language prop and forward into iframe options (source for generated wrappers).
packages/mitosis/src/update-envelope.lite.tsx Add language prop and forward into iframe options (source for generated wrappers).
packages/mitosis/src/update-document.lite.tsx Add language prop and forward into iframe options (source for generated wrappers).
packages/mitosis/src/sign-document.lite.tsx Add language prop and forward into iframe options (source for generated wrappers).
packages/mitosis/src/multisign-document.lite.tsx Add language prop and forward into iframe options (source for generated wrappers).
packages/mitosis/src/direct-template.lite.tsx Add language prop and forward into iframe options (source for generated wrappers).
packages/mitosis/src/create-template.lite.tsx Add language prop and forward into iframe options (source for generated wrappers).
packages/mitosis/src/create-envelope.lite.tsx Add language prop and forward into iframe options (source for generated wrappers).
packages/mitosis/src/create-document.lite.tsx Add language prop and forward into iframe options (source for generated wrappers).
packages/angular/src/update-template.ts Add language input and forward into iframe options.
packages/angular/src/update-envelope.ts Add language input and forward into iframe options.
packages/angular/src/update-document.ts Add language input and forward into iframe options.
packages/angular/src/sign-document.ts Add language input and forward into iframe options.
packages/angular/src/multisign-document.ts Add language input and forward into iframe options.
packages/angular/src/direct-template.ts Add language input and forward into iframe options.
packages/angular/src/create-template.ts Add language input and forward into iframe options.
packages/angular/src/create-envelope.ts Add language input and forward into iframe options.
packages/angular/src/create-document.ts Add language input and forward into iframe options.
Comments suppressed due to low confidence (2)

packages/angular/src/update-envelope.ts:19

  • The biome-ignore lint/suspicious/noExplicitAny suppression comment is now attached to language, but the explicit any is in features (Record<string, any>). This will likely re-enable the Biome lint error for features. Move the suppression so it applies to the features line (or replace Record<string, any> with Record<string, unknown> and drop the suppression), and consider using a more professional reason than "Hehe".
  cssVars?: (CssVars & Record<string, string>) | undefined;
  darkModeDisabled?: boolean | undefined;
  language?: string | undefined; // biome-ignore lint/suspicious/noExplicitAny: Hehe

  features?: DeepPartial<EnvelopeEditorSettings> & Record<string, any>;
  onEnvelopeUpdated?: (data: {
    externalId: string | null;

packages/angular/src/create-envelope.ts:20

  • The biome-ignore lint/suspicious/noExplicitAny suppression comment is now attached to language, but the explicit any is in features (Record<string, any>). This will likely re-enable the Biome lint error for features. Move the suppression so it applies to the features line (or replace Record<string, any> with Record<string, unknown> and drop the suppression), and consider using a more professional reason than "Hehe".
  cssVars?: (CssVars & Record<string, string>) | undefined;
  darkModeDisabled?: boolean | undefined;
  language?: string | undefined; // biome-ignore lint/suspicious/noExplicitAny: Hehe

  features?: DeepPartial<EnvelopeEditorSettings> & Record<string, any>;
  onEnvelopeCreated?: (data: {
    externalId: string | null;

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +20 to 24
darkModeDisabled?: boolean | undefined;
language?: string | undefined; // biome-ignore lint/suspicious/noExplicitAny: Hehe

features?: DeepPartial<EnvelopeEditorSettings> & Record<string, any>;
onEnvelopeCreated?: (data: {
Comment on lines +13 to 17
darkModeDisabled?: boolean | undefined;
language?: string | undefined; // biome-ignore lint/suspicious/noExplicitAny: Hehe

features?: DeepPartial<EnvelopeEditorSettings> & Record<string, any>;
onEnvelopeUpdated?: (data: {
Comment on lines +15 to 17
language?: string | undefined; // biome-ignore lint/suspicious/noExplicitAny: Hehe

features?: DeepPartial<EnvelopeEditorSettings> & Record<string, any>;
Comment on lines +19 to 23
darkModeDisabled?: boolean | undefined;
language?: string | undefined; // biome-ignore lint/suspicious/noExplicitAny: Hehe

features?: DeepPartial<EnvelopeEditorSettings> & Record<string, any>;
onEnvelopeUpdated?: (data: {
Comment on lines +14 to 16
language?: string | undefined; // biome-ignore lint/suspicious/noExplicitAny: Hehe

features?: DeepPartial<EnvelopeEditorSettings> & Record<string, any>;
Comment on lines +15 to 17
language?: string | undefined; // biome-ignore lint/suspicious/noExplicitAny: Hehe

features?: DeepPartial<EnvelopeEditorSettings> & Record<string, any>;
Comment on lines +11 to 15
darkModeDisabled?: boolean | undefined;
language?: string | undefined; // biome-ignore lint/suspicious/noExplicitAny: Hehe

features?: DeepPartial<EnvelopeEditorSettings> & Record<string, any>;
onEnvelopeUpdated?: (data: {
Comment on lines 11 to 16
cssVars?: (CssVars & Record<string, string>) | undefined;
darkModeDisabled?: boolean | undefined; // biome-ignore lint/suspicious/noExplicitAny: Hehe
darkModeDisabled?: boolean | undefined;
language?: string | undefined; // biome-ignore lint/suspicious/noExplicitAny: Hehe

features?: DeepPartial<EnvelopeEditorSettings> & Record<string, any>;
onEnvelopeCreated?: (data: {
Comment on lines +10 to 14
darkModeDisabled?: boolean | undefined;
language?: string | undefined; // biome-ignore lint/suspicious/noExplicitAny: Hehe

features?: DeepPartial<EnvelopeEditorSettings> & Record<string, any>;
onEnvelopeUpdated?: (data: {
Comment on lines 10 to 15
cssVars?: (CssVars & Record<string, string>) | undefined;
darkModeDisabled?: boolean | undefined; // biome-ignore lint/suspicious/noExplicitAny: Hehe
darkModeDisabled?: boolean | undefined;
language?: string | undefined; // biome-ignore lint/suspicious/noExplicitAny: Hehe

features?: DeepPartial<EnvelopeEditorSettings> & Record<string, any>;
onEnvelopeCreated?: (data: {
@dguyen
dguyen merged commit 4b0f87e into main Mar 18, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants