mirror of
https://github.com/home-assistant/core.git
synced 2026-05-08 17:49:37 +01:00
Add missing translations for Telegram bot (#166581)
Co-authored-by: Robert Resch <robert@resch.dev>
This commit is contained in:
@@ -188,7 +188,7 @@ class OptionsFlowHandler(OptionsFlow):
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class TelgramBotConfigFlow(ConfigFlow, domain=DOMAIN):
|
class TelegramBotConfigFlow(ConfigFlow, domain=DOMAIN):
|
||||||
"""Handle a config flow for Telegram."""
|
"""Handle a config flow for Telegram."""
|
||||||
|
|
||||||
VERSION = 1
|
VERSION = 1
|
||||||
|
|||||||
@@ -225,9 +225,9 @@ send_media_group:
|
|||||||
multiple: true
|
multiple: true
|
||||||
label_field: url
|
label_field: url
|
||||||
description_field: caption
|
description_field: caption
|
||||||
|
translation_key: "media"
|
||||||
fields:
|
fields:
|
||||||
media_type:
|
media_type:
|
||||||
label: Media type
|
|
||||||
selector:
|
selector:
|
||||||
select:
|
select:
|
||||||
options:
|
options:
|
||||||
@@ -237,20 +237,16 @@ send_media_group:
|
|||||||
- "video"
|
- "video"
|
||||||
translation_key: "media_type"
|
translation_key: "media_type"
|
||||||
caption:
|
caption:
|
||||||
label: Caption
|
|
||||||
selector:
|
selector:
|
||||||
text:
|
text:
|
||||||
url:
|
url:
|
||||||
label: URL
|
|
||||||
selector:
|
selector:
|
||||||
text:
|
text:
|
||||||
type: url
|
type: url
|
||||||
verify_ssl:
|
verify_ssl:
|
||||||
label: Verify SSL
|
|
||||||
selector:
|
selector:
|
||||||
boolean:
|
boolean:
|
||||||
authentication:
|
authentication:
|
||||||
label: Authentication
|
|
||||||
selector:
|
selector:
|
||||||
select:
|
select:
|
||||||
options:
|
options:
|
||||||
@@ -259,16 +255,13 @@ send_media_group:
|
|||||||
- "bearer_token"
|
- "bearer_token"
|
||||||
translation_key: "authentication"
|
translation_key: "authentication"
|
||||||
username:
|
username:
|
||||||
label: Username
|
|
||||||
selector:
|
selector:
|
||||||
text:
|
text:
|
||||||
password:
|
password:
|
||||||
label: Password
|
|
||||||
selector:
|
selector:
|
||||||
text:
|
text:
|
||||||
type: password
|
type: password
|
||||||
file:
|
file:
|
||||||
label: File
|
|
||||||
selector:
|
selector:
|
||||||
text:
|
text:
|
||||||
parse_mode:
|
parse_mode:
|
||||||
|
|||||||
@@ -279,6 +279,18 @@
|
|||||||
"upload_voice": "Uploading voice"
|
"upload_voice": "Uploading voice"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"media": {
|
||||||
|
"fields": {
|
||||||
|
"authentication": "Authentication",
|
||||||
|
"caption": "Caption",
|
||||||
|
"file": "File",
|
||||||
|
"media_type": "Media type",
|
||||||
|
"password": "Password",
|
||||||
|
"url": "URL",
|
||||||
|
"username": "Username",
|
||||||
|
"verify_ssl": "Verify SSL"
|
||||||
|
}
|
||||||
|
},
|
||||||
"media_type": {
|
"media_type": {
|
||||||
"options": {
|
"options": {
|
||||||
"animation": "Animation",
|
"animation": "Animation",
|
||||||
|
|||||||
Reference in New Issue
Block a user