This commit is contained in:
76
www/i18n.js
76
www/i18n.js
@@ -1,12 +1,12 @@
|
||||
/**
|
||||
* Central i18n for LiDAR Manager — vi / en.
|
||||
* Central i18n for Robot App — vi / en.
|
||||
* Static DOM: data-i18n, data-i18n-placeholder, data-i18n-title, data-i18n-aria
|
||||
* Dynamic JS: I18n.t("key") or I18n.t("key", { name: "..." })
|
||||
*/
|
||||
(() => {
|
||||
const MESSAGES = {
|
||||
vi: {
|
||||
"app.title": "LiDAR Manager",
|
||||
"app.title": "Robot App",
|
||||
"app.robotName": "RobotApp",
|
||||
"app.status.ready": "Sẵn sàng",
|
||||
"app.status.reloaded": "Đã tải lại",
|
||||
@@ -66,6 +66,7 @@
|
||||
"nav.help": "Help",
|
||||
"nav.logout": "Log out",
|
||||
"nav.dashboard": "Dashboard",
|
||||
"nav.dashboardsList": "Dashboards",
|
||||
"nav.missions": "Missions",
|
||||
"nav.maps": "Maps & layout",
|
||||
"nav.monitoring-log": "System log",
|
||||
@@ -116,6 +117,40 @@
|
||||
|
||||
"dashboard.title": "Dashboard",
|
||||
"dashboard.subtitle": "Widget mission — chạy, xếp hàng và tạm dừng giống MiR Fleet.",
|
||||
"dashboard.list.title": "Dashboards",
|
||||
"dashboard.list.subtitle": "Tạo và chỉnh sửa dashboard cho robot.",
|
||||
"dashboard.list.create": "+ Tạo dashboard",
|
||||
"dashboard.list.clearFilters": "Xóa bộ lọc",
|
||||
"dashboard.list.filterLabel": "Lọc:",
|
||||
"dashboard.list.filterPlaceholder": "Nhập tên để lọc…",
|
||||
"dashboard.list.itemsFound": "{count} mục",
|
||||
"dashboard.list.pageOf": "Trang {page} / {total}",
|
||||
"dashboard.list.col.name": "Tên",
|
||||
"dashboard.list.col.createdBy": "Tạo bởi",
|
||||
"dashboard.list.col.functions": "Chức năng",
|
||||
"dashboard.list.empty": "Không có dashboard nào.",
|
||||
"dashboard.list.back": "← Danh sách",
|
||||
"dashboard.list.design": "Thiết kế",
|
||||
"dashboard.list.active": "Dashboard đang active",
|
||||
"dashboard.list.edit": "Sửa",
|
||||
"dashboard.list.delete": "Xóa",
|
||||
"dashboard.list.deleteConfirm": "Xóa dashboard «{name}»?",
|
||||
"dashboard.list.cannotDeleteDefault": "Không thể xóa Default Dashboard.",
|
||||
"dashboard.list.noEditPermission": "Bạn không có quyền chỉnh sửa dashboard này.",
|
||||
"dashboard.dialog.create.title": "Tạo dashboard",
|
||||
"dashboard.create.title": "Tạo dashboard",
|
||||
"dashboard.create.subtitle": "Tạo dashboard mới trên robot.",
|
||||
"dashboard.create.backToList": "← Quay lại danh sách",
|
||||
"dashboard.create.name": "Tên",
|
||||
"dashboard.create.namePlaceholder": "VD: John's Dashboard",
|
||||
"dashboard.create.permissions": "Chọn user groups được phép chỉnh sửa dashboard này.",
|
||||
"dashboard.create.permissionsBtn": "Quyền",
|
||||
"dashboard.create.permissionsTitle": "Quyền chỉnh sửa",
|
||||
"dashboard.create.submit": "Tạo dashboard",
|
||||
"dashboard.create.cancel": "Hủy",
|
||||
"dashboard.dialog.editDashboard.title": "Sửa dashboard",
|
||||
"dashboard.designer.empty": "Chưa có widget. Phase B sẽ thêm designer đầy đủ.",
|
||||
"dashboard.createdBy.system": "MiR",
|
||||
"dashboard.addWidget": "Thêm widget",
|
||||
"dashboard.editLayout": "Sửa layout",
|
||||
"dashboard.editDone": "Xong",
|
||||
@@ -341,7 +376,7 @@
|
||||
"help.api.body2": "Reference Guide MiR rev 1.9: docs/Reference guide.pdf",
|
||||
},
|
||||
en: {
|
||||
"app.title": "LiDAR Manager",
|
||||
"app.title": "Robot App",
|
||||
"app.robotName": "RobotApp",
|
||||
"app.status.ready": "Ready",
|
||||
"app.status.reloaded": "Reloaded",
|
||||
@@ -401,6 +436,7 @@
|
||||
"nav.help": "Help",
|
||||
"nav.logout": "Log out",
|
||||
"nav.dashboard": "Dashboard",
|
||||
"nav.dashboardsList": "Dashboards",
|
||||
"nav.missions": "Missions",
|
||||
"nav.maps": "Maps & layout",
|
||||
"nav.monitoring-log": "System log",
|
||||
@@ -451,6 +487,40 @@
|
||||
|
||||
"dashboard.title": "Dashboard",
|
||||
"dashboard.subtitle": "Mission widgets — run, queue and pause like MiR Fleet.",
|
||||
"dashboard.list.title": "Dashboards",
|
||||
"dashboard.list.subtitle": "Create and edit dashboards for the robot.",
|
||||
"dashboard.list.create": "+ Create dashboard",
|
||||
"dashboard.list.clearFilters": "Clear filters",
|
||||
"dashboard.list.filterLabel": "Filter:",
|
||||
"dashboard.list.filterPlaceholder": "Write name to filter by…",
|
||||
"dashboard.list.itemsFound": "{count} item(s) found",
|
||||
"dashboard.list.pageOf": "Page {page} of {total}",
|
||||
"dashboard.list.col.name": "Name",
|
||||
"dashboard.list.col.createdBy": "Created by",
|
||||
"dashboard.list.col.functions": "Functions",
|
||||
"dashboard.list.empty": "No dashboards found.",
|
||||
"dashboard.list.back": "← Back to list",
|
||||
"dashboard.list.design": "Design",
|
||||
"dashboard.list.active": "Active dashboard",
|
||||
"dashboard.list.edit": "Edit",
|
||||
"dashboard.list.delete": "Delete",
|
||||
"dashboard.list.deleteConfirm": "Delete dashboard «{name}»?",
|
||||
"dashboard.list.cannotDeleteDefault": "Cannot delete Default Dashboard.",
|
||||
"dashboard.list.noEditPermission": "You do not have permission to edit this dashboard.",
|
||||
"dashboard.dialog.create.title": "Create dashboard",
|
||||
"dashboard.create.title": "Create dashboard",
|
||||
"dashboard.create.subtitle": "Create a new dashboard in the robot.",
|
||||
"dashboard.create.backToList": "← Back to the list",
|
||||
"dashboard.create.name": "Name",
|
||||
"dashboard.create.namePlaceholder": "John's Dashboard",
|
||||
"dashboard.create.permissions": "Select user groups allowed to edit this dashboard.",
|
||||
"dashboard.create.permissionsBtn": "Permissions",
|
||||
"dashboard.create.permissionsTitle": "Permissions",
|
||||
"dashboard.create.submit": "Create dashboard",
|
||||
"dashboard.create.cancel": "Cancel",
|
||||
"dashboard.dialog.editDashboard.title": "Edit dashboard",
|
||||
"dashboard.designer.empty": "No widgets yet. Full designer coming in Phase B.",
|
||||
"dashboard.createdBy.system": "MiR",
|
||||
"dashboard.addWidget": "Add widget",
|
||||
"dashboard.editLayout": "Edit layout",
|
||||
"dashboard.editDone": "Done",
|
||||
|
||||
Reference in New Issue
Block a user