Skip to content

Commit f2602bf

Browse files
authored
Quick Start translation (#349)
1 parent 56d984b commit f2602bf

File tree

7 files changed

+5799
-5895
lines changed

7 files changed

+5799
-5895
lines changed

.husky/pre-commit

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
33

4-
yarn lint-staged
4+
npm run lint

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"tsc": "tsc --noEmit",
2020
"start": "next start",
2121
"postinstall": "patch-package && (is-ci || husky install .husky)",
22-
"check-all": "npm-run-all prettier lint:fix tsc"
22+
"check-all": "npm-run-all prettier lint:fix tsc",
23+
"prepare": "husky install"
2324
},
2425
"dependencies": {
2526
"@codesandbox/sandpack-react": "1.15.5",
@@ -71,7 +72,7 @@
7172
"fs-extra": "^9.0.1",
7273
"globby": "^11.0.1",
7374
"gray-matter": "^4.0.2",
74-
"husky": "^7.0.4",
75+
"husky": "^8.0.0",
7576
"is-ci": "^3.0.1",
7677
"lint-staged": ">=10",
7778
"mdast-util-to-string": "^1.1.0",

src/components/Layout/Feedback.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function SendFeedback({onSubmit}: {onSubmit: () => void}) {
6363
return (
6464
<div className="max-w-xs w-80 lg:w-auto py-3 shadow-lg rounded-lg m-4 bg-wash dark:bg-gray-95 px-4 flex">
6565
<p className="w-full font-bold text-primary dark:text-primary-dark text-lg mr-4">
66-
{isSubmitted ? 'Thank you for your feedback!' : 'Is this page useful?'}
66+
{isSubmitted ? 'Санал өгсөнд баярлалаа!' : 'Энэ хуудас хэрэг болж байна уу?'}
6767
</p>
6868
{!isSubmitted && (
6969
<button

src/components/Layout/Footer.tsx

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -286,50 +286,50 @@ export function Footer() {
286286
</div>
287287
<div className="flex flex-col">
288288
<FooterLink href="/learn" isHeader={true}>
289-
Learn React
289+
React сурах
290290
</FooterLink>
291291
<FooterLink href="/learn/">Хурдан Эхлэх</FooterLink>
292-
<FooterLink href="/learn/installation">Installation</FooterLink>
292+
<FooterLink href="/learn/installation">Суулгах</FooterLink>
293293
<FooterLink href="/learn/describing-the-ui">
294-
Describing the UI
294+
UI-г тодорхойлох
295295
</FooterLink>
296296
<FooterLink href="/learn/adding-interactivity">
297-
Adding Interactivity
297+
Интеракц нэмэх
298298
</FooterLink>
299-
<FooterLink href="/learn/managing-state">Managing State</FooterLink>
299+
<FooterLink href="/learn/managing-state">Төлөв удирдах</FooterLink>
300300
<FooterLink href="/learn/escape-hatches">Escape Hatches</FooterLink>
301301
</div>
302302
<div className="flex flex-col">
303303
<FooterLink href="/reference/react" isHeader={true}>
304-
API Reference
304+
API лавлах
305305
</FooterLink>
306-
<FooterLink href="/reference/react">React APIs</FooterLink>
307-
<FooterLink href="/reference/react-dom">React DOM APIs</FooterLink>
306+
<FooterLink href="/reference/react">React API</FooterLink>
307+
<FooterLink href="/reference/react-dom">React DOM API</FooterLink>
308308
</div>
309309
<div className="md:col-start-2 xl:col-start-4 flex flex-col">
310310
<FooterLink href="/community" isHeader={true}>
311311
Community
312312
</FooterLink>
313313
<FooterLink href="https://github.com/facebook/react/blob/main/CODE_OF_CONDUCT.md">
314-
Code of Conduct
314+
Ёс зүйн дүрэм
315315
</FooterLink>
316-
<FooterLink href="/community/team">Meet the Team</FooterLink>
316+
<FooterLink href="/community/team">Багийн мэдээлэл</FooterLink>
317317
<FooterLink href="/community/docs-contributors">
318318
Docs Contributors
319319
</FooterLink>
320320
<FooterLink href="/community/acknowledgements">
321-
Acknowledgements
321+
Талархал
322322
</FooterLink>
323323
</div>
324324
<div className="flex flex-col">
325-
<FooterLink isHeader={true}>More</FooterLink>
326-
<FooterLink href="/blog">Blog</FooterLink>
325+
<FooterLink isHeader={true}>Илүү их</FooterLink>
326+
<FooterLink href="/blog">Блог</FooterLink>
327327
<FooterLink href="https://reactnative.dev/">React Native</FooterLink>
328328
<FooterLink href="https://opensource.facebook.com/legal/privacy">
329-
Privacy
329+
Нууцлал
330330
</FooterLink>
331331
<FooterLink href="https://opensource.fb.com/legal/terms/">
332-
Terms
332+
Ашиглах нөхцөл
333333
</FooterLink>
334334
<div className="flex flex-row mt-8 gap-x-2">
335335
<ExternalLink

src/components/MDX/MDXComponents.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ function YouWillLearn({
173173
children: any;
174174
isChapter?: boolean;
175175
}) {
176-
let title = isChapter ? 'In this chapter' : 'You will learn';
176+
let title = isChapter ? 'Энэ бүлэгт' : 'Агуулга';
177177
return <SimpleCallout title={title}>{children}</SimpleCallout>;
178178
}
179179

0 commit comments

Comments
 (0)