@@ -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>
</>
),
@@ -48,6 +48,8 @@ const items = {
"buttons.add.tag": "添加标签",
"buttons.remove.selected": "清除选择",
"buttons.multiple.select": "多选",
+ "buttons.download": "下载",
+ "buttons.download.link": "下载链接",
};
export default items;
@@ -7,6 +7,7 @@ const items = {
"labels.week.5": "星期五",
"labels.week.6": "星期六",
"labels.collaborators": "协作者",
+ "labels.link": "链接",