Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for chinese #809

Open
wants to merge 3 commits into
base: 3.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
176 changes: 175 additions & 1 deletion custom_components/dwains_dashboard/js/src/translations.js
Original file line number Diff line number Diff line change
Expand Up @@ -1533,7 +1533,181 @@ const translations = {
instruction: 'Odszukaj żądany schemat na Dwains Dashboard Community Blueprints Github i wklej kod YAML. Po instalacji lovelace strona zostanie ponownie załadowana abyś mógł użyć zainstalowanego schematu. ',
}
},


//ZH Chinese
zh: {
global: {
dwains_dashboard_settings: 'Dwains 仪表板设置',
enable_edit_mode: '启用编辑模式',
disable_edit_mode: '禁用编辑模式',
version: '版本',
disable_clock: '禁用时钟',
am_pm_clock: 'AM/PM 时钟',
disable_welcome_message: '禁用欢迎消息',
settings: '全局设置',
dashboard_information: '仪表板信息',
alarm_entity: '警报实体',
weather_entity: '天气实体',
greeting_morning: '早上好',
greeting_afternoon: '下午好',
greeting_evening: '晚上好',
v2_mode: '启用 Dwains 仪表板 v2 模式(布局)',
disable_sensor_graph: '禁用将传感器显示为图表',
},
editor: {
lovelace_card: 'Lovelace 卡片',
create_lovelace_card: '从头开始创建新的 Lovelace 卡片',
dwains_dashboard_blueprint: 'Dwains 仪表板蓝图',
use_dwains_dashboard_blueprint: '使用 Dwain 仪表板蓝图创建卡片',
row_span: '行跨度',
row: '行',
rows: '行',
col_span: '列跨度',
column: '列',
columns: '列',
default_col_row: '默认列和行大小',
large_col_row: '大屏幕列和行大小',
extra_large_col_row: '特大屏幕列和行大小',
},
entity: {
title: '实体',
title_plural: '实体',
add_card_to: '将卡片添加到',
edit_entity: '编辑实体',
edit_entity_card: '编辑实体卡片',
edit_entity_popup_card: '编辑实体弹出卡片',
add_to_favorites: '添加到收藏夹',
remove_from_favorites: '从收藏夹中删除',
popup_card: '弹出卡片',
entity_card: '实体卡片',
settings: '实体设置',
group: '按设备分组',
ungroup: '取消按设备分组',
enable: '启用实体',
disable: '在 DD 中禁用实体',
disable_all: '禁用所有实体',
hide_all: '隐藏所有实体',
exclude: '在 DD 中排除实体',
hide: '在 DD 中隐藏实体',
unhide: '取消隐藏实体',
use_popup_card: '使用自己的弹出卡片',
use_entity_card: '使用自己的实体卡片',
friendly_name: '为 DD 重命名',
hidden: '以下实体已隐藏:',
disabled: '以下实体已禁用:',
unavailable: '以下实体不可用:',
},
favorite: {
title: '收藏夹',
title_plural: '收藏夹',
all_favorites: '所有收藏夹',
},
home: {
title: '首页',
},
area: {
title: '区域',
title_plural: '区域',
edit_area_button: '编辑区域按钮',
group_by_floor: '按楼层分组',
ungroup_by_floor: '取消按楼层分组',
icon: '区域图标',
floor: '区域楼层',
no_floor: '没有楼层',
disable: '在 DD 中禁用区域',
disabled: '以下区域已禁用:',
enable: '启用区域',
},
device: {
title: '设备',
title_plural: '设备',
edit_device_button: '编辑设备按钮',
edit_device_card: '为领域设置自定义实体卡片',
edit_device_popup: '为领域设置自定义弹出实体',
current_blueprint_card: '您当前正在使用以下蓝图为领域中所有实体卡片:',
current_blueprint_popup: '您当前正在使用以下蓝图为领域中所有弹出实体:',
icon_required: '如果要将其添加到导航栏,必须选择一个图标!',
icon: '设备图标',
show_in_navbar: '在主导航栏中添加设备页面',
hide: '隐藏设备概述',
unhide: '取消隐藏设备概述',
hidden: '以下设备概述已隐藏',
see_all: '查看全部',
turn_all_off: '全部关闭',
on: '开',
open: '打开',
cover: '盖',
light: '灯',
climate: '气候',
sensor: '传感器',
binary_sensor: '二进制传感器',
media_player: '媒体播放器',
remote: '遥控器',
scene: '场景',
number: '数字',
switch: '开关',
button: '按钮',
water_heater: '热水器',
camera: '摄像头',
select: '选择',
vacuum: '吸尘器',
fan: '风扇',
door: '门',
window: '窗户',
vibration: '振动',
motion: '运动',
device_tracker: '设备追踪器',
lock: '锁',
input_boolean: '输入布尔值',
weather: '天气',
moisture: '湿度',
input_select: '输入选择',
carbon_monoxide: '一氧化碳',
gas: '气体',
problem: '问题',
safety: '安全',
smoke: '烟雾',
tamper: '篡改',
update: '更新',
person: '人员',
alarm_control_panel: '报警控制面板',
automation: '自动化',
group: '按区域分组',
ungroup: '取消按区域分组',
update: '更新',
script: '脚本',
time: '时间',
event: '事件',
text: '文本',
},
more: {
title: '更多',
title_plural: '更多页面',
pages: '页',
create: '创建新的更多页面',
edit: '编辑更多页面',
name_required: '您必须为页面指定名称',
icon_required: '如果要添加到导航栏,必须选择一个图标!',
add_navbar: '将此更多页面添加到主导航栏',
name: '更多页面名称',
icon: '更多页面图标',
},
blueprint: {
title: '蓝图',
title_plural: '蓝图',
yaml_required: '未输入 YAML 代码!',
installed: '已安装',
no_blueprints_installed: '未安装蓝图',
not_installed: '未安装',
installed_blueprints: '已安装蓝图',
type: '类型蓝图',
used_custom_cards: '已使用自定义卡片',
use: '使用此蓝图',
install: '安装蓝图',
yaml_code: '蓝图 YAML 代码',
instruction: '在 Dwains Dashboard Community Blueprints Github 中查找要安装的蓝图,并将蓝图 YAML 代码粘贴到下面。安装成功后,Lovelace 和此页面将重新加载。然后,您可以使用已安装的蓝图。',
},
},
};

export default translations;
30 changes: 30 additions & 0 deletions custom_components/dwains_dashboard/translations/zh.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"title": "Dwains 仪表板",
"config": {
"step": {
"init": {
"title": "Dwains 仪表板设置",
"description": "",
"data": {
"sidepanel_icon": "侧边栏图标",
"sidepanel_title": "侧边栏标题"
}
}
},
"abort": {
"single_instance_allowed": "只允许一个 Dwains 仪表板的配置。"
}
},
"options": {
"step": {
"init": {
"title": "Dwains 仪表板设置",
"description": "",
"data": {
"sidepanel_icon": "侧边栏图标",
"sidepanel_title": "侧边栏标题"
}
}
}
}
}