Skip to content

Commit

Permalink
feat: Adds translations
Browse files Browse the repository at this point in the history
  • Loading branch information
MislavMandaric committed Sep 12, 2021
1 parent 8ca6635 commit e8def47
Show file tree
Hide file tree
Showing 6 changed files with 77 additions and 98 deletions.
4 changes: 2 additions & 2 deletions custom_components/vaillant_vsmart/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@

DEFAULT_TEMPERATURE_INCREASE = 1

PRESET_SUMMER = "summer"
PRESET_WINTER = "winter"
PRESET_SUMMER = "Summer"
PRESET_WINTER = "Winter"

SUPPORTED_FEATURES = SUPPORT_TARGET_TEMPERATURE | SUPPORT_PRESET_MODE
SUPPORTED_HVAC_MODES = [HVAC_MODE_AUTO, HVAC_MODE_HEAT, HVAC_MODE_OFF]
Expand Down
14 changes: 10 additions & 4 deletions custom_components/vaillant_vsmart/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@
"iot_class": "cloud_polling",
"documentation": "https://github.com/MislavMandaric/home-assistant-vaillant-vsmart",
"issue_tracker": "https://github.com/MislavMandaric/home-assistant-vaillant-vsmart/issues",
"dependencies": ["http"],
"dependencies": [
"http"
],
"config_flow": true,
"codeowners": ["@MislavMandaric"],
"requirements": ["vaillant-netatmo-api==0.1.2"]
}
"codeowners": [
"@MislavMandaric"
],
"requirements": [
"vaillant-netatmo-api==0.1.2"
]
}
62 changes: 32 additions & 30 deletions custom_components/vaillant_vsmart/translations/en.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,33 @@
{
"config": {
"step": {
"user": {
"title": "Vaillant vSMART",
"description": "If you need help with the configuration have a look here: https://github.com/MislavMandaric/home-assistant-vaillant-vsmart",
"data": {
"username": "Username",
"password": "Password"
}
}
},
"error": {
"auth": "Username/Password is wrong."
},
"abort": {
"single_instance_allowed": "Only a single instance is allowed."
}
},
"options": {
"step": {
"user": {
"data": {
"binary_sensor": "Binary sensor enabled",
"sensor": "Sensor enabled",
"switch": "Switch enabled"
}
}
}
}
}
"state_attributes": {
"climate": {
"preset_mode": {
"winter": "Winter",
"summer": "Summer"
}
}
},
"config": {
"step": {
"user": {
"title": "Vaillant vSMART",
"description": "If you need help with the configuration have a look here: https://github.com/MislavMandaric/home-assistant-vaillant-vsmart",
"data": {
"client_id": "Client ID",
"client_secret": "Client secret",
"username": "Username",
"password": "Password",
"user_prefix": "User prefix",
"app_version": "App version"
}
}
},
"error": {
"unknown": "Something went wrong when authenticating with the API."
},
"abort": {
"already_in_progress": "Integration for provided user is already in progress.",
"already_configured": "Integration for provided user is already configured."
}
}
}
31 changes: 0 additions & 31 deletions custom_components/vaillant_vsmart/translations/fr.json

This file was deleted.

33 changes: 33 additions & 0 deletions custom_components/vaillant_vsmart/translations/hr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"state_attributes": {
"climate": {
"preset_mode": {
"winter": "Zima",
"summer": "Ljeto"
}
}
},
"config": {
"step": {
"user": {
"title": "Vaillant vSMART",
"description": "Pomoć oko konfiguracije integracije potražite na ovom linku: https://github.com/MislavMandaric/home-assistant-vaillant-vsmart",
"data": {
"client_id": "ID klijenta",
"client_secret": "Tajni kod klijenta",
"username": "Korisničko ime",
"password": "Lozinka",
"user_prefix": "Korisnički prefiks",
"app_version": "Verzija aplikacije"
}
}
},
"error": {
"unknown": "Došlo je do pogreške u komunikaciji sa serverom."
},
"abort": {
"already_in_progress": "Integracija je već u tijeku.",
"already_configured": "Integracija je već postavljena."
}
}
}
31 changes: 0 additions & 31 deletions custom_components/vaillant_vsmart/translations/nb.json

This file was deleted.

0 comments on commit e8def47

Please sign in to comment.