sunsynk-power-flow-card: Interface does not translate - HA language not detected

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I have installed all the update for a couple of months and though the language translation issue will be solved. Now I guess it’s time to report this issue. My HA interface is in French but the add-on labels are in English. Looking at the SRC folder, there is a file for french translation and inside the sunsynk-power-flow-card.js file I can found the french strings. I have no clue what could be wrong.

Steps To Reproduce

No response

Expected behaviour

Card strings should translate

Card Version

2.10.0

Home Assistant Version

2023.10.0

Configuration

type: custom:sunsynk-power-flow-card
cardstyle: full
panel_mode: false
large_font: false
show_solar: true
show_battery: true
inverter:
  modern: true
  colour: lightgrey
  autarky: power
  model: sunsynk
  auto_scale: true
battery:
  energy: 0
  shutdown_soc: 20
  invert_power: true
  colour: '#f06292'
  show_daily: true
  animation_speed: 6
  max_power: 2000
  full_capacity: 100
  empty_capacity: 0
  show_absolute: true
  auto_scale: false
solar:
  colour: orange
  show_daily: true
  mppts: 2
  animation_speed: 9
  max_power: 4920
  pv1_name: Ouest
  pv2_name: Est
  auto_scale: false
load:
  colour: '#5fb6ad'
  show_daily: true
  show_daily_aux: true
  show_aux: true
  invert_aux: false
  animation_speed: 8
  max_power: 5000
  aux_name: Surplus (V.E.)
  show_absolute_aux: true
  aux_type: default
  aux_colour: lightblue
  aux_off_colour: lightgrey
  aux_loads: 0
  aux_load1_name: Véhicule
  aux_load1_icon: mdi:car-electric-outline
  aux_load2_name: Piscine
  aux_load2_icon: mdi:pool
  additional_loads: 0
  load1_name: Secouru
  load1_icon: mdi:power-plug-battery-outline
  auto_scale: false
grid:
  colour: '#488fc2'
  no_grid_colour: rgb(192,0,0)
  show_daily_buy: true
  show_daily_sell: true
  show_nonessential: true
  nonessential_icon: default
  nonessential_name: Gros consommateurs
  additional_loads: 0
  load1_name: Non essentielles
  load1_icon: mdi:washing-machine
  invert_grid: false
  animation_speed: 8
  max_power: 6000
  auto_scale: false
entities:

Relevant log output

No response

About this issue

  • Original URL
  • State: closed
  • Created 9 months ago
  • Comments: 17 (8 by maintainers)

Most upvoted comments

@slipx06 This worked, but wth 😳 Why did all other cards show up correctly? Doing this would have never occoured to me. Thank you!

I also encountered this issue and I am staying logged in. In Fully Kiosk Browser on my Huawei Tab, the language in my profile is set to German but the cad shows English, while on my Desktop, the card shows German. All other cards on my Tablet show up in German on both devices, so this is clearly a card issue. @slipx06 please re-open this issue.

PS: Bought you 3 coffees anyway, since this card is very nice and offers so much functionality.

Hi, I already did the test using an other browser (Edge instead of FF) and this is how I found the strange behavior. Clearing the browser cache reset the language selection. You must stay logged after changing the user’s language. Many thanks for you nice add-on. I run it for a DEYE 5K.