Skip to content
This repository was archived by the owner on Oct 15, 2026. It is now read-only.

feat(copilot): set language via widget config - #2364

Merged
asvishnyakov merged 4 commits into
Chainlit:mainfrom
xjose97x:feat/copilot-custom-lang
Aug 5, 2025
Merged

asvishnyakov merged 4 commits into
Chainlit:mainfrom
xjose97x:feat/copilot-custom-lang

Conversation

@xjose97x

@xjose97x xjose97x commented Aug 5, 2025 •

Copy link
Copy Markdown
Contributor

Introduces an optional language property on IWidgetConfig to give developers explicit control over Chainlit’s UI language. When provided, the widget will use that value; if omitted, it will continue to fall back to the browser’s navigator.language property. This change gives flexibility to explicitly define the language.

Change summary

  • New config option: language?: string
  • Behavior:
    • If set: use the specified language code.
    • If unset: default to navigator.language. (which is the current behavior)

@xjose97x
xjose97x marked this pull request as ready for review August 5, 2025 14:53
@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. frontend Pertains to the frontend. labels Aug 5, 2025
@asvishnyakov

Copy link
Copy Markdown
Contributor

@xjose97x My special "thank you!" for the e2e tests and reused code in them

@asvishnyakov
asvishnyakov added this pull request to the merge queue Aug 5, 2025
Merged via the queue into Chainlit:main with commit bc1aeaf Aug 5, 2025
@xjose97x

xjose97x commented Aug 6, 2025

Copy link
Copy Markdown
Contributor Author

@xjose97x My special "thank you!" for the e2e tests and reused code in them

My pleasure, Aleksandr! Happy to help :)!

asvishnyakov added a commit to Chainlit/docs that referenced this pull request Aug 7, 2025
@xjose97x
xjose97x deleted the feat/copilot-custom-lang branch August 8, 2025 18:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

frontend Pertains to the frontend. size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants