Skip to content

Commit

Permalink
feat: translate services for en and de
Browse files Browse the repository at this point in the history
  • Loading branch information
eifinger committed Aug 15, 2023
1 parent 565e0f6 commit 37ed3c3
Show file tree
Hide file tree
Showing 5 changed files with 314 additions and 38 deletions.
36 changes: 0 additions & 36 deletions custom_components/foldingathomecontrol/services.yaml
Original file line number Diff line number Diff line change
@@ -1,89 +1,59 @@
---
pause:
description: Pause one or all slots.
fields:
address:
description: >
The IP address or hostname of the client.
It can be found as part of the integration name.
example: "localhost"
default: "localhost"
required: true
selector:
text:
slot:
description: >
The slot to pause.
Be sure to include the 0 in front if needed.
Leave this out to pause all slots.
example: "01"
required: false
selector:
text:

unpause:
description: Unpause one or all slots.
fields:
address:
description: >
The IP address or hostname of the client.
It can be found as part of the integration name.
example: "localhost"
default: "localhost"
required: true
selector:
text:
slot:
description: >
The slot to unpause.
Be sure to include the 0 in front if needed.
Leave this out to unpause all slots.
example: "01"
required: false
selector:
text:

shutdown:
description: Shut down the client.
fields:
address:
description: >
The IP address or hostname of the client.
It can be found as part of the integration name.
example: "localhost"
default: "localhost"
required: true
selector:
text:

request_work_server_assignment:
description: Request a new assignment from the work server.
fields:
address:
description: >
The IP address or hostname of the client.
It can be found as part of the integration name.
example: "localhost"
default: "localhost"
required: true
selector:
text:

set_power_level:
description: Set the power level.
fields:
address:
description: >
The IP address or hostname of the client.
It can be found as part of the integration name.
example: "localhost"
default: "localhost"
required: true
selector:
text:
power_level:
description: >
The power level to set.
example: "LIGHT"
default: "FULL"
required: true
Expand All @@ -95,20 +65,14 @@ set_power_level:
- "FULL"

