Change language only on one card while keeping everything else unchanged

Hi all,

I have Home Assistant set to English language. I would like to know if there’s a way to switch the language to Italian just for a single card while keeping everything else in English.

Specifically, I have a custom button card which is used to display date and time and I would like to be able to display the date in Italian.

This is the template I have in my configuration.yaml which I am using for the “date_and_time” sensor:

# Custom Time & Date Template
template:
  - sensor:
      - name: "Date and time"
        state: "{{ as_timestamp(states('sensor.date_time_iso')) | timestamp_custom('%a %d %B %Y, %H:%M') }}"
        icon: "mdi:calendar-clock"

And this is what I would like to translate in Italian (name of the day and name of the month, circled in red):

image

Thanks

create your own date format using template sensor like i do in arabic

platform: template
sensors:
date_arabic:
value_template: " {{[
‘الإثنين’
,‘الثلاثاء’
,‘الأربعاء’
,‘الخميس’
,‘الجمعة’
,‘السبت’
,‘الأحد’]
[now().weekday()] }} {{ as_timestamp(states(‘sensor.date_time_iso’)) | timestamp_custom(’%-d’) }} {{ [
‘جانفي’
,‘فيفري’
,‘مارس’
,‘أفريل’
,‘ماي’
,‘جوان’
,‘جويلية’
,‘أوت’
,‘سبتمبر’
,‘أكتوبر’
,‘نوفمبر’
,‘ديسمبر’
][now().month-1] }} {{now().year }} "
icon_template: mdi:calendar

1 Like