From 3dc2e7f78bcb6e10a1a682cbf9800101216507a6 Mon Sep 17 00:00:00 2001 From: Christophe Porteneuve Date: Tue, 25 Apr 2023 15:38:36 +0200 Subject: [PATCH] ui: translate bits of UI that should be pretty stable already --- src/components/DocsFooter.tsx | 2 +- src/components/Layout/Feedback.tsx | 6 +++--- src/components/Layout/Footer.tsx | 8 ++++---- src/components/Layout/Page.tsx | 4 ++-- src/components/MDX/MDXComponents.tsx | 2 +- src/components/MDX/Sandpack/CustomPreset.tsx | 2 +- src/components/MDX/Sandpack/DownloadButton.tsx | 4 ++-- src/components/MDX/Sandpack/OpenInCodeSandboxButton.tsx | 2 +- src/components/MDX/Sandpack/ResetButton.tsx | 4 ++-- 9 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/components/DocsFooter.tsx b/src/components/DocsFooter.tsx index d2c2c25de..806788869 100644 --- a/src/components/DocsFooter.tsx +++ b/src/components/DocsFooter.tsx @@ -80,7 +80,7 @@ function FooterLink({ /> - {type} + {type === 'Next' ? 'Suivant' : 'Précédent'} {title} diff --git a/src/components/Layout/Feedback.tsx b/src/components/Layout/Feedback.tsx index 6bb8a4aac..d985f25a1 100644 --- a/src/components/Layout/Feedback.tsx +++ b/src/components/Layout/Feedback.tsx @@ -63,11 +63,11 @@ function SendFeedback({onSubmit}: {onSubmit: () => void}) { return (

- {isSubmitted ? 'Thank you for your feedback!' : 'Is this page useful?'} + {isSubmitted ? 'Merci pour votre retour !' : 'Cette page est utile ?'}

{!isSubmitted && (
- Learn React + Apprendre React Quick Start Installation @@ -301,14 +301,14 @@ export function Footer() {
- API Reference + Référence de l’API React APIs React DOM APIs
- Community + Communauté Code of Conduct @@ -322,7 +322,7 @@ export function Footer() {
- More + Plus Blog React Native diff --git a/src/components/Layout/Page.tsx b/src/components/Layout/Page.tsx index 967a7fafc..695185098 100644 --- a/src/components/Layout/Page.tsx +++ b/src/components/Layout/Page.tsx @@ -153,7 +153,7 @@ export function Page({children, toc, routeTree, meta, section}: PageProps) { <>

- How do you like these docs? + Comment trouvez-vous ces docs ?

- Take our survey! + Dites-nous tout ! {children}; } diff --git a/src/components/MDX/Sandpack/CustomPreset.tsx b/src/components/MDX/Sandpack/CustomPreset.tsx index 6e0862564..21361d733 100644 --- a/src/components/MDX/Sandpack/CustomPreset.tsx +++ b/src/components/MDX/Sandpack/CustomPreset.tsx @@ -119,7 +119,7 @@ const SandboxShell = memo(function SandboxShell({ className="inline mr-1.5 text-xl" displayDirection={isExpanded ? 'up' : 'down'} /> - {isExpanded ? 'Show less' : 'Show more'} + {isExpanded ? 'Voir moins' : 'Voir plus'} )} diff --git a/src/components/MDX/Sandpack/DownloadButton.tsx b/src/components/MDX/Sandpack/DownloadButton.tsx index 4181dbe95..9f1ffcc9a 100644 --- a/src/components/MDX/Sandpack/DownloadButton.tsx +++ b/src/components/MDX/Sandpack/DownloadButton.tsx @@ -98,9 +98,9 @@ ${css} ); } diff --git a/src/components/MDX/Sandpack/OpenInCodeSandboxButton.tsx b/src/components/MDX/Sandpack/OpenInCodeSandboxButton.tsx index 42a2d2743..097262607 100644 --- a/src/components/MDX/Sandpack/OpenInCodeSandboxButton.tsx +++ b/src/components/MDX/Sandpack/OpenInCodeSandboxButton.tsx @@ -9,7 +9,7 @@ export const OpenInCodeSandboxButton = () => { return ( + title="Ouvrir dans CodeSandbox"> - Reset + Réinitialiser ); }