Skip to content

Commit de8072b

Browse files
authored
🎉 Move existing translations to new repo (#6)
🎉 Move existing translations to new repo
2 parents 0162b8e + d123b54 commit de8072b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+3989
-3996
lines changed

GLOSSARY.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Glossary / Sanasto
2+
3+
## React specific
4+
5+
- **React hook**: React hookki, koukku
6+
- **props**: propsit
7+
- **prop drilling**: propsien poraus
8+
- **reducer**: reducer
9+
- **dispatch**: dispatch, lähettää
10+
- **pure component**: puhdas komponentti
11+
- **fragment**: fragment
12+
- **Strict Mode**: strict mode
13+
14+
## General
15+
16+
- **branching logic**: haaralogiikka
17+
- **control flow**: ohjausvirta
18+
- **destructuring**: (taulukon / olion) levityssyntaksi
19+
- **spread**: (taulukon / olion) levityssyntaksi
20+
- **shortcut**: lyhytoperaatio
21+
- **expression**: lause
22+
- **linting**: lintteri
23+
- **frontend**: frontend
24+
- **backend**: backend, taustajärjestelmä
25+
- **pipeline**: putki
26+
- **bundler**: bundler
27+
- **container**: container
28+
- **wrapper**: wrapper
29+
- **to wrap smth**: kääriä, wräpätä
30+
- **minify**: minifioida, pienentää
31+
- **preprocessor**: esikääntäjä
32+
- **repository**: repository, repo
33+
- **trigger**: käynnistää
34+
- **export**: exportata, viedä
35+
- **import**: importata, tuoda
36+
- **build tool**: käännöstyökalu
37+
- **setter function**: setter funktio. (Asetin kuulostaa tyhmältä)
38+
- **hover**: (as in a user hovering over a button): hoverointi. (Leijuminen ei ehkä ole kovin itsestäänselvää mitä sillä tarkoitetaan.)
39+
- **focus**: (as in a user focusing over a button): focusointi. (^)
40+
- **framework**: ohjelmistokehys
41+
- **codebase**: koodipohja
42+
- **property**: en keksinyt järkevää suomennosta, property
43+
- **scope**: käyttöalue

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 ? 'Kiitos palautteestasi!' : 'Onko tämä sivu hyödyllinen?'}
6767
</p>
6868
{!isSubmitted && (
6969
<button

src/components/Layout/HomeContent.js

Lines changed: 125 additions & 114 deletions
Large diffs are not rendered by default.

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+
Tällä sivulla
2020
</h2>
2121
)}
2222
<div

src/components/MDX/Challenges/Challenge.tsx

