-
Notifications
You must be signed in to change notification settings - Fork 917
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
fix(discover): switch language based on dataset selection #7924
fix(discover): switch language based on dataset selection #7924
Conversation
Signed-off-by: Joshua Li <[email protected]>
Signed-off-by: Joshua Li <[email protected]>
Signed-off-by: Joshua Li <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7924 +/- ##
==========================================
- Coverage 64.30% 64.30% -0.01%
==========================================
Files 3674 3674
Lines 81135 81135
Branches 12926 12927 +1
==========================================
- Hits 52173 52171 -2
- Misses 25751 25752 +1
- Partials 3211 3212 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
LGTM.
@@ -57,8 +57,8 @@ export class LanguageService { | |||
this.languages.set(config.id, config); | |||
} | |||
|
|||
public getLanguage(language: string): LanguageConfig | undefined { | |||
return this.languages.get(language); | |||
public getLanguage(languageId: string): LanguageConfig | undefined { |
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.
Is this a released public API we are changing? If unreleased ignore plz.
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.
changing the parameter variable name shouldn't affect users of this API, and regarding documentation i don't think it's released, didn't find documentation for it
* fix(discover): switch language based on dataset selection Signed-off-by: Joshua Li <[email protected]> * keep currently selected language as default option Signed-off-by: Joshua Li <[email protected]> * update supportedLanguages mock Signed-off-by: Joshua Li <[email protected]> --------- Signed-off-by: Joshua Li <[email protected]> (cherry picked from commit edabe3b) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
) * fix(discover): switch language based on dataset selection * keep currently selected language as default option * update supportedLanguages mock --------- (cherry picked from commit edabe3b) Signed-off-by: Joshua Li <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
Currently the advanced dataset selector allows user to change language, but it doesn't affect UI on submit. this PR fixes it
Issues Resolved
Screenshot
Testing the changes
Changelog
Check List
yarn test:jest
yarn test:jest_integration