Migrate date services to support translations (#96317)

pull/96480/head
Franck Nijhof 2023-07-12 13:42:29 +02:00 committed by GitHub
parent d0258c8fc8
commit c6a9c6c948
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 4 deletions

View File

@ -1,13 +1,9 @@
set_value:
name: Set Date
description: Set the date for a date entity.
target:
entity:
domain: date
fields:
date:
name: Date
description: The date to set.
required: true
example: "2022/11/01"
selector:

View File

@ -4,5 +4,17 @@
"_": {
"name": "[%key:component::date::title%]"
}
},
"services": {
"set_value": {
"name": "Set date",
"description": "Sets the date.",
"fields": {
"date": {
"name": "Date",
"description": "The date to set."
}
}
}
}
}