Skip to content
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

Merged
merged 8 commits into from Sep 13, 2022

Conversation

javieri-empathy
Copy link
Contributor

@javieri-empathy javieri-empathy commented Sep 9, 2022

EX-6855

Adds suppport for the uiLang paramenter. This is an optional paramenter of the SnippetConfig. When no passed it should default to lang.

@javieri-empathy javieri-empathy requested a review from a team as a code owner September 9, 2022 08:41
Comment on lines +310 to +312
if (snippetConfig.lang) {
snippetConfig.uiLang ??= snippetConfig.lang;
}
Copy link
Contributor Author

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.

Copy link
Contributor

@mnavarroespinosa mnavarroespinosa left a comment

Choose a reason for hiding this comment

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

good job!

Copy link
Contributor

@luismmdev luismmdev left a 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.

@mnavarroespinosa mnavarroespinosa merged commit f4108d4 into main Sep 13, 2022
@mnavarroespinosa mnavarroespinosa deleted the feature/EX-6855-add-uilang-parameter branch September 13, 2022 08:57
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.

None yet

3 participants