Skip to content

Commit

Permalink
Add translation files to all add-ons (home-assistant#2433)
Browse files Browse the repository at this point in the history
* Add translation files to all add-ons

* lint

* Apply suggestions from code review

Co-authored-by: Stefan Agner <[email protected]>

* Adjust zwave docs

* Adjust zwave_js docs

* Adjust ada docs

* Reorder ada

* Reorder duckdns

* Reorder git_pull

* Reorder google_assistant

* Reorder homematic

* Reorder letsencrypt

* Reorder mosquitto

* Reorder nginx_proxy

* Reorder samba

* Reorder ssh

* Lint

Co-authored-by: Stefan Agner <[email protected]>
  • Loading branch information
ludeeus and agners authored Apr 28, 2022
1 parent 9c54e9c commit 456bc0f
Show file tree
Hide file tree
Showing 35 changed files with 559 additions and 112 deletions.
2 changes: 1 addition & 1 deletion ada/DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Home Assistant before using it with this add-on!
### Option: `tts` (required)

The Home Assistant TTS (Text-to-Speech) integration to use when converting
the response from Almond back to audio.
the response from Almond to audio.

Please note, this TTS integration has to be configured and active in
Home Assistant before using it with this add-on!
Expand Down
12 changes: 12 additions & 0 deletions ada/translations/en.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
configuration:
stt:
name: Speech-to-Text Integration
description: >-
The Home Assistant STT (Speech-to-Text) integration to use when converting
detected audio to text for Almond to process.
tts:
name: Text-to-Speech Integration
description: >-
The Home Assistant TTS (Text-to-Speech) integration to use when converting
the response from Almond to audio.
27 changes: 27 additions & 0 deletions configurator/translations/en.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
configuration:
dirsfirst:
name: Directories First
description: >-
This option allows you to list directories before files in the file
browser tree.
enforce_basepath:
name: Enforce Basepath
description: >-
If set to `true`, access is limited to files within the `/config`
directory.
git:
name: Git
description: >-
If set to `true`, add-on will initialize git for directories which support
it.
ignore_pattern:
name: Ignore Pattern
description: >-
This option allows you to hide files and folders from the file browser
tree.
ssh_keys:
name: SSH Keys
description: >-
A list of filenames containing SSH private keys. These can be used to
allow for access to remote git repositories.
6 changes: 1 addition & 5 deletions deconz/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,15 @@ ports:
40850/tcp: null
5900/tcp: null
8081/tcp: null
ports_description:
40850/tcp: deCONZ API backend (Not required for Ingress)
5900/tcp: deCONZ via VNC (Not required for Ingress. Not secure!)
8081/tcp: deCONZ WebSocket (Not required for Ingress)
privileged:
- SYS_RAWIO
schema:
device: device(subsystem=tty)
dbg_aps: int?
dbg_info: int?
dbg_otau: int?
dbg_zcl: int?
dbg_zdp: int?
device: device(subsystem=tty)
startup: services
udev: true
usb: true
19 changes: 19 additions & 0 deletions deconz/translations/en.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
configuration:
device:
name: Device
description: The device address of your ConBee/RaspBee.
dbg_aps:
name: Debug aps
dbg_info:
name: Debug info
dbg_otau:
name: Debug otau
dbg_zcl:
name: Debug zcl
dbg_zdp:
name: Debug zdp
network:
40850/tcp: deCONZ API backend (Not required for Ingress)
5900/tcp: deCONZ via VNC (Not required for Ingress. Not secure!)
8081/tcp: deCONZ WebSocket (Not required for Ingress)
26 changes: 26 additions & 0 deletions dhcp_server/translations/en.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
configuration:
default_lease:
name: Default Least Time
description: >-
The default time in seconds that the IP is leased to your client.
dns:
name: DNS Servers
description: The DNS servers your DHCP server gives to your clients.
domain:
name: Domain
description: >-
Your network domain name, e.g., `mynetwork.local` or `home.local`
hosts:
name: Hosts
description: >-
This option defines settings for one or host definitions for the DHCP
server.
max_lease:
name: Max Lease Time
description: The max time in seconds that the IP is leased to your client.
networks:
name: Networks
description: >-
This option defines settings for one or multiple networks for the DHCP
server to hand out IP addresses for.
20 changes: 20 additions & 0 deletions dnsmasq/translations/en.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
configuration:
defaults:
name: Upstream Servers
description: The defaults are upstream DNS servers.
forwards:
name: Forwards
description: >-
This option allows you to list domain that are forwarded to a different
(not the default) upstream DNS server.
hosts:
name: Hosts
description: >-
This option allows you to provide local static answer for your DNS server.
services:
name: Services
description: This option allows you to provide srv-host records.
network:
53/tcp: TCP port for DNS requests.
53/udp: UDP port for DNS requests.
14 changes: 7 additions & 7 deletions duckdns/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,29 @@ image: homeassistant/{arch}-addon-duckdns
map:
- ssl:rw
options:
aliases: []
domains:
- null
token: null
aliases: []
lets_encrypt:
accept_terms: false
algo: secp384r1
certfile: fullchain.pem
keyfile: privkey.pem
seconds: 300
token: null
schema:
domains:
- match(.+\.duckdns\.org)
token: str
aliases:
- alias: str
domain: str
domains:
- match(.+\.duckdns\.org)
ipv4: str?
ipv6: str?
lets_encrypt:
accept_terms: bool
algo: list(rsa|prime256v1|secp384r1)
certfile: str
keyfile: str
seconds: int
token: str
ipv4: str?
ipv6: str?
startup: services
36 changes: 36 additions & 0 deletions duckdns/translations/en.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
configuration:
domains:
name: Domains
description: >-
A list of DuckDNS subdomains registered under your account. An acceptable
naming convention is `my-domain.duckdns.org`.
token:
name: Token
description: >-
The DuckDNS authentication token found at the top of the DuckDNS account
landing page. The token is required to make any changes to the subdomains
registered to your account.
aliases:
name: Alias
description: A list aliases of domains configured on the `domains` option.
lets_encrypt:
name: Let's Encrypt
description: Configure Let's Encrypt options
seconds:
name: Seconds
description: >-
The number of seconds to wait before updating DuckDNS subdomains and
renewing Let's Encrypt certificates.
ipv4:
name: IPv4
description: >-
By default, Duck DNS will auto detect your IPv4 address and use that. This
option allows you to override the auto-detection and specify an IPv4
address manually.
ipv6:
name: IPv6
description: >-
By default, Duck DNS will auto detect your IPv6 address and use that. This
option allows you to override the auto-detection and specify an IPv6
address manually.
38 changes: 19 additions & 19 deletions git_pull/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,37 +19,37 @@ init: false
map:
- config:rw
options:
auto_restart: false
deployment_key: []
deployment_key_protocol: rsa
deployment_password: ""
deployment_user: ""
repository: null
git_branch: master
git_remote: origin
auto_restart: false
restart_ignore:
- ui-lovelace.yaml
- .gitignore
git_command: pull
git_prune: false
git_remote: origin
deployment_key: []
deployment_user: ""
deployment_password: ""
deployment_key_protocol: rsa
repeat:
active: false
interval: 300
repository: null
restart_ignore:
- ui-lovelace.yaml
- .gitignore
schema:
repository: str
git_branch: str
git_remote: str
auto_restart: bool
deployment_key:
restart_ignore:
- str
deployment_key_protocol: match(rsa|dsa|ecdsa|ed25519|rsa)
deployment_password: password
deployment_user: str
git_branch: str
git_command: list(pull|reset)
git_prune: bool
git_remote: str
deployment_key:
- str
deployment_user: str
deployment_password: password
deployment_key_protocol: match(rsa|dsa|ecdsa|ed25519|rsa)
repeat:
active: bool
interval: int
repository: str
restart_ignore:
- str
startup: services
55 changes: 55 additions & 0 deletions git_pull/translations/en.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
---
configuration:
repository:
name: Repository
description: Git URL to your repository.
git_branch:
name: Git Branch
description: >-
Branch name of the Git repo. If left empty, the currently checked out
branch will be updated. Leave this as 'master' if you are unsure.
git_remote:
name: Git Remote
description: >-
Name of the tracked repository. Leave this as `origin` if you are unsure.
auto_restart:
name: Auto restart
description: >-
Restart Home Assistant when the configuration has changed (and is valid).
restart_ignore:
name: Restart Ignore
description: >-
When `auto_restart` is enabled, changes to these files will not make HA
restart. Full directories to ignore can be specified.
git_command:
name: Git Command
description: Command to run. Leave this as `pull` if you are unsure.
git_prune:
name: Git Prune
description: >-
If enabled, the add-on will clean-up branches that are deleted on the
remote repository, but still have cached entries on the local machine.
Leave this as `false` if you are unsure.
deployment_key:
name: Deployment Key
description: >-
A private SSH key that will be used for communication during Git
operations.
deployment_user:
name: Deployment User
description: >-
Username to use when authenticating to a repository with a username and
password.
deployment_password:
name: Deployment Password
description: >-
Password to use when authenticating to a repository. Ignored if
`deployment_user` is not set.
deployment_key_protocol:
name: Deployment Key Protocol
description: The key protocol
repeat:
name: Polling
description: >-
Configure the Git pull add-on to poll the repository for updates
periodically automatically.
8 changes: 4 additions & 4 deletions google_assistant/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,20 @@ init: false
map:
- share
options:
project_id: null
client_secrets: google_assistant.json
model_id: null
feedback:
enable: false
volume: 80
model_id: null
project_id: null
ports:
9324/tcp: 9324
schema:
project_id: str
client_secrets: str
model_id: str
feedback:
enable: bool
volume: int(0,100)
model_id: str
project_id: str
stage: experimental
webui: http://[HOST]:[PORT:9324]
20 changes: 20 additions & 0 deletions google_assistant/translations/en.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
configuration:
project_id:
name: Project ID
description: >-
Project ID of the project you've created at Google for this add-on.
client_secrets:
name: Client Secrets
description: >-
The name of the client secrets file to you've downloaded from Google and
placed in your `/share` folder.
model_id:
name: Model ID
description: >-
The ID of the model you've registered at Google for this add-on.
feedback:
name: Feedback
description: Control feedback options
network:
9324/tcp: The port for the Webserver
Loading

0 comments on commit 456bc0f

Please sign in to comment.