-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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][UI] Fix data-quality component multi-language support. #10202
Conversation
const items = JSON.parse(result).map((item: IResponseJsonItem) => { | ||
item.props.placeholder = t('project.node.' + item.props.placeholder.split(' ').join('_').split(',').join('').toLowerCase()) | ||
return formatResponseJson(item) | ||
}) |
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.
It's better to handle the placeholder format in the formatResponseJson function as well.
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.
Codecov Report
@@ Coverage Diff @@
## dev #10202 +/- ##
============================================
- Coverage 40.94% 40.92% -0.02%
+ Complexity 4732 4728 -4
============================================
Files 854 854
Lines 34553 34553
Branches 3818 3818
============================================
- Hits 14148 14142 -6
- Misses 19051 19053 +2
- Partials 1354 1358 +4
Continue to review full report at Codecov.
|
Kudos, SonarCloud Quality Gate passed!
|
* [Fix][UI] Fix data-quality component multi-language support. * [Fix][UI] Fix data-quality component multi-language support. (cherry picked from commit c8a4c69)
…10202) * [Fix][UI] Fix data-quality component multi-language support. * [Fix][UI] Fix data-quality component multi-language support.
Purpose of the pull request
close #10138
![image](https://user-images.githubusercontent.com/19239641/169787047-d4831f41-9c3d-4eb0-9381-35430e43a08f.png)
![image](https://user-images.githubusercontent.com/19239641/169787187-69f73416-6279-43f5-9494-75bb1f3262cf.png)
Brief change log
Verify this pull request
This pull request is code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows: