Skip to content

Commit 115823c

Browse files
authored
Merge pull request #7 from cvijandj/installation
Installation + Start a New React Project translation
2 parents 19c8abf + 2e4cff5 commit 115823c

File tree

5 files changed

+67
-66
lines changed

5 files changed

+67
-66
lines changed

src/components/MDX/ExpandableCallout.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const variantMap = {
2626
'linear-gradient(rgba(249, 247, 243, 0), rgba(249, 247, 243, 1)',
2727
},
2828
note: {
29-
title: 'Note',
29+
title: 'Napomena',
3030
Icon: IconNote,
3131
containerClasses:
3232
'bg-green-5 dark:bg-green-60 dark:bg-opacity-20 text-primary dark:text-primary-dark text-lg',

src/components/MDX/ExpandableExample.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ function ExpandableExample({children, excerpt, type}: ExpandableExampleProps) {
7171
{isDeepDive && (
7272
<>
7373
<IconDeepDive className="inline mr-2 dark:text-purple-30 text-purple-40" />
74-
Deep Dive
74+
Istražite dublje
7575
</>
7676
)}
7777
{isExample && (
7878
<>
7979
<IconCodeBlock className="inline mr-2 dark:text-yellow-30 text-yellow-50" />
80-
Example
80+
Primer
8181
</>
8282
)}
8383
</h5>
@@ -101,7 +101,7 @@ function ExpandableExample({children, excerpt, type}: ExpandableExampleProps) {
101101
<span className="mr-1">
102102
<IconChevron displayDirection={isExpanded ? 'up' : 'down'} />
103103
</span>
104-
{isExpanded ? 'Hide Details' : 'Show Details'}
104+
{isExpanded ? 'Sakrij Detaljnije' : 'Prikaži detaljnije'}
105105
</Button>
106106
</summary>
107107
<div

src/components/MDX/MDXComponents.tsx

+1-1
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 ? 'U ovom poglavlju:' : 'Naučićete:';
177177
return <SimpleCallout title={title}>{children}</SimpleCallout>;
178178
}
179179

src/content/learn/installation.md

+21-20
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,58 @@
11
---
2-
title: Installation
2+
title: Instalacija
33
---
44

55
<Intro>
66

7-
React has been designed from the start for gradual adoption. You can use as little or as much React as you need. Whether you want to get a taste of React, add some interactivity to an HTML page, or start a complex React-powered app, this section will help you get started.
7+
React je dizajniran od početka za postepeno usvajanje. Možete koristiti koliko god React-a želite. Bez obzira da li želite da probate React, dodate neku interaktivnost na HTML stranicu, ili da započnete kompleksnu React aplikaciju, ova sekcija će vam pomoći da počnete.
8+
89

910
</Intro>
1011

1112
<YouWillLearn isChapter={true}>
1213

13-
* [How to start a new React project](/learn/start-a-new-react-project)
14-
* [How to add React to an existing project](/learn/add-react-to-an-existing-project)
15-
* [How to set up your editor](/learn/editor-setup)
16-
* [How to install React Developer Tools](/learn/react-developer-tools)
14+
* [Kako započeti novi React projekat](/learn/start-a-new-react-project)
15+
* [Kako dodati React na postojeći projekat](/learn/add-react-to-an-existing-project)
16+
* [Kako da konfigurišete vaš editor](/learn/editor-setup)
17+
* [Kako da instalirate React Developer tools](/learn/react-developer-tools)
1718

1819
</YouWillLearn>
1920

20-
## Try React {/*try-react*/}
21+
## Isprobajte React {/*try-react*/}
2122

22-
You don't need to install anything to play with React. Try editing this sandbox!
23+
Ne morate ništa instalirati da bi ste se igrali sa React-om. Probajte da izmenite ovaj sandbox!
2324

2425
<Sandpack>
2526

2627
```js
2728
function Greeting({ name }) {
28-
return <h1>Hello, {name}</h1>;
29+
return <h1>Zdravo, {name}</h1>;
2930
}
3031

3132
export default function App() {
32-
return <Greeting name="world" />
33+
return <Greeting name="svet" />
3334
}
3435
```
3536

3637
</Sandpack>
3738

38-
You can edit it directly or open it in a new tab by pressing the "Fork" button in the upper right corner.
39+
Možete ga direktno menjati ili otvoriti u novom tabu pritiskom na "Fork" dugme u gornjem desnom uglu.
3940

40-
Most pages in the React documentation contain sandboxes like this. Outside of the React documentation, there are many online sandboxes that support React: for example, [CodeSandbox](https://codesandbox.io/s/new), [StackBlitz](https://stackblitz.com/fork/react), or [CodePen.](https://codepen.io/pen?&editors=0010&layout=left&prefill_data_id=3f4569d1-1b11-4bce-bd46-89090eed5ddb)
41+
Većina stranica u React dokumentaciji sadrži sandbokse kao ovaj. Van React dokumentacije, postoje mnogi online sandboksi koji podržavaju React: na primer, [CodeSandbox](https://codesandbox.io/s/new), [StackBlitz](https://stackblitz.com/fork/react), ili [CodePen.](https://codepen.io/pen?&editors=0010&layout=left&prefill_data_id=3f4569d1-1b11-4bce-bd46-89090eed5ddb)
4142

42-
### Try React locally {/*try-react-locally*/}
43+
### Isprobajte React lokalno {/*try-react-locally*/}
4344

44-
To try React locally on your computer, [download this HTML page.](https://gist.githubusercontent.com/gaearon/0275b1e1518599bbeafcde4722e79ed1/raw/db72dcbf3384ee1708c4a07d3be79860db04bff0/example.html) Open it in your editor and in your browser!
45+
Da isprobate React lokalno na vašem računaru, [preuzmite ovu HTML stranicu.](https://gist.githubusercontent.com/gaearon/0275b1e1518599bbeafcde4722e79ed1/raw/db72dcbf3384ee1708c4a07d3be79860db04bff0/example.html) Otvorite je u vašem editoru i u vašem pretraživaču!
4546

46-
## Start a new React project {/*start-a-new-react-project*/}
47+
## Započnite novi React projekat {/*start-a-new-react-project*/}
4748

48-
If you want to build an app or a website fully with React, [start a new React project.](/learn/start-a-new-react-project)
49+
Ako želite da napravite aplikaciju ili sajt koristeći samo React, [zapocnite novi React projekat.](/learn/start-a-new-react-project)
4950

50-
## Add React to an existing project {/*add-react-to-an-existing-project*/}
51+
## Dodajte React u postojeći projekat {/*add-react-to-an-existing-project*/}
5152

52-
If want to try using React in your existing app or a website, [add React to an existing project.](/learn/add-react-to-an-existing-project)
53+
Ako žeite da isprobate React u vašem postojećem sajtu ili aplikaciji, [dodajte React u postojeći projekat.](/learn/add-react-to-an-existing-project)
5354

54-
## Next steps {/*next-steps*/}
55+
## Sledeći koraci {/*next-steps*/}
5556

56-
Head to the [Quick Start](/learn) guide for a tour of the most important React concepts you will encounter every day.
57+
Idite na [Brzi Start](/learn) vodič za turu najvažnijih React koncepta sa kojima ćete se susretati svakodnevno.
5758

0 commit comments

Comments
 (0)