visuddhinanda 2 лет назад
Родитель
Сommit
3c70619568

+ 2 - 4
dashboard/src/components/term/TermExport.tsx

@@ -37,20 +37,18 @@ const TermExportWidget = ({ channelId, studioName }: IWidget) => {
         get<IExportResponse>(url)
           .then((json) => {
             if (json.ok) {
-              console.log("download", json);
               const link = `${API_HOST}/api/v2/download/${json.data.type}/${json.data.uuid}/${json.data.filename}`;
               modal.info({
-                title: "download",
+                title: intl.formatMessage({ id: "buttons.download" }),
                 content: (
                   <>
-                    {"link: "}
                     <a
                       href={link}
                       target="_blank"
                       key="export"
                       rel="noreferrer"
                     >
-                      Download
+                      {intl.formatMessage({ id: "buttons.download.link" })}
                     </a>
                   </>
                 ),

+ 2 - 0
dashboard/src/locales/zh-Hans/buttons.ts

@@ -48,6 +48,8 @@ const items = {
   "buttons.add.tag": "添加标签",
   "buttons.remove.selected": "清除选择",
   "buttons.multiple.select": "多选",
+  "buttons.download": "下载",
+  "buttons.download.link": "下载链接",
 };
 
 export default items;

+ 1 - 0
dashboard/src/locales/zh-Hans/label.ts

@@ -7,6 +7,7 @@ const items = {
   "labels.week.5": "星期五",
   "labels.week.6": "星期六",
   "labels.collaborators": "协作者",
+  "labels.link": "链接",
 };
 
 export default items;