FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add Vietnamese translation by vdt2210 · Pull Request #12 · djdevil/AlertTicker-Card · GitHub

Repository navigation

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .js  (2) .md  (2) All 2 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
4 changes: 2 additions & 2 deletions CHANGELOG.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Move up / move down reordering
- Expand / collapse per alert

#### Languages — 4 languages auto-detected from HA settings
#### Languages — 5 languages auto-detected from HA settings

- Italian (`it`), English (`en`), French (`fr`), German (`de`)
- Italian (`it`), English (`en`), French (`fr`), German (`de`), Vietnamese (`vi`)

#### HACS compatibility

Expand Down
1 change: 1 addition & 0 deletions README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,7 @@ The card automatically detects the language from your Home Assistant settings.
| French | `fr` | — |
| German | `de` | — |
| Dutch | `nl` | — |
| Vietnamese | `vi` | - |

---

Expand Down
134 changes: 134 additions & 0 deletions alert-ticker-card-editor.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,44 @@ const DEFAULT_MSG = {
vapor: "Vaporwave-melding",
lava: "Lava-melding",
},
vi: {
emergency: "Khẩn cấp",
fire: "Báo cháy",
alarm: "Báo động",
lightning: "Mất điện",
warning: "Cảnh báo quan trọng",
caution: "Chú ý",
info: "Thông tin",
notification: "Thông báo mới",
aurora: "Thông báo hệ thống",
success: "Trạng thái ổn định",
check: "Kiểm tra hoàn tất",
confetti: "Thành công!",
ticker: "Đang cập nhật",
neon: "Cảnh báo Neon",
glass: "Cảnh báo Glass",
matrix: "Dữ liệu hệ thống",
minimal: "Cảnh báo",
nuclear: "Cảnh báo phóng xạ",
flood: "Phát hiện ngập lụt",
motion: "Phát hiện chuyển động",
intruder: "Phát hiện xâm nhập",
toxic: "Chất độc hại",
radar: "Đang quét mục tiêu",
temperature: "Quá nhiệt",
battery: "Pin yếu",
door: "Cửa đang mở",
hologram: "Trình chiếu hệ thống",
presence: "Phát hiện hiện diện",
update: "Đang cập nhật",
heartbeat: "Hệ thống đang chạy",
shield: "Đã kích hoạt bảo vệ",
power: "Đã khôi phục nguồn",
retro: "Cảnh báo Retro",
cyberpunk: "Truy cập hệ thống",
vapor: "Thông báo Vaporwave",
lava: "Cảnh báo dung nham",
},
};

