Skip to content

Commit

Permalink
Merge pull request #8 from gjohansson-ST/translation
Browse files Browse the repository at this point in the history
Fix/add translations
  • Loading branch information
gjohansson-ST committed Jun 24, 2024
2 parents 03e5cde + 12d1a30 commit beb8a17
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/attribute_as_sensor/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"title": "Add Attribute as Sensor",
"description": "Create a sensor that derives its value from an attribute of another entity.",
"data": {
"entity_id": "Input entities",
"entity_id": "Input entity",
"name": "Name"
}
},
Expand Down
42 changes: 42 additions & 0 deletions custom_components/attribute_as_sensor/translations/se.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"config": {
"step": {
"user": {
"title": "Lägg till Attribut som Sensor",
"description": "Skapa en sensor som får sitt värde från en annan entitets attribut.",
"data": {
"entity_id": "Entitet",
"name": "Namn"
}
},
"attr": {
"data": {
"attribute": "Attribut",
"icon": "Ikon",
"device_class": "Enhetsklass",
"state_class": "Tillståndsklass",
"unit_of_measurement": "Måttenhet"
},
"data_description": {
"attribute": "Välj det attribut som du vill ha som sensor.",
"unit_of_measurement": "Välj en måttenhet som är fördefinierad eller skapa din egen."
}
}
}
},
"options": {
"step": {
"init": {
"data": {
"icon": "Ikon",
"device_class": "Enhetsklass",
"state_class": "Tillståndsklass",
"unit_of_measurement": "Måttenhet"
},
"data_description": {
"unit_of_measurement": "Välj en måttenhet som är fördefinierad eller skapa din egen."
}
}
}
}
}

0 comments on commit beb8a17

Please sign in to comment.