send_command:
description: Send a custom command.
fields:
address:
description: >
The IP address or hostname of the client.
It can be found as part of the integration name.
example: "localhost"
default: "localhost"
required: true
selector:
text:
command:
description: >
The command to send.
example: "slot-info"
required: true
selector:
Expand Down
80 changes: 79 additions & 1 deletion custom_components/foldingathomecontrol/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,83 @@
}
}
}
},
"services": {
"pause": {
"name": "Pause",
"description": "Einen oder alle Slots pausieren",
"fields": {
"address": {
"name": "Addresse",
"description": "Die IP Addresse or Hostname des Clients. Ist Bestandteil des Names des Integration Eintrags."
},
"slot": {
"name": "Slot",
"description": "Der Slot der pausiert werden soll. Falls vorhanden muss die führende 0 mit angegeben werden. Leer lassen um alle Slots zu pausieren."
}
}
},
"unpause": {
"name": "Unpause",
"description": "Pause für einen oder alle Slots aufheben",
"fields": {
"address": {
"name": "Addresse",
"description": "Die IP Addresse or Hostname des Clients. Ist Bestandteil des Names des Integration Eintrags."
},
"slot": {
"name": "Slot",
"description": "Der Slot der pausiert werden soll. Falls vorhanden muss die führende 0 mit angegeben werden. Leer lassen um alle Slots zu pausieren."
}
}
},
"shutdown": {
"name": "Herunterfahren",
"description": "Client herunterfahren.",
"fields": {
"address": {
"name": "Addresse",
"description": "Die IP Addresse or Hostname des Clients. Ist Bestandteil des Names des Integration Eintrags."
}
}
},
"request_work_server_assignment": {
"name": "Neues Assignment anfordern",
"description": "Ein neues assignment vom work server anfordern.",
"fields": {
"address": {
"name": "Addresse",
"description": "Die IP Addresse or Hostname des Clients. Ist Bestandteil des Names des Integration Eintrags."
}
}
},
"set_power_level": {
"name": "Setze Powerlevel.",
"description": "Setze das Powerlevel.",
"fields": {
"address": {
"name": "Addresse",
"description": "Die IP Addresse or Hostname des Clients. Ist Bestandteil des Names des Integration Eintrags."
},
"power_level": {
"name": "Powerlevel",
"description": "Das Powerlevel das gesetzt werden soll."
}
}
},
"send_command": {
"name": "Sende Kommando.",
"description": "Sende ein Kommando.",
"fields": {
"address": {
"name": "Addresse",
"description": "Die IP Addresse or Hostname des Clients. Ist Bestandteil des Names des Integration Eintrags."
},
"command": {
"name": "Kommando",
"description": "Das Kommando, das gesendet werden soll."
}
}
}
}
}
}
80 changes: 79 additions & 1 deletion custom_components/foldingathomecontrol/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,83 @@
}
}
}
},
"services": {
"pause": {
"name": "Pause",
"description": "Pause one or all slots.",
"fields": {
"address": {
"name": "Address",
"description": "The IP address or hostname of the client. It can be found as part of the integration name."
},
"slot": {
"name": "Slot",
"description": "The slot to pause. Be sure to include the 0 in front if needed. Leave this out to pause all slots."
}
}
},
"unpause": {
"name": "Unpause",
"description": "Unpause one or all slots.",
"fields": {
"address": {
"name": "Address",
"description": "The IP address or hostname of the client. It can be found as part of the integration name."
},
"slot": {
"name": "Slot",
"description": "The slot to pause. Be sure to include the 0 in front if needed. Leave this out to pause all slots."
}
}
},
"shutdown": {
"name": "Shutdown",
"description": "Shut down the client.",
"fields": {
"address": {
"name": "Address",
"description": "The IP address or hostname of the client. It can be found as part of the integration name."
}
}
},
"request_work_server_assignment": {
"name": "Request Work Server Assignment",
"description": "Request a new assignment from the work server.",
"fields": {
"address": {
"name": "Address",
"description": "The IP address or hostname of the client. It can be found as part of the integration name."
}
}
},
"set_power_level": {
"name": "Set Power Level.",
"description": "Set the power level.",
"fields": {
"address": {
"name": "Address",
"description": "The IP address or hostname of the client. It can be found as part of the integration name."
},
"power_level": {
"name": "Powerlevel",
"description": "The power level to set."
}
}
},
"send_command": {
"name": "Send Command.",
"description": "Send a custom command.",
"fields": {
"address": {
"name": "Address",
"description": "The IP address or hostname of the client. It can be found as part of the integration name."
},
"command": {
"name": "Command",
"description": "The command to send."
}
}
}
}
}
}
78 changes: 78 additions & 0 deletions custom_components/foldingathomecontrol/translations/nb.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,83 @@
}
}
}
},
"services": {
"pause": {
"name": "Pause",
"description": "Pause one or all slots.",
"fields": {
"address": {
"name": "Address",
"description": "The IP address or hostname of the client. It can be found as part of the integration name."
},
"slot": {
"name": "Slot",
"description": "The slot to pause. Be sure to include the 0 in front if needed. Leave this out to pause all slots."
}
}
},
"unpause": {
"name": "Unpause",
"description": "Unpause one or all slots.",
"fields": {
"address": {
"name": "Address",
"description": "The IP address or hostname of the client. It can be found as part of the integration name."
},
"slot": {
"name": "Slot",
"description": "The slot to pause. Be sure to include the 0 in front if needed. Leave this out to pause all slots."
}
}
},
"shutdown": {
"name": "Shutdown",
"description": "Shut down the client.",
"fields": {
"address": {
"name": "Address",
"description": "The IP address or hostname of the client. It can be found as part of the integration name."
}
}
},
"request_work_server_assignment": {
"name": "Request Work Server Assignment",
"description": "Request a new assignment from the work server.",
"fields": {
"address": {
"name": "Address",
"description": "The IP address or hostname of the client. It can be found as part of the integration name."
}
}
},
"set_power_level": {
"name": "Set Power Level.",
"description": "Set the power level.",
"fields": {
"address": {
"name": "Address",
"description": "The IP address or hostname of the client. It can be found as part of the integration name."
},
"power_level": {
"name": "Powerlevel",
"description": "The power level to set."
}
}
},
"send_command": {
"name": "Send Command.",
"description": "Send a custom command.",
"fields": {
"address": {
"name": "Address",
"description": "The IP address or hostname of the client. It can be found as part of the integration name."
},
"command": {
"name": "Command",
"description": "The command to send."
}
}
}
}
}
Loading

0 comments on commit 37ed3c3

Please sign in to comment.