visuddhinanda před 2 roky
rodič
revize
0090884252

+ 1 - 1
dashboard/src/components/share/ShareModal.tsx

@@ -31,7 +31,7 @@ const ShareModalWidget = ({ resId, resType, trigger }: IWidget) => {
         open={isModalOpen}
         open={isModalOpen}
         onOk={handleOk}
         onOk={handleOk}
         onCancel={handleCancel}
         onCancel={handleCancel}
-        footer={false}
+        footer={undefined}
       >
       >
         <Share resId={resId} resType={resType} />
         <Share resId={resId} resType={resType} />
       </Modal>
       </Modal>

+ 3 - 1
dashboard/src/components/template/SentEdit/SentCell.tsx

@@ -313,7 +313,9 @@ const SentCellWidget = ({
                     width: "100%",
                     width: "100%",
                     marginBottom: 0,
                     marginBottom: 0,
                   }}
                   }}
-                  placeholder="请输入"
+                  placeholder={intl.formatMessage({
+                    id: "labels.input",
+                  })}
                   html={sentData.html ? sentData.html : sentData.content}
                   html={sentData.html ? sentData.html : sentData.content}
                   wordWidget={wordWidget}
                   wordWidget={wordWidget}
                 />
                 />

+ 3 - 1
dashboard/src/components/template/SentEdit/SentCellEditable.tsx

@@ -202,7 +202,9 @@ const SentCellEditableWidget = ({
         onChange={(value: string) => {
         onChange={(value: string) => {
           setValue(value);
           setValue(value);
         }}
         }}
-        placeholder="请输入"
+        placeholder={intl.formatMessage({
+          id: "labels.input",
+        })}
         onClose={() => {
         onClose={() => {
           if (typeof onClose !== "undefined") {
           if (typeof onClose !== "undefined") {
             onClose();
             onClose();

+ 15 - 3
dashboard/src/components/template/SentEdit/SentEditMenu.tsx

@@ -144,7 +144,11 @@ const SentEditMenuWidget = ({
           display: isHover ? "block" : "none",
           display: isHover ? "block" : "none",
         }}
         }}
       >
       >
-        <Tooltip title="编辑">
+        <Tooltip
+          title={intl.formatMessage({
+            id: "buttons.edit",
+          })}
+        >
           <Button
           <Button
             icon={<EditOutlined />}
             icon={<EditOutlined />}
             size="small"
             size="small"
@@ -155,7 +159,11 @@ const SentEditMenuWidget = ({
             }}
             }}
           />
           />
         </Tooltip>
         </Tooltip>
-        <Tooltip title="复制">
+        <Tooltip
+          title={intl.formatMessage({
+            id: "buttons.copy",
+          })}
+        >
           <Button
           <Button
             icon={<CopyOutlined />}
             icon={<CopyOutlined />}
             size="small"
             size="small"
@@ -170,7 +178,11 @@ const SentEditMenuWidget = ({
             }}
             }}
           />
           />
         </Tooltip>
         </Tooltip>
-        <Tooltip title="粘贴">
+        <Tooltip
+          title={intl.formatMessage({
+            id: "buttons.paste",
+          })}
+        >
           <Button
           <Button
             icon={<PasteOutLinedIcon />}
             icon={<PasteOutLinedIcon />}
             size="small"
             size="small"

+ 3 - 1
dashboard/src/components/term/TermList.tsx

@@ -194,7 +194,9 @@ const TermListWidget = ({ studioName, channelId }: IWidget) => {
                   }}
                   }}
                 >
                 >
                   <TermModal
                   <TermModal
-                    trigger={"编辑"}
+                    trigger={intl.formatMessage({
+                      id: "buttons.edit",
+                    })}
                     id={row.id}
                     id={row.id}
                     studioName={studioName}
                     studioName={studioName}
                     channelId={channelId}
                     channelId={channelId}