فهرست منبع

locale(cloud): translate cloud

crush394 4 سال پیش
والد
کامیت
4c2c8599bc
4فایلهای تغییر یافته به همراه48 افزوده شده و 12 حذف شده
  1. 8 2
      src/pages/cloud/Aliyun/index.tsx
  2. 8 2
      src/pages/cloud/Ctwing/index.tsx
  3. 20 5
      src/pages/cloud/DuerOS/index.tsx
  4. 12 3
      src/pages/cloud/Onenet/index.tsx

+ 8 - 2
src/pages/cloud/Aliyun/index.tsx

@@ -31,12 +31,18 @@ const Aliyun = () => {
       width: 48,
       width: 48,
     },
     },
     {
     {
-      title: '名称',
+      title: intl.formatMessage({
+        id: 'pages.table.name',
+        defaultMessage: '名称',
+      }),
       align: 'center',
       align: 'center',
       dataIndex: 'name',
       dataIndex: 'name',
     },
     },
     {
     {
-      title: '说明',
+      title: intl.formatMessage({
+        id: 'pages.table.description',
+        defaultMessage: '说明',
+      }),
       align: 'center',
       align: 'center',
       dataIndex: 'description',
       dataIndex: 'description',
     },
     },

+ 8 - 2
src/pages/cloud/Ctwing/index.tsx

@@ -26,7 +26,10 @@ const Ctwing = () => {
       width: 48,
       width: 48,
     },
     },
     {
     {
-      title: '名称',
+      title: intl.formatMessage({
+        id: 'pages.table.name',
+        defaultMessage: '名称',
+      }),
       align: 'center',
       align: 'center',
       dataIndex: 'name',
       dataIndex: 'name',
     },
     },
@@ -39,7 +42,10 @@ const Ctwing = () => {
       render: (value: any) => value.text,
       render: (value: any) => value.text,
     },
     },
     {
     {
-      title: '说明',
+      title: intl.formatMessage({
+        id: 'pages.table.description',
+        defaultMessage: '说明',
+      }),
       align: 'center',
       align: 'center',
       dataIndex: 'description',
       dataIndex: 'description',
     },
     },

+ 20 - 5
src/pages/cloud/DuerOS/index.tsx

@@ -19,23 +19,38 @@ const DuerOS = () => {
       width: 48,
       width: 48,
     },
     },
     {
     {
-      title: '名称',
+      title: intl.formatMessage({
+        id: 'pages.table.name',
+        defaultMessage: '名称',
+      }),
       dataIndex: 'name',
       dataIndex: 'name',
     },
     },
     {
     {
-      title: '设备类型',
+      title: intl.formatMessage({
+        id: 'pages.cloud.duerOS.applianceType',
+        defaultMessage: '设备类型',
+      }),
       dataIndex: 'applianceType',
       dataIndex: 'applianceType',
     },
     },
     {
     {
-      title: '厂商名称',
+      title: intl.formatMessage({
+        id: 'pages.cloud.duerOS.manufacturerName',
+        defaultMessage: '厂家名称',
+      }),
       dataIndex: 'manufacturerName',
       dataIndex: 'manufacturerName',
     },
     },
     {
     {
-      title: '动作数量',
+      title: intl.formatMessage({
+        id: 'pages.cloud.duerOS.version',
+        defaultMessage: '动作数量',
+      }),
       dataIndex: 'version',
       dataIndex: 'version',
     },
     },
     {
     {
-      title: '操作',
+      title: intl.formatMessage({
+        id: 'pages.data.option',
+        defaultMessage: '操作',
+      }),
       valueType: 'option',
       valueType: 'option',
       align: 'center',
       align: 'center',
       width: 200,
       width: 200,

+ 12 - 3
src/pages/cloud/Onenet/index.tsx

@@ -31,17 +31,26 @@ const Onenet = () => {
       width: 48,
       width: 48,
     },
     },
     {
     {
-      title: '名称',
+      title: intl.formatMessage({
+        id: 'pages.table.name',
+        defaultMessage: '名称',
+      }),
       align: 'center',
       align: 'center',
       dataIndex: 'name',
       dataIndex: 'name',
     },
     },
     {
     {
-      title: '状态',
+      title: intl.formatMessage({
+        id: 'pages.searchTable.titleStatus',
+        defaultMessage: '状态',
+      }),
       align: 'center',
       align: 'center',
       dataIndex: 'state.text',
       dataIndex: 'state.text',
     },
     },
     {
     {
-      title: '说明',
+      title: intl.formatMessage({
+        id: 'pages.table.description',
+        defaultMessage: '说明',
+      }),
       align: 'center',
       align: 'center',
       dataIndex: 'description',
       dataIndex: 'description',
     },
     },