Skip to content

Commit c2a892a

Browse files
authored
Merge pull request #566 from reactjs/tr/ui-learn
Translate UI elements on "Learn" pages
2 parents 7ce27f6 + 5995ee7 commit c2a892a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/components/Layout/Toc.tsx

+1-1
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

+1-1
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

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {Children} from 'react';
77
// TODO: This logic could be in MDX plugins instead.
88

99
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10-
export const PREPARE_MDX_CACHE_BREAKER = 2;
10+
export const PREPARE_MDX_CACHE_BREAKER = 2.1;
1111
// !!! IMPORTANT !!! Bump this if you change any logic.
1212
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1313

@@ -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)