totaldebug / atomic-calendar-revive

An advanced calendar card for Home Assistant Lovelace.
https://docs.totaldebug.uk/atomic-calendar-revive
MIT License
468 stars 72 forks source link

Language setting (nl) not working after save #1553

Closed benjamin-dcs closed 2 months ago

benjamin-dcs commented 3 months ago

Is there an existing issue for this?

Current Behavior

The language: nl setting does not persist after save, see screenshots

In edit:

image

In dashboard:

image

Expected behaviour

The language: nl setting persists after save

Steps To Reproduce

No response

Mode

Calendar

Card Version

v10.0.1-beta-1

Home Assistant Version

2024.8.1

Configuration

type: vertical-stack
cards:
  - type: custom:button-card
    template: header_button
    label: agenda
  - type: custom:atomic-calendar-revive
    entities:
      - entity: calendar.prive
    card_mod:
      style: |
        .single-event-container {
          grid-template-columns: 0.6fr 2fr !important;
        }
    defaultMode: Event
    language: nl
    hoursOnSameLine: true
    showRelativeTime: false
    showWeekNumber: true
    maxDaysToShow: 14

Relevant log output

No response

Code of Conduct

github-actions[bot] commented 3 months ago

Hello @benjamin-dcs, thank you for your interest in our work! If this is a bug report, please provide your configuration and any screenshots that would assist troubleshooting, otherwise we can not help you.

marksie1988 commented 2 months ago

You shouldn't need the language option, the card uses the language set in home assistant.

Could you press f12 and find any errors related to the card in the console, this will help understand why it's not working as expected.

benjamin-dcs commented 2 months ago

My system/HA is in english, but wish to use the card in Dutch. I accidentally actually solved it. I have two cards on one dashboard, thought I had copied the one to the other, but the 2nd didn't have the language setting. By adding the language parameter to the second card, they are now both in Dutch. Guess it's good to know you can't have two languages on one page 😋