Skip to content

Commit 5c520f2

Browse files
committed
selector translations
1 parent bb0d76a commit 5c520f2

File tree

2 files changed

+31
-16
lines changed

2 files changed

+31
-16
lines changed

homeassistant/components/ntfy/services.yaml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -97,22 +97,19 @@ publish:
9797
label_field: "label"
9898
description_field: "url"
9999
multiple: true
100+
translation_key: view
100101
fields:
101102
label:
102-
label: Label
103103
selector:
104104
text:
105105
url:
106-
label: URL
107106
selector:
108107
text:
109108
type: url
110109
clear:
111-
label: Clear
112110
selector:
113111
boolean:
114112
position:
115-
label: Position
116113
selector:
117114
select:
118115
options:
@@ -126,25 +123,21 @@ publish:
126123
label_field: "label"
127124
description_field: "intent"
128125
multiple: true
126+
translation_key: broadcast
129127
fields:
130128
label:
131-
label: Label
132129
selector:
133130
text:
134131
intent:
135-
label: Android intent
136132
selector:
137133
text:
138134
extras:
139-
label: Intent extras
140135
selector:
141136
object:
142137
clear:
143-
label: Clear
144138
selector:
145139
boolean:
146140
position:
147-
label: Position
148141
selector:
149142
select:
150143
options:
@@ -158,18 +151,16 @@ publish:
158151
label_field: "label"
159152
description_field: "url"
160153
multiple: true
154+
translation_key: http
161155
fields:
162156
label:
163-
label: Label
164157
selector:
165158
text:
166159
url:
167-
label: URL
168160
selector:
169161
text:
170162
type: url
171163
method:
172-
label: HTTP method
173164
selector:
174165
select:
175166
options:
@@ -179,20 +170,16 @@ publish:
179170
- DELETE
180171
custom_value: true
181172
headers:
182-
label: HTTP headers
183173
selector:
184174
object:
185175
body:
186-
label: HTTP body
187176
selector:
188177
text:
189178
multiline: true
190179
clear:
191-
label: Clear
192180
selector:
193181
boolean:
194182
position:
195-
label: Position
196183
selector:
197184
select:
198185
options:

homeassistant/components/ntfy/strings.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,34 @@
374374
"4": "[%key:common::state::high%]",
375375
"5": "Maximum"
376376
}
377+
},
378+
"view": {
379+
"fields": {
380+
"label": "Label of the action button",
381+
"url": "URL to open when action is tapped",
382+
"clear": "Clear notification after action button is tapped",
383+
"position": "Position of the action button"
384+
}
385+
},
386+
"broadcast": {
387+
"fields": {
388+
"label": "[%key:component::ntfy::selector::view::fields::label%]",
389+
"intent": "Android intent to send when action is tapped",
390+
"extras": "Extras to include in the intent (key-value pairs)",
391+
"clear": "[%key:component::ntfy::selector::view::fields::clear%]",
392+
"position": "[%key:component::ntfy::selector::view::fields::position%]"
393+
}
394+
},
395+
"http": {
396+
"fields": {
397+
"label": "[%key:component::ntfy::selector::view::fields::label%]",
398+
"url": "URL to which the HTTP request will be sent",
399+
"method": "HTTP method to use for request",
400+
"headers": "Additional HTTP headers (key-value pairs)",
401+
"body": "Body of the HTTP request",
402+
"clear": "[%key:component::ntfy::selector::view::fields::clear%]",
403+
"position": "[%key:component::ntfy::selector::view::fields::position%]"
404+
}
377405
}
378406
},
379407
"issues": {

0 commit comments

Comments
 (0)