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: Improve the internationalization of the frontend. #7778

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

ssongliu
Copy link
Member

No description provided.

Copy link

f2c-ci-robot bot commented Jan 27, 2025

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.

@@ -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);
},
Copy link
Member

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"
Copy link
Member

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);
},
Copy link
Member

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.

Copy link
Member

@wanghe-fit2cloud wanghe-fit2cloud left a comment

Choose a reason for hiding this comment

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

/lgtm

@wanghe-fit2cloud
Copy link
Member

/approve

Copy link

f2c-ci-robot bot commented Jan 27, 2025

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@f2c-ci-robot f2c-ci-robot bot merged commit 40b099a into dev-v2 Jan 27, 2025
6 checks passed
@f2c-ci-robot f2c-ci-robot bot deleted the pr@dev-v2@fix_i18n branch January 27, 2025 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants