Skip to content

Commit 00f3710

Browse files
committed
fix: fixed i18n for roadmap
1 parent a3970cc commit 00f3710

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

‎src/locales/en.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,8 @@ const en = {
386386
`,
387387

388388
dp: "Dynamic Programming",
389-
dp_desc: `The basic framework for different problems of the same type is generally consistent, but with slight variations in details. The template code is explained using a specific type as an example, and individuals should make adjustments based on the actual situation.
389+
dp_desc: `
390+
The basic framework for different problems of the same type is generally consistent, but with slight variations in details. The template code is explained using a specific type as an example, and individuals should make adjustments based on the actual situation.
390391
391392
The three key points for dynamic programming are: state, enumeration, and transition equations (choices). For each type of problem, I try to provide hints based on these three points.
392393

‎src/roadmap/roadmap.jsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class Solution:
4949
return helper(0, len(s) - 1)
5050
`;
5151

52-
const roadmaps = {
52+
const getRoadmaps = () => ({
5353
"binary-search": {
5454
desc: t("Locale.learningRoute.binarySearchDesc"),
5555
items: [
@@ -545,10 +545,11 @@ ${dpRangeCodeRecur}`,
545545
},
546546
],
547547
},
548-
};
548+
});
549549

550550
export default function RoadMap() {
551551
const [topic, setTopic] = useState("dp");
552+
const roadmaps = getRoadmaps();
552553
return (
553554
<>
554555
<Radio.Group

0 commit comments

Comments
 (0)