|
|
@@ -2,8 +2,10 @@ import { Col, Row } from "antd";
|
|
|
import { Link } from "react-router-dom";
|
|
|
import img_book from "../../assets/library/images/books.svg";
|
|
|
import ChapterNewList from "./ChapterNewList";
|
|
|
+import { useIntl } from "react-intl";
|
|
|
|
|
|
const ChapterNewWidget = () => {
|
|
|
+ const intl = useIntl();
|
|
|
return (
|
|
|
<Row
|
|
|
style={{
|
|
|
@@ -21,9 +23,13 @@ const ChapterNewWidget = () => {
|
|
|
}}
|
|
|
>
|
|
|
<div style={{ flex: 4, margin: "2em" }}>
|
|
|
- <span style={{ fontSize: "250%", fontWeight: 700 }}>圣典</span>
|
|
|
+ <span style={{ fontSize: "250%", fontWeight: 700 }}>
|
|
|
+ {intl.formatMessage({ id: "columns.library.community.title" })}
|
|
|
+ </span>
|
|
|
<span style={{ position: "absolute", right: 30, bottom: 0 }}>
|
|
|
- <Link to="community/list">更多</Link>
|
|
|
+ <Link to="community/list">
|
|
|
+ {intl.formatMessage({ id: "buttons.more" })}
|
|
|
+ </Link>
|
|
|
</span>
|
|
|
</div>
|
|
|
<div style={{ flex: 9 }}>
|