Skip to content

Commit 904673a

Browse files
EnnorielbleucitronRomain Crestey
authored
Translate spare words (#41)
* fr: add 02-01-svelte-components doc (#9) * fr: add 02-01-svelte-components doc * fr: fix store link * fr: add writable glossary entry * fr: add 02-02-basic-markup doc * fr: fix links * fr: add 02-03-logic-blocks doc * fix: links --------- Co-authored-by: Romain Crestey <[email protected]> * Translate spare words * Update sites/svelte.dev/src/routes/(authed)/repl/embed/+page.svelte * Update sites/svelte.dev/src/routes/examples/[slug]/+page.svelte * Update sites/svelte.dev/src/routes/tutorial/[slug]/+page.svelte * fix: keep slogan in vo --------- Co-authored-by: Romain l'Ourson <[email protected]> Co-authored-by: Romain Crestey <[email protected]>
1 parent 7abf78d commit 904673a

File tree

14 files changed

+57
-54
lines changed

14 files changed

+57
-54
lines changed

documentation/docs/02-template-syntax/02-basic-markup.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,6 @@ Un élément ou un composant peut avoir plusieurs attributs décomposés, parsem
8585
<Widget {...things} />
8686
```
8787

88-
`$$props` references all props that are passed to a component, including ones that are not declared with `export`. Using `$$props` will not perform as well as references to a specific prop because changes to any prop will cause Svelte to recheck all usages of `$$props`. But it can be useful in some cases – for example, when you don't know at compile time what props might be passed to a component.
89-
90-
9188
La variable `$$props` référence toutes les props qui sont fournies à un composant, y compris celles qui ne sont pas déclarées avec `export`. Utiliser `$$props` ne sera pas aussi performant qu'utiliser une <span class="vo">[prop](/docs/sveltejs#props)</span> spécifique directement car les changements de n'importe quelle prop vont déclencher une nouvelle vérification de toutes les occurences de `$$props`. Toutefois `$$props` peut être utile dans certains cas — par exemple, lorsque vous ne savez pas à la compilation quelles props peuvent être passées au composant.
9289

9390
```svelte

documentation/docs/07-glossary/02-web.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Le DOM relie les pages web aux scripts, fichiers de styles, ressources externes
5454

5555
Un _language server_ est un algorithme exécuté par un <span class="vo">[IDE](/docs/development#ide)</span>. Il permet d’exécuter les aides au développement (autocomplétion, accès rapide, liste des utilisations, etc.) adaptées à un langage de programmation. L'interface entre l'IDE et le _language server_ est défini par un protocole, le _Language Server Protocol_ (LSP).
5656

57-
Plus d'infos sur le [site de la documentation du LSP](https://microsoft.github.io/language-server-protocol/).
57+
Plus d'infos sur le [site de la documentation du LSP](https://microsoft.github.io/language-server-protocol/).
5858

5959
## Lazy loading
6060

sites/svelte.dev/src/app.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="en" class="theme-default typo-default">
2+
<html lang="fr" class="theme-default typo-default">
33
<head>
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width,initial-scale=1" />

sites/svelte.dev/src/lib/time.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ const o = {
1212

1313
export const ago = (nd, s) => {
1414
var r = Math.round,
15-
dir = ' ago',
15+
dir = 'il y a ',
1616
pl = function (v, n) {
17-
return s === undefined ? n + ' ' + v + (n > 1 ? 's' : '') + dir : n + v.substring(0, 1);
17+
return s === undefined ? dir + n + ' ' + v + (n > 1 ? 's' : '') : n + v.substring(0, 1);
1818
},
1919
ts = Date.now() - new Date(nd).getTime(),
2020
ii;
2121
if (ts < 0) {
2222
ts *= -1;
23-
dir = ' from now';
23+
dir = 'dans ';
2424
}
2525
for (var i in o) {
2626
if (r(ts) < o[i]) return pl(ii || 'm', r(ts / (o[ii] || 1)));

sites/svelte.dev/src/routes/(authed)/apps/+page.svelte

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
1515
async function destroy_selected() {
1616
const confirmed = confirm(
17-
`Are you sure you want to delete ${selected.length} ${
18-
selected.length === 1 ? 'app' : 'apps'
19-
}?`
17+
`Êtes vous sûr.e de vouloir supprimer ${selected.length} ${
18+
selected.length === 1 ? 'application' : 'applications'
19+
} ?`
2020
);
2121
if (!confirmed) return;
2222
@@ -40,7 +40,7 @@
4040
// TODO raise an issue
4141
// location.reload();
4242
} else {
43-
alert('Deletion failed');
43+
alert('La suppression a échoué');
4444
}
4545
4646
destroying = false;
@@ -51,13 +51,13 @@
5151
</script>
5252

5353
<svelte:head>
54-
<title>Your apps • Svelte</title>
54+
<title>Vos applications • Svelte</title>
5555
</svelte:head>
5656

5757
<div class="apps">
5858
{#if data.user}
5959
<header>
60-
<h1>Your apps</h1>
60+
<h1>Vos applications</h1>
6161
<div class="user">
6262
<img
6363
class="avatar"
@@ -66,7 +66,7 @@
6666
/>
6767
<span>
6868
{data.user.github_name || data.user.github_login}
69-
(<a on:click|preventDefault={logout} href="/auth/logout">log out</a>)
69+
(<a on:click|preventDefault={logout} href="/auth/logout">Se déconnecter</a>)
7070
</span>
7171
</div>
7272
</header>
@@ -75,11 +75,11 @@
7575
{#if selected.length > 0}
7676
<button class="delete" on:click={() => destroy_selected()} disabled={destroying}>
7777
<Icon name="delete" />
78-
Delete {selected.length}
79-
{selected.length === 1 ? 'app' : 'apps'}
78+
Supprimer {selected.length}
79+
{selected.length === 1 ? 'application' : 'applications'}
8080
</button>
8181

82-
<button on:click={() => (selected = [])}>Clear selection</button>
82+
<button on:click={() => (selected = [])}>Désélectionner les applications</button>
8383
{:else}
8484
<form
8585
on:submit|preventDefault={(e) => {
@@ -89,8 +89,8 @@
8989
>
9090
<input
9191
type="search"
92-
placeholder="Search"
93-
aria-label="Search"
92+
placeholder="Chercher"
93+
aria-label="Chercher"
9494
name="search"
9595
value={data.search}
9696
/>
@@ -104,12 +104,12 @@
104104
<li class:selected={selected.includes(gist.id)}>
105105
<a href={selecting ? undefined : `/repl/${gist.id}`}>
106106
<h2>{gist.name}</h2>
107-
<span>updated {format(gist.updated_at || gist.created_at)}</span>
107+
<span>Mis à jour {format(gist.updated_at || gist.created_at)}</span>
108108
</a>
109109

110110
<label>
111111
<input
112-
aria-label="Select for delection"
112+
aria-label="Sélectionner pour suppression"
113113
type="checkbox"
114114
bind:group={selected}
115115
value={gist.id}
@@ -125,16 +125,17 @@
125125
<a
126126
href="/apps?offset={data.next}{data.search
127127
? `&search=${encodeURIComponent(data.search)}`
128-
: ''}">Next page...</a
128+
: ''}">Page suivante...</a
129129
>
130130
{/if}
131131
</div>
132132
{:else}
133-
<p>No apps here. <a href="/repl">Go make one!</a></p>
133+
<p>Vous n'avez pas d'application. <a href="/repl">En créer une !</a></p>
134134
{/if}
135135
{:else}
136136
<p>
137-
Please <a on:click|preventDefault={login} href="/auth/login">log in</a> to see your saved apps.
137+
Merci de <a on:click|preventDefault={login} href="/auth/login">vous connecter</a> pour voir vos
138+
applications sauvegardées.
138139
</p>
139140
{/if}
140141
</div>

sites/svelte.dev/src/routes/(authed)/repl/[id]/+page.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@
6767
<title>{name} • REPL • Svelte</title>
6868
6969
<meta name="twitter:title" content="{data.gist.name} • REPL • Svelte" />
70-
<meta name="twitter:description" content="Cybernetically enhanced web apps" />
71-
<meta name="Description" content="Interactive Svelte playground" />
70+
<meta name="twitter:description" content="Applications web cybernétiquement améliorées" />
71+
<meta name="Description" content="Bac à sable Svelte interactif" />
7272
</svelte:head>
7373
7474
<div class="repl-outer {zen_mode ? 'zen-mode' : ''}">

sites/svelte.dev/src/routes/(authed)/repl/[id]/AppControls.svelte

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
if (navigator.onLine) {
8383
alert(err.message);
8484
} else {
85-
alert(`It looks like you're offline! Find the internet and try again`);
85+
alert(`Vous semblez être hors ligne ! Connectez-vous et réessayez`);
8686
}
8787
}
8888
@@ -91,7 +91,7 @@
9191
9292
async function save() {
9393
if (!user) {
94-
alert('Please log in before saving your app');
94+
alert('Merci de vous connecter pour sauvegarder votre application');
9595
return;
9696
}
9797
if (saving) return;
@@ -137,7 +137,7 @@
137137
if (navigator.onLine) {
138138
alert(err.message);
139139
} else {
140-
alert(`It looks like you're offline! Find the internet and try again`);
140+
alert('Merci de vous connecter pour sauvegarder votre application');
141141
}
142142
}
143143
@@ -192,15 +192,20 @@ export default app;`
192192
<input bind:value={name} on:focus={(e) => e.target.select()} use:enter={(e) => e.target.blur()} />
193193

194194
<div class="buttons">
195-
<button class="icon" on:click={() => (zen_mode = !zen_mode)} title="fullscreen editor">
195+
<button class="icon fullscreen" on:click={() => (zen_mode = !zen_mode)} title="Plein écran">
196196
{#if zen_mode}
197197
<Icon name="close" />
198198
{:else}
199199
<Icon name="maximize" />
200200
{/if}
201201
</button>
202202

203-
<button class="icon" disabled={downloading} on:click={download} title="download zip file">
203+
<button
204+
class="icon"
205+
disabled={downloading}
206+
on:click={download}
207+
title="Télécharger le fichier zip"
208+
>
204209
<Icon name="download" />
205210
</button>
206211

@@ -212,7 +217,7 @@ export default app;`
212217
{/if}
213218
</button>
214219

215-
<button class="icon" disabled={saving || !user} on:click={save} title="save">
220+
<button class="icon" disabled={saving || !user} on:click={save} title="Sauvegarder">
216221
{#if justSaved}
217222
<Icon name="check" />
218223
{:else}
@@ -228,7 +233,7 @@ export default app;`
228233
{:else}
229234
<button class="icon" on:click|preventDefault={login}>
230235
<Icon name="log-in" />
231-
<span>&nbsp;Log in to save</span>
236+
<span>&nbsp;Se connecter pour sauvegarder</span>
232237
</button>
233238
{/if}
234239
</div>
@@ -279,7 +284,7 @@ export default app;`
279284
opacity: 0.3;
280285
}
281286
282-
.icon[title^='fullscreen'] {
287+
.icon.fullscreen {
283288
display: none;
284289
}
285290
@@ -324,7 +329,7 @@ export default app;`
324329
}
325330
326331
@media (min-width: 600px) {
327-
.icon[title^='fullscreen'] {
332+
.icon.fullscreen {
328333
display: inline;
329334
}
330335

sites/svelte.dev/src/routes/(authed)/repl/[id]/UserMenu.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030

3131
{#if showMenu}
3232
<div class="menu">
33-
<a href="/apps">Your saved apps</a>
34-
<button on:click={logout}>Log out</button>
33+
<a href="/apps">Vos applications sauvegardées</a>
34+
<button on:click={logout}>Se déconnecter</button>
3535
</div>
3636
{/if}
3737
</div>

sites/svelte.dev/src/routes/(authed)/repl/embed/+page.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
<svelte:head>
99
<title>REPL • Svelte</title>
1010

11-
<meta name="twitter:title" content="Svelte REPL" />
11+
<meta name="twitter:title" content="REPL • Svelte" />
1212
<meta name="twitter:description" content="Cybernetically enhanced web apps" />
13-
<meta name="Description" content="Interactive Svelte playground" />
13+
<meta name="Description" content="Bac à sable Svelte interactif" />
1414
</svelte:head>
1515

1616
<div class="repl-outer">

sites/svelte.dev/src/routes/docs/[slug]/+page.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
<title>{data.page?.title} • Docs • Svelte</title>
1818

1919
<meta name="twitter:title" content="{data.page.title} • Docs • Svelte" />
20-
<meta name="twitter:description" content="{data.page.title} • Svelte documentation" />
21-
<meta name="Description" content="{data.page.title}Svelte documentation" />
20+
<meta name="twitter:description" content="{data.page.title}Documentation Svelte " />
21+
<meta name="Description" content="{data.page.title}Documentation Svelte" />
2222
</svelte:head>
2323

2424
<div class="text" id="docs-content">

sites/svelte.dev/src/routes/examples/[slug]/+page.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@
3232
<svelte:head>
3333
<title>{data.example?.title} {data.example?.title ? '' : ''} Svelte Examples</title>
3434

35-
<meta name="twitter:title" content="Svelte examples" />
35+
<meta name="twitter:title" content="Exemples Svelte" />
3636
<meta name="twitter:description" content="Cybernetically enhanced web apps" />
37-
<meta name="Description" content="Interactive example Svelte apps" />
37+
<meta name="Description" content="Exemples Svelte interactifs" />
3838
</svelte:head>
3939

40-
<h1 class="visually-hidden">Examples</h1>
40+
<h1 class="visually-hidden">Exemples</h1>
4141
<div class="examples-container" bind:clientWidth={width}>
4242
<div class="viewport offset-{offset}">
4343
<TableOfContents

sites/svelte.dev/src/routes/nav.json/+server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ async function get_nav_list() {
4646

4747
return [
4848
{
49-
title: 'Docs',
49+
title: 'Documentation',
5050
prefix: 'docs',
5151
pathname: '/docs/introduction',
5252
sections: processed_docs_list
5353
},
5454
{
55-
title: 'Examples',
55+
title: 'Exemples',
5656
prefix: 'examples',
5757
pathname: '/examples',
5858
sections: processed_examples_list

sites/svelte.dev/src/routes/search/+page.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
</script>
66

77
<svelte:head>
8-
<title>Search • Svelte</title>
8+
<title>Rechercher • Svelte</title>
99
</svelte:head>
1010

1111
<main>
12-
<h1>Search</h1>
12+
<h1>Rechercher</h1>
1313
<form>
14-
<input name="q" value={data.query} placeholder="Search" spellcheck="false" />
14+
<input name="q" value={data.query} placeholder="Rechercher" spellcheck="false" />
1515
</form>
1616

1717
<SearchResults results={data.results} query={data.query} />

sites/svelte.dev/src/routes/tutorial/[slug]/+page.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
<svelte:head>
101101
<title>{selected.section.title} / {selected.chapter.title} • Svelte Tutorial</title>
102102

103-
<meta name="twitter:title" content="Svelte tutorial" />
103+
<meta name="twitter:title" content="Tutoriel Svelte" />
104104
<meta name="twitter:description" content="{selected.section.title} / {selected.chapter.title}" />
105105
<meta name="Description" content="{selected.section.title} / {selected.chapter.title}" />
106106
</svelte:head>
@@ -122,17 +122,17 @@
122122
<!-- TODO disable this button when the contents of the REPL
123123
matches the expected end result -->
124124
<button class="show" on:click={() => (completed ? reset() : complete())}>
125-
{completed ? 'Reset' : 'Show me'}
125+
{completed ? 'Réinitialiser' : 'Montrez-moi'}
126126
</button>
127127
{/if}
128128

129129
{#if selected.next}
130-
<a class="next" href="/tutorial/{selected.next.slug}">Next</a>
130+
<a class="next" href="/tutorial/{selected.next.slug}">Suivant</a>
131131
{/if}
132132
</div>
133133

134134
<div class="improve-chapter">
135-
<a class="no-underline" href={improve_link}>Edit this chapter</a>
135+
<a class="no-underline" href={improve_link}>Éditer ce chapitre</a>
136136
</div>
137137
</div>
138138
</div>

0 commit comments

Comments
 (0)