feat: initial EMS frontend template from ems-core v1.1.0
This commit is contained in:
18
src/i18n/index.ts
Normal file
18
src/i18n/index.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import i18n from 'i18next';
|
||||
import { initReactI18next } from 'react-i18next';
|
||||
import zh from './locales/zh.json';
|
||||
import en from './locales/en.json';
|
||||
|
||||
i18n.use(initReactI18next).init({
|
||||
resources: {
|
||||
zh: { translation: zh },
|
||||
en: { translation: en },
|
||||
},
|
||||
lng: localStorage.getItem('tianpu-lang') || 'zh',
|
||||
fallbackLng: 'zh',
|
||||
interpolation: {
|
||||
escapeValue: false,
|
||||
},
|
||||
});
|
||||
|
||||
export default i18n;
|
||||
64
src/i18n/locales/en.json
Normal file
64
src/i18n/locales/en.json
Normal file
@@ -0,0 +1,64 @@
|
||||
{
|
||||
"menu": {
|
||||
"dashboard": "Energy Overview",
|
||||
"monitoring": "Real-time Monitoring",
|
||||
"devices": "Device Management",
|
||||
"analysis": "Energy Analysis",
|
||||
"alarms": "Alarm Management",
|
||||
"carbon": "Carbon Management",
|
||||
"reports": "Reports",
|
||||
"bigscreen": "Visual Dashboard",
|
||||
"bigscreen2d": "2D Energy Screen",
|
||||
"bigscreen3d": "3D Park Screen",
|
||||
"system": "System Management",
|
||||
"users": "User Management",
|
||||
"roles": "Roles & Permissions",
|
||||
"settings": "System Settings",
|
||||
"audit": "Audit Log",
|
||||
"quota": "Quota Management",
|
||||
"charging": "Charging Management",
|
||||
"maintenance": "O&M Management",
|
||||
"dataQuery": "Data Query",
|
||||
"management": "Management System",
|
||||
"prediction": "AI Prediction"
|
||||
},
|
||||
"header": {
|
||||
"alarmNotification": "Alarm Notifications",
|
||||
"activeAlarms": "active",
|
||||
"noActiveAlarms": "No active alarms",
|
||||
"viewAllAlarms": "View all alarms",
|
||||
"profile": "Profile",
|
||||
"logout": "Sign Out",
|
||||
"brandName": "Tianpu EMS"
|
||||
},
|
||||
"common": {
|
||||
"save": "Save",
|
||||
"cancel": "Cancel",
|
||||
"confirm": "Confirm",
|
||||
"delete": "Delete",
|
||||
"edit": "Edit",
|
||||
"add": "Add",
|
||||
"search": "Search",
|
||||
"reset": "Reset",
|
||||
"export": "Export",
|
||||
"import": "Import",
|
||||
"loading": "Loading",
|
||||
"success": "Success",
|
||||
"error": "Error",
|
||||
"noData": "No data"
|
||||
},
|
||||
"analysis": {
|
||||
"dataComparison": "Data Comparison",
|
||||
"energyTrend": "Energy Trend",
|
||||
"dailySummary": "Daily Energy Summary",
|
||||
"period1": "Period 1",
|
||||
"period2": "Period 2",
|
||||
"totalConsumption": "Total Consumption",
|
||||
"peakPower": "Peak Power",
|
||||
"avgLoad": "Average Load",
|
||||
"carbonEmission": "Carbon Emission",
|
||||
"change": "Change",
|
||||
"compare": "Compare",
|
||||
"selectDateRange": "Select date range"
|
||||
}
|
||||
}
|
||||
64
src/i18n/locales/zh.json
Normal file
64
src/i18n/locales/zh.json
Normal file
@@ -0,0 +1,64 @@
|
||||
{
|
||||
"menu": {
|
||||
"dashboard": "能源总览",
|
||||
"monitoring": "实时监控",
|
||||
"devices": "设备管理",
|
||||
"analysis": "能耗分析",
|
||||
"alarms": "告警管理",
|
||||
"carbon": "碳排放管理",
|
||||
"reports": "报表管理",
|
||||
"bigscreen": "可视化大屏",
|
||||
"bigscreen2d": "2D 能源大屏",
|
||||
"bigscreen3d": "3D 园区大屏",
|
||||
"system": "系统管理",
|
||||
"users": "用户管理",
|
||||
"roles": "角色权限",
|
||||
"settings": "系统设置",
|
||||
"audit": "审计日志",
|
||||
"quota": "定额管理",
|
||||
"charging": "充电管理",
|
||||
"maintenance": "运维管理",
|
||||
"dataQuery": "数据查询",
|
||||
"management": "管理体系",
|
||||
"prediction": "AI预测"
|
||||
},
|
||||
"header": {
|
||||
"alarmNotification": "告警通知",
|
||||
"activeAlarms": "条活跃",
|
||||
"noActiveAlarms": "暂无活跃告警",
|
||||
"viewAllAlarms": "查看全部告警",
|
||||
"profile": "个人信息",
|
||||
"logout": "退出登录",
|
||||
"brandName": "天普EMS"
|
||||
},
|
||||
"common": {
|
||||
"save": "保存",
|
||||
"cancel": "取消",
|
||||
"confirm": "确认",
|
||||
"delete": "删除",
|
||||
"edit": "编辑",
|
||||
"add": "新增",
|
||||
"search": "搜索",
|
||||
"reset": "重置",
|
||||
"export": "导出",
|
||||
"import": "导入",
|
||||
"loading": "加载中",
|
||||
"success": "操作成功",
|
||||
"error": "操作失败",
|
||||
"noData": "暂无数据"
|
||||
},
|
||||
"analysis": {
|
||||
"dataComparison": "数据对比",
|
||||
"energyTrend": "能耗趋势",
|
||||
"dailySummary": "每日能耗汇总",
|
||||
"period1": "时段一",
|
||||
"period2": "时段二",
|
||||
"totalConsumption": "总用电量",
|
||||
"peakPower": "峰值功率",
|
||||
"avgLoad": "平均负荷",
|
||||
"carbonEmission": "碳排放",
|
||||
"change": "变化",
|
||||
"compare": "对比",
|
||||
"selectDateRange": "选择日期范围"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user