dashboard icon indicating copy to clipboard operation
dashboard copied to clipboard

No fill on workload charts for some languages

Open romain-rossi opened this issue 1 year ago • 6 comments

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.8.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:

https://github.com/kubernetes/dashboard/blob/5e385bfbb5fcf778c1ea848bfdc6b0279b822d3a/modules/web/src/common/components/workloadstatus/component.ts#L42-L53

and the translations:

https://github.com/kubernetes/dashboard/blob/5e385bfbb5fcf778c1ea848bfdc6b0279b822d3a/modules/web/i18n/fr/messages.fr.xlf#L557-L560

https://github.com/kubernetes/dashboard/blob/5e385bfbb5fcf778c1ea848bfdc6b0279b822d3a/modules/web/i18n/fr/messages.fr.xlf#L1803-L1806

In french, the translation En cours d'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.8.0

Kubernetes version

1.27.10

Dev environment

No response

romain-rossi avatar Mar 07 '24 09:03 romain-rossi

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.

chri4774 avatar Apr 05 '24 15:04 chri4774

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-triage-robot avatar Jul 04 '24 15:07 k8s-triage-robot

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

JLO974-2 avatar Jul 18 '24 04:07 JLO974-2

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

image

mrksph avatar Aug 03 '24 16:08 mrksph