From f0d671ff497c8b23f6bfe0564ab8fa64fdfb667d Mon Sep 17 00:00:00 2001
From: Emil Gulamov <125820963+mearashadowfax@users.noreply.github.com>
Date: Wed, 24 Apr 2024 00:08:04 +0400
Subject: [PATCH] Update French translations on website pages
---
src/components/ui/buttons/SocialShare.astro | 5 +++--
src/pages/fr/404.astro | 2 +-
src/pages/fr/blog/[...slug].astro | 8 ++++----
src/pages/fr/blog/index.astro | 10 +++++-----
src/pages/fr/contact.astro | 14 +++++++-------
src/pages/fr/products/index.astro | 16 ++++++++--------
src/pages/fr/services.astro | 14 +++++++-------
7 files changed, 35 insertions(+), 34 deletions(-)
diff --git a/src/components/ui/buttons/SocialShare.astro b/src/components/ui/buttons/SocialShare.astro
index 63b49cf..85c08a9 100644
--- a/src/components/ui/buttons/SocialShare.astro
+++ b/src/components/ui/buttons/SocialShare.astro
@@ -1,11 +1,12 @@
---
import Icon from "@components/ui/icons/Icon.astro";
// Destructure the properties from Astro.props
-const { pageTitle } = Astro.props;
+const { pageTitle, title = Astro.currentLocale === "fr" ? "Partager" : "Share", } = Astro.props;
// Define TypeScript interface for the properties
interface Props {
pageTitle: string;
+ title?: string;
}
type SocialPlatform = {
@@ -43,7 +44,7 @@ const socialPlatforms: SocialPlatform[] = [
>