Skip to content

Commit

Permalink
add translations files
Browse files Browse the repository at this point in the history
  • Loading branch information
vaughan-zeng committed Aug 3, 2021
1 parent 7e796d9 commit 67eea9f
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
39 changes: 39 additions & 0 deletions custom_components/uvfive/translations/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"config": {
"flow_title": "uvFive MIoT device: {name}",
"step": {
"user": {
"title": "uvFive MIoT device",
"description": "Config device info.",
"data": {
"host": "Device IP",
"token": "Token",
"name": "Device name",
"model": "Model, empty for auto"
}
}
},
"error": {
"cannot_connect": "Failed to connect the device"
},
"abort": {
"already_configured": "Device is already configured",
"not_xiaomi_miio": "Not a Xiaomi miio device."
}
},
"options": {
"step": {
"user": {
"title": "uvFive MIoT device",
"description": "Config device info.",
"data": {
"host": "Device IP",
"token": "Token"
}
}
},
"error": {
"cannot_connect": "Failed to connect the device"
}
}
}
39 changes: 39 additions & 0 deletions custom_components/uvfive/translations/zh-Hans.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"config": {
"flow_title": "uvFive MIoT device: {name}",
"step": {
"user": {
"title": "uvFive MIoT device",
"description": "配置设备信息",
"data": {
"host": "设备IP",
"token": "Token",
"name": "名称",
"model": "型号,为空时自动识别"
}
}
},
"error": {
"cannot_connect": "连接设备失败"
},
"abort": {
"already_configured": "该设备已经配置过",
"not_xiaomi_miio": "该设备不支持miio/miot协议"
}
},
"options": {
"step": {
"user": {
"title": "uvFive MIoT device",
"description": "配置设备信息",
"data": {
"host": "设备IP",
"token": "Token"
}
}
},
"error": {
"cannot_connect": "连接设备失败"
}
}
}

0 comments on commit 67eea9f

Please sign in to comment.