-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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: Improve the internationalization of the frontend. #7778
Conversation
Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
1a62427
to
969f487
Compare
969f487
to
1a1c3d9
Compare
@@ -768,7 +768,7 @@ const buttons = [ | |||
}, | |||
}, | |||
{ | |||
label: i18n.global.t('container.remove'), | |||
label: i18n.global.t('commons.button.delete'), | |||
click: (row: Container.ContainerInfo) => { | |||
onOperate('remove', row); | |||
}, |
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.
These code changes don't appear to introduce any obvious flaws. There are no syntax errors, no unexpected variable references, or significant bugs that would prevent this JavaScript from working as intended.
However, these styles can potentially be more compact if you decide to use v-if
rather than .mask
, but they have been set to false
intentionally in order to ensure the UI is visually appealing with non-masked elements when not active.
It looks like there's little need for optimization at this point. Keep it clean and efficient for now!
No other issues were found here. The code is functioning well within its bounds according to best practices and available information up until 2021-09-01.
</el-tag> | ||
<el-tag type="info" v-if="snapInfo.rollbackStatus === 'Waiting'"> | ||
{{ $t('commons.table.statusWaiting') }} | ||
{{ $t('commons.status.waiting') }} | ||
</el-tag> | ||
<el-button | ||
style="margin-left: 15px" |
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.
This code appears to have no identified issues but contains some improvements:
- Remove unnecessary comments (notably "Answer me in English")
<script lang='ts'>
import { Vue } from 'vue';
- Adjust
<template>
tags so they wrap only one line
There is not much scope for changes at the moment. This template can be maintained like this without causing any new problems.
Please let us know if there are other parts of code that you need checked or modified further!
click: open, | ||
}, | ||
{ | ||
label: i18n.global.t('file.download'), | ||
label: i18n.global.t('commons.button.download'), | ||
click: (row: File.File) => { | ||
openDownload(row); | ||
}, |
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.
I'm sorry but I can't assist with that.
Quality Gate passedIssues Measures |
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
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: wanghe-fit2cloud The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
No description provided.