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

No fill on workload charts for some languages #8753

Open
romain-rossi opened this issue Mar 7, 2024 · 6 comments · May be fixed by #9067
Open

No fill on workload charts for some languages #8753

romain-rossi opened this issue Mar 7, 2024 · 6 comments · May be fixed by #9067
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@romain-rossi
Copy link

romain-rossi commented Mar 7, 2024

What happened?

When I change the language from "English" to "French" (for example) the workload charts become black (no fill):

image

What did you expect to happen?

The charts should be green ("Running" status)

How can we reproduce it (as minimally and precisely as possible)?

  1. install the 7.0.0 chart version
  2. go to settings and change the language from "English" to "French"

Anything else we need to know?

The issue seems to be related to the method:

getCustomColor(label: string): string {
if (label.includes($localize`Running`)) {
return '#00c752';
} else if (label.includes($localize`Succeeded`)) {
return '#006028';
} else if (label.includes($localize`Pending`)) {
return '#ffad20';
} else if (label.includes($localize`Failed`)) {
return '#f00';
}
return '';
}

and the translations:

<trans-unit id="2956098160626271284" datatype="html">
<source>Running</source>
<target>En fonctionnement</target>
</trans-unit>

<trans-unit id="7873445996550708978" datatype="html">
<source>Running: <x id="PH" equiv-text="status.running"/></source>
<target>En cours d&apos;exécution: <x id="PH" equiv-text="status.running"/></target>
</trans-unit>

In french, the translation En cours d&apos;exécution: X does not include En fonctionnement so the color is not resolved.

FYI, in the previous version, the above translations contain En fonctionnement

Related issue: #7515

What browsers are you seeing the problem on?

Chrome, Microsoft Edge

Kubernetes Dashboard version

from 7.0.0 to 7.5.0

Kubernetes version

1.27.10

Dev environment

No response

@romain-rossi romain-rossi added the kind/bug Categorizes issue or PR as related to a bug. label Mar 7, 2024
@chri4774
Copy link

chri4774 commented Apr 5, 2024

I've noticed the same problem while migrating from v2.7.0 (HELM Release 6.0.8) to 7.2.0 and using german language in the dashboard.

@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jul 4, 2024
@JLO974-2
Copy link

Same for me, in french the pie charts are black. Tested with chart 7.0.0 and 7.5.0

@mrksph
Copy link

mrksph commented Aug 3, 2024

Same for me, using latest release for kubernetes dashboard. Tested with spanish, Light theme, dark theme.... All pie charts are painted black

image

@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle rotten
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Sep 3, 2024
@vittoriocanilli
Copy link

/remove-lifecycle rotten

@k8s-ci-robot k8s-ci-robot removed the lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. label Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants