-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add uiLang
parameter
#714
Conversation
if (snippetConfig.lang) { | ||
snippetConfig.uiLang ??= snippetConfig.lang; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The watcher approach, while ideal to have in one place the side effects of mutating the snippet config brought some issues, as you lost the information of which properties where modified, so instead I opted to do a more imperative approach in the only method that had all the information we needed to make a decision.
packages/x-components/src/x-installer/x-installer/x-installer.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good job!
packages/x-components/src/x-installer/x-installer/x-installer.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good job! @mnavarroespinosa suggested a change that I think might be interesting to do now. If you don't think so, let me know and I'll approve the pr.
EX-6855
Adds suppport for the
uiLang
paramenter. This is an optional paramenter of theSnippetConfig
. When no passed it should default tolang
.