// ---------------------------------------------------------------------------
Expand Down Expand Up @@ -739,6 +777,102 @@ const ET = {
action_url_path: "Te openen URL",
delete_item: "Verwijderen",
},
vi: {
tab_general: "Chung",
tab_alerts: "Báo động",
cycle_interval: "Khoảng thời gian lặp (giây)",
cycle_interval_help: "Số giây chuyển tiếp giữa các báo động khi có nhiều mục cùng hoạt động",
show_when_clear: "Hiển thị khi không có báo động",
snooze_default_duration: "Chế độ tạm hoãn 💤",
snooze_default_duration_help: "Menu thời gian: chạm 💤 để chọn thời gian tạm hoãn. Thời gian cố định: chạm 💤 để tạm hoãn ngay lập tức.",
snooze_option_menu: "Hiển thị menu chọn thời gian (như trước)",
history_max_events: "Lịch sử — số sự kiện tối đa",
history_max_events_help: "Tự động ghi lại mỗi khi báo động kích hoạt. Chạm 📋 để xem lịch sử kèm ngày/giờ. Dữ liệu lưu tại trình duyệt.",
history: "Lịch sử",
history_clear: "Xóa",
history_empty: "Chưa có sự kiện nào được ghi lại",
clear_message: "Thông báo khi không có báo động",
clear_theme: "Theme khi trạng thái an toàn",
alerts_list: "Danh sách báo động",
add_alert: "Thêm báo động",
alert_entity: "Thực thể (Entity)",
alert_operator: "Điều kiện",
alert_state: "Giá trị",
alert_state_help: "VD: 'on', '80' (dùng kèm > < >= <= cho số)",
current_state: "Trạng thái hiện tại",
alert_message: "Nội dung hiển thị",
alert_priority: "Độ ưu tiên",
alert_theme: "Giao diện",
alert_icon: "Icon",
alert_icon_help: "Emoji: để trống để tự động. HA icon: VD mdi:home",
use_ha_icon: "Dùng icon Home Assistant (mdi:)",
delete: "Xóa",
priority_1: "1 — Khẩn cấp (đỏ)",
priority_2: "2 — Cảnh báo (cam)",
priority_3: "3 — Thông tin (xanh dương)",
priority_4: "4 — Ưu tiên thấp (xám)",
no_alerts: "Chưa cấu hình báo động. Nhấn 'Thêm báo động' để bắt đầu.",
alert_num: "Báo động",
collapse: "Đóng",
expand: "Chỉnh sửa",
move_up: "Lên",
move_down: "Xuống",
version: "Phiên bản",
op_eq: "= bằng",
op_ne: "≠ không bằng",
op_gt: "> lớn hơn",
op_lt: "< nhỏ hơn",
op_gte: "≥ lớn hơn hoặc bằng",
op_lte: "≤ nhỏ hơn hoặc bằng",
cycle_animation: "Hiệu ứng chuyển cảnh",
anim_fold: "🃏 Fold — lật trang 3D",
anim_slide: "➡️ Slide — trượt ngang",
anim_fade: "🌫️ Fade — hòa tan",
anim_flip: "🔄 Flip — lật thẻ",
anim_zoom: "🔍 Zoom — phóng phóng",
anim_glitch: "⚡ Glitch — nhiễu kỹ thuật số",
anim_bounce: "🏀 Bounce — đàn hồi",
anim_swing: "🎪 Swing — con lắc",
anim_blur: "💨 Blur — làm mờ",
anim_split: "✂️ Split — cắt dọc",
anim_roll: "🎲 Roll — xoay ngang và trượt",
anim_curtain: "🎭 Curtain — mở rèm",
entity_filter: "Lọc thực thể (văn bản)",
entity_filter_help: "Khớp với các thực thể có ID hoặc tên chứa văn bản này. Chạm vào số lượng để xem trước. Dùng {name}, {entity}, {state} trong nội dung hiển thị. VD: lọc 'battery' → tạo báo động cho mỗi pin yếu.",
entity_filter_count: "thực thể khớp",
entity_filter_excluded: "đã loại trừ",
entity_filter_zero: "Không có thực thể nào khớp",
entity_filter_exclude_tip: "Chạm vào thực thể để loại trừ — chạm lại để thêm vào",
alert_attribute: "Thuộc tính (tùy chọn)",
alert_attribute_help: "VD: battery_level — để trống để dùng trạng thái chính",
secondary_entity: "Thực thể giá trị phụ (tùy chọn)",
secondary_entity_help: "Hiển thị giá trị thực tế dưới dòng nội dung hiển thị. VD: cảm biến liệt kê các cửa đang mở hoặc các báo động đang hoạt động.",
secondary_attribute: "Thuộc tính giá trị phụ",
conditions_section: "Điều kiện bổ sung",
conditions_logic: "Logic",
logic_and: "AND — tất cả phải đúng",
logic_or: "OR — ít nhất một cái đúng",
add_condition: "Thêm điều kiện",
condition_entity: "Thực thể điều kiện",
condition_attribute: "Thuộc tính điều kiện",
tap_action_section: "Hành động khi chạm",
hold_action_section: "Hành động khi giữ (500ms)",
snooze_action_section: "Hành động tạm hoãn 💤 — thực thi khi chạm nút snooze",
timer_theme_category: "Bộ hẹn giờ",
timer_placeholder_hint: "Dùng {timer} để hiển thị đếm ngược (VD: 'Tạm hoãn trong {timer}')",
action_type: "Loại hành động",
action_none: "Không có",
action_call_service: "Gọi dịch vụ",
action_navigate: "Chuyển trang",
action_more_info: "Thông tin thêm",
action_url: "Mở liên kết (URL)",
action_service: "Dịch vụ HA",
action_target: "Thực thể mục tiêu",
action_service_data: "Dữ liệu bổ sung (JSON tùy chọn)",
action_navigate_path: "Đường dẫn (VD: /lovelace/home)",
action_url_path: "URL cần mở",
delete_item: "Xóa",
},
};

// ---------------------------------------------------------------------------
Expand Down
28 changes: 27 additions & 1 deletion alert-ticker-card.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const THEME_META = {
};

// ---------------------------------------------------------------------------
// Translations (IT / EN / FR / DE)
// Translations (IT / EN / FR / DE / VI)
// ---------------------------------------------------------------------------
const T = {
it: {
Expand Down Expand Up @@ -211,6 +211,32 @@ const T = {
timer_active: "Actief",
timer_done: "Verlopen",
},
vi: {
alerts: "Báo động",
critical: "Nghiêm trọng",
warning_label: "Cảnh báo",
info_label: "Thông tin",
success_label: "Mọi thứ ổn",
no_alerts: "Không có báo động nào",
all_clear: "Không có vấn đề",
priority_short: "P",
alert_system: "HỆ THỐNG BÁO ĐỘNG",
cmd_prefix: "root@ha:~$",
cmd_read: "báo động --đọc",
snooze: "Tạm hoãn",
snoozed: "Đã tạm hoãn",
snooze_1h: "1 giờ",
snooze_4h: "4 giờ",
snooze_8h: "8 giờ",
snooze_24h: "24 giờ",
snooze_reset: "Bỏ tạm hoãn tất cả",
alerts_snoozed: "báo động đã tạm hoãn",
history: "Lịch sử",
history_clear: "Xóa",
history_empty: "Chưa có sự kiện nào",
timer_active: "Đang chạy",
timer_done: "Hết hạn",
},
};

// ---------------------------------------------------------------------------
Expand Down

Back | FazBrowse Home | New Git URL