Update French translations on website pages

This commit is contained in:
Emil Gulamov 2024-04-24 00:08:04 +04:00
parent 61882e896e
commit f0d671ff49
7 changed files with 35 additions and 34 deletions

View file

@ -1,11 +1,12 @@
--- ---
import Icon from "@components/ui/icons/Icon.astro"; import Icon from "@components/ui/icons/Icon.astro";
// Destructure the properties from Astro.props // 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 // Define TypeScript interface for the properties
interface Props { interface Props {
pageTitle: string; pageTitle: string;
title?: string;
} }
type SocialPlatform = { type SocialPlatform = {
@ -43,7 +44,7 @@ const socialPlatforms: SocialPlatform[] = [
> >
<Icon name="share" /> <Icon name="share" />
Share {title}
</button> </button>
<div <div

View file

@ -11,7 +11,7 @@ const content: string =
const btnTitle: string = "Retournez"; const btnTitle: string = "Retournez";
--- ---
<MainLayout title="Page Not Found | ScrewFast" lang="fr"> <MainLayout title="Page Non Trouvée | ScrewFast" lang="fr">
<section class="grid h-svh place-content-center"> <section class="grid h-svh place-content-center">
<div class="mx-auto max-w-screen-xl px-4 py-8 lg:px-6 lg:py-16"> <div class="mx-auto max-w-screen-xl px-4 py-8 lg:px-6 lg:py-16">
<div class="mx-auto max-w-screen-sm text-center"> <div class="mx-auto max-w-screen-sm text-center">

View file

@ -142,9 +142,9 @@ const pageTitle: string = `${post.data.title} | ${SITE.title}`;
</div> </div>
</div> </div>
<PostFeedback <PostFeedback
title="Was this post helpful?" title="Cet article était-il utile?"
firstChoice="Yes" firstChoice="Oui"
secondChoice="No" secondChoice="Non"
/> />
</section> </section>
@ -154,7 +154,7 @@ const pageTitle: string = `${post.data.title} | ${SITE.title}`;
<h2 <h2
class="text-balance text-2xl font-bold text-neutral-800 dark:text-neutral-200 md:text-4xl md:leading-tight" class="text-balance text-2xl font-bold text-neutral-800 dark:text-neutral-200 md:text-4xl md:leading-tight"
> >
Related articles Articles connexes
</h2> </h2>
</div> </div>

View file

@ -42,15 +42,15 @@ const pageTitle: string = `Blog | ${SITE.title}`;
structuredData={{ structuredData={{
"@context": "https://schema.org", "@context": "https://schema.org",
"@type": "WebPage", "@type": "WebPage",
"@id": "https://screwfast.uk/blog", "@id": "https://screwfast.uk/fr/blog",
"url": "https://screwfast.uk/blog", "url": "https://screwfast.uk/fr/blog",
"name": "Blog | ScrewFast", "name": "Blog | ScrewFast",
"description": "Stay up-to-date with the latest trends and developments in the construction industry with insights from ScrewFast's team of industry experts.", "description": "Restez informé des dernières tendances et évolutions dans le secteur de la construction avec les analyses de l'équipe d'experts de ScrewFast.",
"isPartOf": { "isPartOf": {
"@type": "WebSite", "@type": "WebSite",
"url": "https://screwfast.uk", "url": "https://screwfast.uk/fr",
"name": "ScrewFast", "name": "ScrewFast",
"description": "ScrewFast offers top-tier hardware tools and expert construction services to meet all your project needs." "description": "ScrewFast propose des outils matériels de premier ordre et des services de construction experts pour répondre à tous vos besoins de projet."
}, },
"inLanguage": "fr" "inLanguage": "fr"
}} }}

View file

@ -11,19 +11,19 @@ import ContactSection from "@components/sections/fr/ContactSection_fr.astro";
structuredData={{ structuredData={{
"@context": "https://schema.org", "@context": "https://schema.org",
"@type": "WebPage", "@type": "WebPage",
"@id": "https://screwfast.uk/contact", "@id": "https://screwfast.uk//fr/contact",
url: "https://screwfast.uk/contact", url: "https://screwfast.uk//fr/contact",
name: "Contact Us | ScrewFast", name: "Nous Contacter | ScrewFast",
description: description:
"Have questions or want to discuss a project? Reach out, and let's craft the perfect solution with our tools and services.", "Vous avez des questions ou souhaitez discuter d'un projet ? Contactez-nous et élaborons ensemble la solution parfaite avec nos outils et services.",
isPartOf: { isPartOf: {
"@type": "WebSite", "@type": "WebSite",
url: "https://screwfast.uk", url: "https://screwfast.uk/fr/",
name: "ScrewFast", name: "ScrewFast",
description: description:
"ScrewFast offers top-tier hardware tools and expert construction services to meet all your project needs.", "ScrewFast propose des outils matériels de premier ordre et des services de construction experts pour répondre à tous vos besoins de projet.",
}, },
inLanguage: "en-US", inLanguage: "fr",
}} }}
> >
<ContactSection /> <ContactSection />

View file

@ -59,24 +59,24 @@ const testimonials = [
--- ---
<MainLayout <MainLayout
title="Products | ScrewFast" title="Produits | ScrewFast"
lang="fr" lang="fr"
structuredData={{ structuredData={{
"@context": "https://schema.org", "@context": "https://schema.org",
"@type": "WebPage", "@type": "WebPage",
"@id": "https://screwfast.uk/products", "@id": "https://screwfast.uk/fr/products",
url: "https://screwfast.uk/products", url: "https://screwfast.uk/fr/products",
name: "Hardware Tools | ScrewFast", name: "Outils Matériels | ScrewFast",
description: description:
"Explore the durability and precision of ScrewFast tools, designed for both professionals and enthusiasts.", "Explorez la durabilité et la précision des outils ScrewFast, conçus aussi bien pour les professionnels que pour les passionnés.",
isPartOf: { isPartOf: {
"@type": "WebSite", "@type": "WebSite",
url: "https://screwfast.uk", url: "https://screwfast.uk/fr",
name: "ScrewFast", name: "ScrewFast",
description: description:
"ScrewFast offers top-tier hardware tools and expert construction services to meet all your project needs.", "ScrewFast propose des outils matériels de premier ordre et des services de construction experts pour répondre à tous vos besoins de projet.",
}, },
inLanguage: "en-US", inLanguage: "fr",
}} }}
> >
<div <div

View file

@ -99,19 +99,19 @@ const articles: Article[] = [
structuredData={{ structuredData={{
"@context": "https://schema.org", "@context": "https://schema.org",
"@type": "WebPage", "@type": "WebPage",
"@id": "https://screwfast.uk/services", "@id": "https://screwfast.uk/fr/services",
url: "https://screwfast.uk/services", url: "https://screwfast.uk/fr/services",
name: "Expert Consultation Services | ScrewFast", name: "Services de Consultation d'Experts | ScrewFast",
description: description:
"Uniting expertise with your vision, ScrewFast provides exceptional service and comprehensive solutions in the hardware and construction industry, from consultation to project completion.", "Unissant l'expertise à votre vision, ScrewFast fournit un service exceptionnel et des solutions complètes dans le secteur du matériel et de la construction, de la consultation à l'achèvement du projet.",
isPartOf: { isPartOf: {
"@type": "WebSite", "@type": "WebSite",
url: "https://screwfast.uk", url: "https://screwfast.uk/fr",
name: "ScrewFast", name: "ScrewFast",
description: description:
"ScrewFast offers top-tier hardware tools and expert construction services to meet all your project needs.", "ScrewFast propose des outils matériels de premier ordre et des services de construction experts pour répondre à tous vos besoins de projet.",
}, },
inLanguage: "en-US", inLanguage: "fr,
}} }}
> >
<!--MainSection is the introductory section of the page, it also contains a CTA button--> <!--MainSection is the introductory section of the page, it also contains a CTA button-->