diff --git a/src/content/learn/managing-state.md b/src/content/learn/managing-state.md index 4ca85e8e0..a64d651e8 100644 --- a/src/content/learn/managing-state.md +++ b/src/content/learn/managing-state.md @@ -20,7 +20,7 @@ Sovelluksesi kasvaessa, kannattaa olla tietoinen miten tilasi on järjestetty se -## Tilan reagointi syötteeseen {/*reacting-to-input-with-state*/} +## Reagointi syötteeseen tilalla {/*reacting-to-input-with-state*/} Reactissa et muokkaa käyttöliittymäkoodia suoraan. Esimerkiksi, et kirjoita komentoja kuten "poista painike käytöstä", "ota painike käyttöön", "näytä onnistumisviesti", jne. Sen sijaan kerrot käyttöliittymän, jonka haluat nähdä erilaisissa komponentin tiloissa ("alkutila", "kirjoitetaan -tila", "onnistumistila"), ja sitten vaihdat tilaa käyttäjän syötteen pohjalta. Tämä vastaa samaa kuin miten suunnittelijat ajattelevat käyttöliittymiä. @@ -103,7 +103,7 @@ function submitForm(answer) { -Lue **[Reacting to Input with State](/learn/reacting-to-input-with-state)** oppiaksesi lähestymään vuorovaikutusta tilalähtöisellä ajattelutavalla. +Lue **[Reagointi syötteeseen tilalla](/learn/reacting-to-input-with-state)** oppiaksesi lähestymään vuorovaikutusta tilalähtöisellä ajattelutavalla. @@ -773,7 +773,7 @@ Lue **[Tiedon välittäminen syvälle kontekstilla](/learn/passing-data-deeply-w -## Skaalaus reducerilla ja kontekstilla {/*scaling-up-with-reducer-and-context*/} +## Skaalaus reduktorin ja kontekstin avulla {/*scaling-up-with-reducer-and-context*/} Reducerien avulla voit yhdistää komponentin tilanpäivityslogiikan. Kontekstin avulla voit antaa tietoa syvälle muihin komponentteihin. Voit yhdistää reducereita ja konteksteja yhteen hallitaksesi monimutkaisen ruudun tilaa. @@ -987,7 +987,7 @@ li { -Lue **[Skaalaus reducerilla ja kontekstilla](/learn/scaling-up-with-reducer-and-context)** oppiaksesi miten tilan hallinta skaalautuu kasvavassa sovelluksessa. +Lue **[Skaalaus reduktorin ja kontekstin avulla](/learn/scaling-up-with-reducer-and-context)** oppiaksesi miten tilan hallinta skaalautuu kasvavassa sovelluksessa. diff --git a/src/content/learn/reacting-to-input-with-state.md b/src/content/learn/reacting-to-input-with-state.md index 6841cd941..5ed48b82f 100644 --- a/src/content/learn/reacting-to-input-with-state.md +++ b/src/content/learn/reacting-to-input-with-state.md @@ -1,5 +1,5 @@ --- -title: Reagointi syötteen tilaan +title: Reagointi syötteeseen tilalla --- diff --git a/src/content/learn/scaling-up-with-reducer-and-context.md b/src/content/learn/scaling-up-with-reducer-and-context.md index c57cb55dc..076e3fa18 100644 --- a/src/content/learn/scaling-up-with-reducer-and-context.md +++ b/src/content/learn/scaling-up-with-reducer-and-context.md @@ -1,5 +1,5 @@ --- -title: Ylösskaalaus reduktorin ja kontekstin avulla +title: Skaalaus reduktorin ja kontekstin avulla --- diff --git a/src/sidebarBlog.json b/src/sidebarBlog.json index 2141181b0..2946e501b 100644 --- a/src/sidebarBlog.json +++ b/src/sidebarBlog.json @@ -4,7 +4,7 @@ "routes": [ { "hasSectionHeader": true, - "sectionHeader": "STAY INFORMED" + "sectionHeader": "PYSY AJAN TASALLA" }, { "title": "Blog", diff --git a/src/sidebarCommunity.json b/src/sidebarCommunity.json index 6b3e4eca3..03f647b56 100644 --- a/src/sidebarCommunity.json +++ b/src/sidebarCommunity.json @@ -1,42 +1,42 @@ { - "title": "Community", + "title": "Yhteisö", "path": "/community", "routes": [ { "hasSectionHeader": true, - "sectionHeader": "GET INVOLVED" + "sectionHeader": "OSALLISTU" }, { - "title": "Community", + "title": "Yhteisö", "path": "/community", "skipBreadcrumb": true, "routes": [ { - "title": "React Conferences", + "title": "React Konferenssit", "path": "/community/conferences" }, { - "title": "React Meetups", + "title": "React Tapaamiset", "path": "/community/meetups" }, { - "title": "React Videos", + "title": "React Videot", "path": "/community/videos" }, { - "title": "Meet the Team", + "title": "Tapaa tiimi", "path": "/community/team" }, { - "title": "Docs Contributors", + "title": "Dokumentaation kehittäjät", "path": "/community/docs-contributors" }, { - "title": "Acknowledgements", + "title": "Tunnustukset", "path": "/community/acknowledgements" }, { - "title": "Versioning Policy", + "title": "Versiointikäytäntö", "path": "/community/versioning-policy" } ] diff --git a/src/sidebarHome.json b/src/sidebarHome.json index 4509c26fc..b404e7669 100644 --- a/src/sidebarHome.json +++ b/src/sidebarHome.json @@ -1,37 +1,37 @@ { - "title": "React Docs", + "title": "React Dokumentaatio", "path": "/", "routes": [ { "hasSectionHeader": true, - "sectionHeader": "GET STARTED" + "sectionHeader": "ALOITUS" }, { - "title": "Quick Start", + "title": "Pika-aloitus", "path": "/learn" }, { - "title": "Installation", + "title": "Asennus", "path": "/learn/installation" }, { "hasSectionHeader": true, - "sectionHeader": "LEARN REACT" + "sectionHeader": "OPETTELE REACTIA" }, { - "title": "Describing the UI", + "title": "Käyttöliittymän kuvaus", "path": "/learn/describing-the-ui" }, { - "title": "Adding Interactivity", + "title": "Interaktiivisuuden lisääminen", "path": "/learn/adding-interactivity" }, { - "title": "Managing State", + "title": "Tilan hallinta", "path": "/learn/managing-state" }, { - "title": "Escape Hatches", + "title": "Pelastusluukut", "path": "/learn/escape-hatches" }, { @@ -39,19 +39,19 @@ "sectionHeader": "REACT API" }, { - "title": "Hooks", + "title": "Hookit", "path": "/reference/react" }, { - "title": "Components", + "title": "Komponentit", "path": "/reference/react/components" }, { - "title": "APIs", + "title": "APIt", "path": "/reference/react/apis" }, { - "title": "Legacy APIs", + "title": "Vanhemmat APIs", "path": "/reference/react/legacy" }, { @@ -59,35 +59,35 @@ "sectionHeader": "REACT DOM API" }, { - "title": "Components", + "title": "Komponentit", "path": "/reference/react-dom/components" }, { - "title": "APIs", + "title": "APIt", "path": "/reference/react-dom" }, { - "title": "Client APIs", + "title": "Asiakaspuolen APIt", "path": "/reference/react-dom/client" }, { - "title": "Server APIs", + "title": "Palvelinpuolen APIt", "path": "/reference/react-dom/server" }, { "hasSectionHeader": true, - "sectionHeader": "GET INVOLVED" + "sectionHeader": "OSALLISTU" }, { - "title": "React Community", + "title": "React Yhteisö", "path": "/community" }, { "hasSectionHeader": true, - "sectionHeader": "STAY INFORMED" + "sectionHeader": "PYSY AJAN TASALLA" }, { - "title": "React Blog", + "title": "React Blogi", "path": "/blog" } ] diff --git a/src/sidebarLearn.json b/src/sidebarLearn.json index f462c696e..94607e22c 100644 --- a/src/sidebarLearn.json +++ b/src/sidebarLearn.json @@ -1,13 +1,13 @@ { - "title": "Learn React", + "title": "Opettele Reactia", "path": "/learn", "routes": [ { "hasSectionHeader": true, - "sectionHeader": "GET STARTED" + "sectionHeader": "ALOITUS" }, { - "title": "Quick Start", + "title": "Pika-aloitus", "path": "/learn", "routes": [ { @@ -15,25 +15,25 @@ "path": "/learn/tutorial-tic-tac-toe" }, { - "title": "Thinking in React", + "title": "Ajattelu Reactissa", "path": "/learn/thinking-in-react" } ] }, { - "title": "Installation", + "title": "Asennus", "path": "/learn/installation", "routes": [ { - "title": "Start a New React Project", + "title": "Aloita uusi React-projekti", "path": "/learn/start-a-new-react-project" }, { - "title": "Add React to an Existing Project", + "title": "Lisää React olemassa olevaan projektiin", "path": "/learn/add-react-to-an-existing-project" }, { - "title": "Editor Setup", + "title": "Editorin asentaminen", "path": "/learn/editor-setup" }, { @@ -41,159 +41,159 @@ "path": "/learn/typescript" }, { - "title": "React Developer Tools", + "title": "React kehitystyökalut", "path": "/learn/react-developer-tools" } ] }, { "hasSectionHeader": true, - "sectionHeader": "LEARN REACT" + "sectionHeader": "OPETTELE REACTIA" }, { - "title": "Describing the UI", + "title": "Käyttöliittymän kuvaus", "tags": [], "path": "/learn/describing-the-ui", "routes": [ { - "title": "Your First Component", + "title": "Ensimmäinen komponenttisi", "path": "/learn/your-first-component" }, { - "title": "Importing and Exporting Components", + "title": "Komponenttien importtaus ja exporttaus", "path": "/learn/importing-and-exporting-components" }, { - "title": "Writing Markup with JSX", + "title": "Merkintäkoodin kirjoittaminen JSX:llä", "path": "/learn/writing-markup-with-jsx" }, { - "title": "JavaScript in JSX with Curly Braces", + "title": "JavaScriptia JSX:ssa aaltosulkeilla", "path": "/learn/javascript-in-jsx-with-curly-braces" }, { - "title": "Passing Props to a Component", + "title": "Propsien välittäminen komponentille", "path": "/learn/passing-props-to-a-component" }, { - "title": "Conditional Rendering", + "title": "Ehdollinen renderöinti", "path": "/learn/conditional-rendering" }, { - "title": "Rendering Lists", + "title": "Listojen renderöinti", "path": "/learn/rendering-lists" }, { - "title": "Keeping Components Pure", + "title": "Komponenttien pitäminen puhtaina", "path": "/learn/keeping-components-pure" } ] }, { - "title": "Adding Interactivity", + "title": "Interaktiivisuuden lisääminen", "path": "/learn/adding-interactivity", "tags": [], "routes": [ { - "title": "Responding to Events", + "title": "Tapahtumiin vastaaminen", "path": "/learn/responding-to-events" }, { - "title": "State: A Component's Memory", + "title": "Tila: Komponentin muisti", "path": "/learn/state-a-components-memory" }, { - "title": "Render and Commit", + "title": "Renderöi ja kommitoi", "path": "/learn/render-and-commit" }, { - "title": "State as a Snapshot", + "title": "Tila tilannekuvana", "path": "/learn/state-as-a-snapshot" }, { - "title": "Queueing a Series of State Updates", + "title": "Tilapäivitysten lisääminen jonoon", "path": "/learn/queueing-a-series-of-state-updates" }, { - "title": "Updating Objects in State", + "title": "Olioiden päivittäminen tilassa", "path": "/learn/updating-objects-in-state" }, { - "title": "Updating Arrays in State", + "title": "Taulukkojen päivittäminen tilassa", "path": "/learn/updating-arrays-in-state" } ] }, { - "title": "Managing State", + "title": "Tilan hallinta", "path": "/learn/managing-state", "tags": ["intermediate"], "routes": [ { - "title": "Reacting to Input with State", + "title": "Reagointi syötteeseen tilalla", "path": "/learn/reacting-to-input-with-state" }, { - "title": "Choosing the State Structure", + "title": "Tilarakenteen päättäminen", "path": "/learn/choosing-the-state-structure" }, { - "title": "Sharing State Between Components", + "title": "Tilan jakaminen komponenttien välillä", "path": "/learn/sharing-state-between-components" }, { - "title": "Preserving and Resetting State", + "title": "Tilan säilyttäminen ja nollaus", "path": "/learn/preserving-and-resetting-state" }, { - "title": "Extracting State Logic into a Reducer", + "title": "Tilalogiikan siirtäminen reduktoriin", "path": "/learn/extracting-state-logic-into-a-reducer" }, { - "title": "Passing Data Deeply with Context", + "title": "Tiedon välittäminen syvälle kontekstilla", "path": "/learn/passing-data-deeply-with-context" }, { - "title": "Scaling Up with Reducer and Context", + "title": "Skaalaus reduktorin ja kontekstin avulla", "path": "/learn/scaling-up-with-reducer-and-context" } ] }, { - "title": "Escape Hatches", + "title": "Pelastusluukut", "path": "/learn/escape-hatches", "tags": ["advanced"], "routes": [ { - "title": "Referencing Values with Refs", + "title": "Arvoihin viittaaminen Refillä", "path": "/learn/referencing-values-with-refs" }, { - "title": "Manipulating the DOM with Refs", + "title": "DOM:in manipulointi Refillä", "path": "/learn/manipulating-the-dom-with-refs" }, { - "title": "Synchronizing with Effects", + "title": "Synkronointi Efekteillä", "path": "/learn/synchronizing-with-effects" }, { - "title": "You Might Not Need an Effect", + "title": "Et ehkä tarvitse Efektiä", "path": "/learn/you-might-not-need-an-effect" }, { - "title": "Lifecycle of Reactive Effects", + "title": "Reaktiivisten Efektien elinkaari", "path": "/learn/lifecycle-of-reactive-effects" }, { - "title": "Separating Events from Effects", + "title": "Tapahtumien erottaminen Efekteistä", "path": "/learn/separating-events-from-effects" }, { - "title": "Removing Effect Dependencies", - "path": "/learn/removing-effect-dependencies" + "title": "Efektin riippuvuuksien poistaminen", + "path": "/learn/removing-effect-dependencies" }, { - "title": "Reusing Logic with Custom Hooks", + "title": "Logiikan uudelleenkäyttö omilla Hookeilla", "path": "/learn/reusing-logic-with-custom-hooks" } ] diff --git a/src/sidebarReference.json b/src/sidebarReference.json index 04a523572..a5eb34ed5 100644 --- a/src/sidebarReference.json +++ b/src/sidebarReference.json @@ -1,5 +1,5 @@ { - "title": "API Reference", + "title": "API viite", "path": "/reference/react", "routes": [ { @@ -7,7 +7,7 @@ "sectionHeader": "react@18.2.0" }, { - "title": "Hooks", + "title": "Hookit", "path": "/reference/react", "routes": [ { @@ -73,7 +73,7 @@ ] }, { - "title": "Components", + "title": "Komponentit", "path": "/reference/react/components", "routes": [ { @@ -95,7 +95,7 @@ ] }, { - "title": "APIs", + "title": "APIt", "path": "/reference/react/apis", "routes": [ { @@ -121,7 +121,7 @@ ] }, { - "title": "Directives", + "title": "Direktiivit", "path": "/reference/react/directives", "canary": true, "routes": [ @@ -142,11 +142,11 @@ "sectionHeader": "react-dom@18.2.0" }, { - "title": "Components", + "title": "Komponentit", "path": "/reference/react-dom/components", "routes": [ { - "title": "Common (e.g.
)", + "title": "Yleiset (esim
)", "path": "/reference/react-dom/components/common" }, { @@ -172,7 +172,7 @@ ] }, { - "title": "APIs", + "title": "APIt", "path": "/reference/react-dom", "routes": [ { @@ -202,7 +202,7 @@ ] }, { - "title": "Client APIs", + "title": "Asiakaspuolen APIt", "path": "/reference/react-dom/client", "routes": [ { @@ -216,7 +216,7 @@ ] }, { - "title": "Server APIs", + "title": "Palvelinpuolen APIt", "path": "/reference/react-dom/server", "routes": [ { @@ -247,10 +247,10 @@ }, { "hasSectionHeader": true, - "sectionHeader": "Legacy APIs" + "sectionHeader": "Vanhemmat APIt" }, { - "title": "Legacy React APIs", + "title": "Vanhemmat React APIt", "path": "/reference/react/legacy", "routes": [ { diff --git a/src/siteConfig.js b/src/siteConfig.js index cb066b80f..470805cd6 100644 --- a/src/siteConfig.js +++ b/src/siteConfig.js @@ -6,10 +6,10 @@ exports.siteConfig = { // -------------------------------------- // Translations should replace these lines: languageCode: 'fi', - hasLegacySite: true, + hasLegacySite: false, isRTL: false, // -------------------------------------- - copyright: `Copyright © ${new Date().getFullYear()} Facebook Inc. All Rights Reserved.`, + copyright: `Copyright © ${new Date().getFullYear()} Facebook Inc. Kaikki oikeudet pidätetään.`, repoUrl: 'https://github.com/facebook/react', twitterUrl: 'https://twitter.com/reactjs', algolia: {