mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-10 23:36:34 +01:00
added localization support for date
This commit is contained in:
12
README.md
12
README.md
@@ -84,6 +84,13 @@ The easiest way to install it is through Home Assistant's Supervisor Add-on Stor
|
||||
|
||||

|
||||
|
||||
#### Add babel package to AppDaemon Container (Optional)
|
||||
|
||||
For localisation format (date in your local language) you need to add the python package babel to your AppDaemon Installation.
|
||||
|
||||

|
||||
|
||||
|
||||
### Installing Studio Code Server (optional, recommended)
|
||||
|
||||
You will need a way to edit the `apps.yaml` config file in the Appdaemon folder.
|
||||
@@ -251,9 +258,10 @@ nspanel-1:
|
||||
value: 10
|
||||
- time: "23:00:00"
|
||||
value: 0
|
||||
locale: "de_DE"
|
||||
locale: "de_DE" # only used if babel python package is installed
|
||||
dateFormatBabel: "full" # only used if babel python package is installed
|
||||
timeFormat: "%H:%M"
|
||||
dateFormat: "%A, %d. %B %Y"
|
||||
dateFormat: "%A, %d. %B %Y" # ignored if babel python package is installed
|
||||
weatherEntity: weather.example
|
||||
pages:
|
||||
- type: cardEntities
|
||||
|
||||
Reference in New Issue
Block a user