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

add fallback value to i18n and fix inconsistent probelm #166

Merged
merged 2 commits into from
Jan 15, 2025

Conversation

warjiang
Copy link
Contributor

What type of PR is this?
Optimize i18n usage and fix inconsistent language problem

/kind bug
/kind cleanup

What this PR does / why we need it:

  • add fallback for i18n function, before i18n.t('6860e13ac48e930f8076ebfe37176b78'), now we add the fallback value i18n.t('6860e13ac48e930f8076ebfe37176b78', '节点数量'), i will make the i18n translation more robust for any scenario of network.
  • fix inconsistent problems.
    Which issue(s) this PR fixes:
    Fixes Inconsistent Language Display in Karmada Dashboard #161

Special notes for your reviewer:
this PR will be hard to review it carefully, because we changed the usage of i18n method acrocss the whole project, so just go ahead, and i've checked the inconsistent problems locally.

here is the screenshot:
image

image

Does this PR introduce a user-facing change?:

NONE

Signed-off-by: warjiang <1096409085@qq.com>
Signed-off-by: warjiang <1096409085@qq.com>
@karmada-bot karmada-bot added the kind/bug Categorizes issue or PR as related to a bug. label Jan 15, 2025
@karmada-bot karmada-bot requested a review from jhnine January 15, 2025 01:40
@karmada-bot karmada-bot added the kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. label Jan 15, 2025
@karmada-bot karmada-bot requested a review from samzong January 15, 2025 01:40
@karmada-bot karmada-bot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Jan 15, 2025
@RainbowMango RainbowMango added the tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges. label Jan 15, 2025
Copy link
Member

@RainbowMango RainbowMango left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve
Thanks for your hard work!

@karmada-bot karmada-bot added the lgtm Indicates that a PR is ready to be merged. label Jan 15, 2025
@karmada-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: RainbowMango

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

@karmada-bot karmada-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 15, 2025
@karmada-bot karmada-bot merged commit 466dd4d into karmada-io:main Jan 15, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/bug Categorizes issue or PR as related to a bug. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm Indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inconsistent Language Display in Karmada Dashboard
3 participants