Skip to content

Commit 5f0c283

Browse files
committed
Translate UI elements on "Learn" pages
1 parent 4b393bc commit 5f0c283

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/components/Layout/Toc.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function Toc({headings}: {headings: Toc}) {
1616
<nav role="navigation" className="pt-20 sticky top-0 right-0">
1717
{headings.length > 0 && (
1818
<h2 className="mb-3 lg:mb-3 uppercase tracking-wide font-bold text-sm text-secondary dark:text-secondary-dark px-4 w-full">
19-
On this page
19+
このページの内容
2020
</h2>
2121
)}
2222
<div

src/components/MDX/Challenges/Challenge.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export function Challenge({
5050
className="text-xl text-primary dark:text-primary-dark mb-2 mt-0 font-medium"
5151
id={currentChallenge.id}>
5252
<div className="font-bold block md:inline">
53-
{isRecipes ? '例' : 'チャレンジ'} {currentChallenge.order} of{' '}
53+
{isRecipes ? '例' : 'チャレンジ'} {currentChallenge.order}/
5454
{totalChallenges}
5555
<span className="text-primary dark:text-primary-dark">: </span>
5656
</div>

src/utils/prepareMDX.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function getTableOfContents(children, depth) {
6565
if (anchors.length > 0) {
6666
anchors.unshift({
6767
url: '#',
68-
text: 'Overview',
68+
text: '概要',
6969
depth: 2,
7070
});
7171
}
@@ -88,13 +88,13 @@ function extractHeaders(children, depth, out) {
8888
header = {
8989
url: '#challenges',
9090
depth: 2,
91-
text: 'Challenges',
91+
text: 'チャレンジ問題',
9292
};
9393
} else if (child.type === 'Recap') {
9494
header = {
9595
url: '#recap',
9696
depth: 2,
97-
text: 'Recap',
97+
text: 'まとめ',
9898
};
9999
} else if (child.type === 'TeamMember') {
100100
header = {

0 commit comments

Comments
 (0)