Lines changed: 8 additions & 8 deletions
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 ? 'Example' : 'Challenge'} {currentChallenge.order} of{' '}
53+
{isRecipes ? 'Esimerkki' : 'Haaste'} {currentChallenge.order} /{' '}
5454
{totalChallenges}
5555
<span className="text-primary dark:text-primary-dark">: </span>
5656
</div>
@@ -63,14 +63,14 @@ export function Challenge({
6363
<div>
6464
<Button className="mr-2" onClick={toggleHint} active={showHint}>
6565
<IconHint className="mr-1.5" />{' '}
66-
{showHint ? 'Hide hint' : 'Show hint'}
66+
{showHint ? 'Piilota vihje' : 'Näytä vihje'}
6767
</Button>
6868
<Button
6969
className="mr-2"
7070
onClick={toggleSolution}
7171
active={showSolution}>
7272
<IconSolution className="mr-1.5" />{' '}
73-
{showSolution ? 'Hide solution' : 'Show solution'}
73+
{showSolution ? 'Piilota ratkaisu' : 'Näytä ratkaisu'}
7474
</Button>
7575
</div>
7676
) : (
@@ -80,7 +80,7 @@ export function Challenge({
8080
onClick={toggleSolution}
8181
active={showSolution}>
8282
<IconSolution className="mr-1.5" />{' '}
83-
{showSolution ? 'Hide solution' : 'Show solution'}
83+
{showSolution ? 'Piilota ratkaisu' : 'Näytä ratkaisu'}
8484
</Button>
8585
)
8686
)}
@@ -94,7 +94,7 @@ export function Challenge({
9494
)}
9595
onClick={handleClickNextChallenge}
9696
active>
97-
Next {isRecipes ? 'Example' : 'Challenge'}
97+
Seuraava {isRecipes ? 'esimerkki' : 'haaste'}
9898
<IconArrowSmall displayDirection="right" className="block ml-1.5" />
9999
</Button>
100100
)}
@@ -104,12 +104,12 @@ export function Challenge({
104104
{showSolution && (
105105
<div className="mt-6">
106106
<h3 className="text-2xl font-bold text-primary dark:text-primary-dark">
107-
Solution
107+
Ratkaisu
108108
</h3>
109109
{currentChallenge.solution}
110110
<div className="flex justify-between items-center mt-4">
111111
<Button onClick={() => setShowSolution(false)}>
112-
Close solution
112+
Sulje ratkaisu
113113
</Button>
114114
{hasNextChallenge && (
115115
<Button
@@ -118,7 +118,7 @@ export function Challenge({
118118
)}
119119
onClick={handleClickNextChallenge}
120120
active>
121-
Next Challenge
121+
Seuraava haaste
122122
<IconArrowSmall
123123
displayDirection="right"
124124
className="block ml-1.5"

src/components/MDX/Challenges/Challenges.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export function Challenges({
7878
children,
7979
isRecipes,
8080
noTitle,
81-
titleText = isRecipes ? 'Try out some examples' : 'Try out some challenges',
81+
titleText = isRecipes ? 'Kokeile esimerkkejä' : 'Kokeile haasteita',
8282
titleId = isRecipes ? 'examples' : 'challenges',
8383
}: ChallengesProps) {
8484
const challenges = parseChallengeContents(children);

src/components/MDX/ConsoleBlock.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function ConsoleBlock({level = 'error', children}: ConsoleBlockProps) {
4545
</div>
4646
<div className="flex text-sm px-4">
4747
<div className="border-b-2 border-gray-300 dark:border-gray-90 text-tertiary dark:text-tertiary-dark">
48-
Console
48+
Konsoli
4949
</div>
5050
<div className="px-4 py-2 flex">
5151
<Box className="mr-2 bg-gray-300 dark:bg-gray-70" />

src/components/MDX/ExpandableCallout.tsx

Lines changed: 3 additions & 3 deletions
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: 'Huomaa',
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',
@@ -35,15 +35,15 @@ const variantMap = {
3535
'linear-gradient(rgba(245, 249, 248, 0), rgba(245, 249, 248, 1)',
3636
},
3737
pitfall: {
38-
title: 'Pitfall',
38+
title: 'Sudenkuoppa',
3939
Icon: IconPitfall,
4040
containerClasses: 'bg-yellow-5 dark:bg-yellow-60 dark:bg-opacity-20',
4141
textColor: 'text-yellow-50 dark:text-yellow-40',
4242
overlayGradient:
4343
'linear-gradient(rgba(249, 247, 243, 0), rgba(249, 247, 243, 1)',
4444
},
4545
wip: {
46-
title: 'Under Construction',
46+
title: 'Kehitteillä',
4747
Icon: IconNote,
4848
containerClasses: 'bg-yellow-5 dark:bg-yellow-60 dark:bg-opacity-20',
4949
textColor: 'text-yellow-50 dark:text-yellow-40',

src/components/MDX/ExpandableExample.tsx

Lines changed: 3 additions & 3 deletions
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+
Syväsukellus
7575
</>
7676
)}
7777
{isExample && (
7878
<>
7979
<IconCodeBlock className="inline mr-2 dark:text-yellow-30 text-yellow-50" />
80-
Example
80+
Esimerkki
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 ? 'Piilota' : 'Näytä'}
105105
</Button>
106106
</summary>
107107
<div

src/components/MDX/Heading.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ const Heading = forwardRefWithAs<HeadingProps, 'div'>(function Heading(
1717
{as: Comp = 'div', className, children, id, isPageAnchor = true, ...props},
1818
ref
1919
) {
20-
let label = 'Link for this heading';
20+
let label = 'Linkki tähän otsikkoon';
2121
if (typeof children === 'string') {
22-
label = 'Link for ' + children;
22+
label = 'Linkki otsikkoon ' + children;
2323
}
2424

2525
return (

0 commit comments

Comments
 (0)