Skip to content

Commit

Permalink
2023.11.0
Browse files Browse the repository at this point in the history
- added Traditional Chinese language support (thank you @yauyauwind)
- Change of version number. Calendar version management, consisting of year, month and patch number.
  • Loading branch information
dckiller51 committed Nov 24, 2023
1 parent a0e057b commit 3e3a18c
Show file tree
Hide file tree
Showing 6 changed files with 273 additions and 150 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

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

## 2023.11.0

- added Traditional Chinese language support (thank you @yauyauwind)
- Change of version number. Calendar version management, consisting of year, month and patch number.

## v5.9.6

- translation update for compatibility with the Bodymiscale v3.1.1 component
Expand Down
294 changes: 147 additions & 147 deletions dist/body-miscale-card.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/const.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { localize } from './localize/localize';

export const CARD_VERSION = '5.9.6';
export const CARD_VERSION = '2023.11.0';

export const states = {
status: {
Expand Down
116 changes: 116 additions & 0 deletions src/localize/languages/zh-Hant.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
{
"common": {
"version": "版本",
"name": "米家體脂計卡片",
"description": "米家體脂計卡片會顯示你的體重以及相關身體狀態",
"not_available": "BodyMiScale 不可用",
"toggle_power": "顯示/隱藏更多詳情,例如: BMI, kCal"
},
"states": {
"ok": "測量: OK",
"unknown": "狀態: 未知",
"problem": "故障",
"none": "",
"weight_unavailable": "體重不可用",
"impedance_unavailable": "阻抗不可用",
"weight_unavailable_and_impedance_unavailable": "體重不可用, 阻抗不可用",
"weight_low": "體重過輕",
"impedance_low": "阻抗低",
"weight_low_and_impedance_low": "體重過輕, 阻抗低",
"weight_high": "體重過重",
"impedance_high": "阻抗高",
"weight_high_and_impedance_high": "體重過重, 阻抗高",
"weight_high_and_impedance_low": "體重過重, 阻抗低",
"weight_low_and_impedance_high": "體重過輕, 阻抗高"
},
"attributes": {
"weight: ": "重量: ",
"impedance: ": "阻抗: ",
"height: ": "身高: ",
"age: ": "年齡: ",
"gender: ": "性別: "
},
"attributes_value": {
"male": "",
"female": "",
"unavailable": "不可用"
},
"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": "嚴重肥胖",
"unavailable": "不可用"
},
"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",
"always_show_details": "Always show details",
"always_show_details_aria_label_on": "Toggle default detail view on",
"always_show_details_aria_label_off": "Toggle default detail view 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
Expand Up @@ -12,6 +12,7 @@ import * as pt_BR from './languages/pt-BR.json';
import * as ro from './languages/ro.json';
import * as ru from './languages/ru.json';
import * as zh_Hans from './languages/zh-Hans.json';
import * as zh_Hant from './languages/zh-Hant.json';

// eslint-disable-next-line @typescript-eslint/no-explicit-any
const languages: any = {
Expand All @@ -29,6 +30,7 @@ const languages: any = {
ro: ro,
ru: ru,
zh_Hans: zh_Hans,
zh_Hant: zh_Hant,
};

/**
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": "2023-10-12",
"version": "v5.9.6",
"updated_at": "2023-11-24",
"version": "2023.11.0",
"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 3e3a18c

Please sign in to comment.