Skip to content

Commit

Permalink
v5.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
dckiller51 committed Sep 17, 2021
1 parent f6514a1 commit f8ec672
Show file tree
Hide file tree
Showing 5 changed files with 167 additions and 48 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to this project will be documented in this file.

## v5.6.3

- added CN language (thanks to @sasukebinbin)

## v5.6.2

- fix: Change of target for bone mass
Expand Down
92 changes: 46 additions & 46 deletions dist/body-miscale-card.js

Large diffs are not rendered by default.

113 changes: 113 additions & 0 deletions src/localize/languages/cn.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
{
"common": {
"version": "版本",
"name": "米家体脂称卡片",
"description": "米家体脂称卡片会显示你的体重以及相关身体状态",
"not_available": "BodyMiScale 不可用",
"toggle_power": "显示/隐藏更多详情,例如: BMI, kCal"
},
"states": {
"ok": "测量: OK",
"unknown": "状态: 未知",
"problem": "故障",
"none": "",
"weight unavailable": "体重不可用",
"impedance unavailable": "阻抗不可用",
"weight unavailable, impedance unavailable": "体重不可用, 阻抗不可用",
"weight low": "体重过轻",
"impedance low": "阻抗低",
"weight low, impedance low": "体重过轻, 阻抗低",
"weight high": "体重过重",
"impedance high": "阻抗高",
"weight high, impedance high": "体重过重, 阻抗高",
"weight high, impedance low": "体重过重, 阻抗低",
"weight low, impedance high": "体重过轻, 阻抗高"
},
"attributes": {
"weight: ": "重量: ",
"impedance: ": "阻抗: ",
"height: ": "身高: ",
"age: ": "年龄: ",
"gender: ": "性别: "
},
"attributes_value": {
"male": "",
"female": "",
"unavailable kg": "不可用",
"unavailable ohm": "不可用"
},
"body": {
"bmi": "BMI",
"bmi_label": "BMI 标签",
"visceral_fat": "内脏脂肪",
"body_fat": "体脂",
"protein": "蛋白质",
"water": "水分",
"muscle_mass": "肌肉量",
"bone_mass": "骨量",
"weight": "体重",
"ideal": "理想体重",
"basal_metabolism": "基本代谢",
"body_type": "身体类型",
"metabolic_age": "代谢年龄"
},
"body_value": {
"Skinny": "偏瘦",
"Balanced-skinny": "健美型",
"Skinny-muscular": "偏瘦肌肉",
"Balanced": "标准型",
"Balanced-muscular": "标准肌肉",
"Lack-exercise": "缺乏运动",
"Thick-set": "结实型偏胖",
"Obese": "偏胖型",
"Overweight": "肥胖型",
"Underweight": "过轻",
"Normal or Healthy Weight": "正常或健康",
"Slight overweight": "轻微超重",
"Moderate obesity": "中度肥胖",
"Severe obesity": "过度肥胖",
"Massive obesity": "严重肥胖"
},
"unit": {
" years": ""
},
"error": {
"missing_entity": "Please define an entity.",
"missing_entity_bodymiscale": "Please define a bodymiscale entity."
},
"editor": {
"entity": "Please select an account on the scale (required) !",
"image": "Background image (optional)",
"model": "ACTIVATE if the scale has 4 grey circles of 5 cm Ø on top",
"model1": "( = model 181B) !",
"model_aria_label_on": "Toggle model impedance on",
"model_aria_label_off": "Toggle model impedance off",
"unit": "Convert kg to lbs",
"unit_aria_label_on": "Toggle the conversion on",
"unit_aria_label_off": "Toggle the conversion off",
"show_name": "Show the name of the account as title ?",
"show_name_aria_label_on": "Toggle display name on",
"show_name_aria_label_off": "Toggle display name off",
"show_states": "Show State ?",
"show_states_aria_label_on": "Toggle display state on",
"show_states_aria_label_off": "Toggle display state off",
"show_attributes": "Show personal master data (top right) ?",
"show_attributes_aria_label_on": "Toggle display attributes on",
"show_attributes_aria_label_off": "Toggle display attributes off",
"show_toolbar": "Show advanced options ?",
"show_toolbar_aria_label_on": "Toggle display advanced options on",
"show_toolbar_aria_label_off": "Toggle display advanced options off",
"show_body": "Offer further measurement details",
"show_body1": "(lower half - icon chevron down will show those) ?",
"show_body_aria_label_on": "Toggle display body score on",
"show_body_aria_label_off": "Toggle display body score off",
"show_buttons": "Allow account switch ?",
"show_buttons_aria_label_on": "Toggle display buttons on",
"show_buttons_aria_label_off": "Toggle display buttons off",
"code_information": "CHANGES WILL ONLY APPEAR AFTER THEY HAVE BEEN SAVED.",
"header_options": "1. Card header options",
"body_options": "2. More card options",
"warning": "ATTENTION:",
"code_only_note": "Additional options are only available in the code editor."
}
}
2 changes: 2 additions & 0 deletions src/localize/localize.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import * as cn from './languages/cn.json';
import * as de from './languages/de.json';
import * as en from './languages/en.json';
import * as fr from './languages/fr.json';
Expand All @@ -6,6 +7,7 @@ import * as pt_BR from './languages/pt-BR.json';

// eslint-disable-next-line @typescript-eslint/no-explicit-any
const languages: any = {
cn: cn,
de: de,
en: en,
fr: fr,
Expand Down
4 changes: 2 additions & 2 deletions tracker.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"body-miscale-card": {
"updated_at": "2021-09-09",
"version": "v5.6.2",
"updated_at": "2021-09-17",
"version": "v5.6.3",
"remote_location": "https://raw.githubusercontent.com/dckiller51/lovelace-body-miscale-card/master/dist/body-miscale-card.js",
"visit_repo": "https://github.com/dckiller51/lovelace-body-miscale-card",
"changelog": "https://github.com/dckiller51/lovelace-body-miscale-card/blob/master/CHANGELOG.md"
Expand Down

0 comments on commit f8ec672

Please sign in to comment.