From 4931664489501e5bdf6215d97977e65585efd744 Mon Sep 17 00:00:00 2001 From: DrMint <29893320+DrMint@users.noreply.github.com> Date: Mon, 3 Jun 2024 23:19:02 +0200 Subject: [PATCH] Add lang html attribute on everything --- .../components/AppLayoutDescription.astro | 5 +- .../AppLayout/components/AppLayoutTitle.astro | 5 +- .../AppLayout/components/Html.astro | 6 + .../Topbar/components/ReturnToButton.astro | 19 +- src/components/Attributes.astro | 15 +- src/components/Blocks/Block.astro | 7 +- .../Blocks/components/CueBlock.astro | 5 +- .../Blocks/components/LineBlock.astro | 7 +- src/components/Credits.astro | 24 +- src/components/HeaderTitle.astro | 15 +- src/components/InlineAttributes.astro | 15 +- src/components/InlineMetadata.astro | 14 +- src/components/Lightbox.astro | 10 +- src/components/Metadata.astro | 10 +- src/components/Previews/AudioPreview.astro | 5 +- .../Previews/CollectiblePreview.astro | 3 +- src/components/Previews/GenericPreview.astro | 8 +- src/components/Previews/ImagePreview.astro | 5 +- src/components/Previews/PagePreview.astro | 3 +- src/components/Previews/VideoPreview.astro | 5 +- src/components/RichText/RichText.astro | 7 +- .../RTBlock/components/RTSection.astro | 2 +- .../RTBlock/components/RTTranscript.astro | 4 +- .../RichText/components/RTParagraph.astro | 2 +- .../RTUpload/components/RTAudio.astro | 2 +- .../RTUpload/components/RTImage.astro | 2 +- .../RTUpload/components/RTVideo.astro | 2 +- src/components/SourceRow.astro | 5 +- .../TableOfContent/TableOfContent.astro | 5 +- src/components/TitleIcon.astro | 5 +- src/i18n/i18n.ts | 46 ++- src/pages/[locale]/api/pages/partial.astro | 8 +- src/pages/[locale]/api/timeline/partial.astro | 12 +- src/pages/[locale]/audios/[id].astro | 6 +- .../ContentsSection/ContentRow.astro | 44 ++- .../collectibles/[slug]/gallery/[index].astro | 13 +- .../collectibles/[slug]/gallery/index.astro | 7 +- .../[locale]/collectibles/[slug]/index.astro | 6 +- .../collectibles/[slug]/scans/index.astro | 7 +- src/pages/[locale]/folders/[slug].astro | 19 +- .../folders/_components/FolderCard.astro | 5 +- .../folders/_components/FoldersSection.astro | 29 +- src/pages/[locale]/images/[id].astro | 11 +- src/pages/[locale]/recorders/[id].astro | 8 +- src/pages/[locale]/videos/[id].astro | 6 +- src/shared/openExchange/rates.json | 292 +++++++++--------- src/utils/attributes.ts | 3 +- src/utils/richText.ts | 3 +- 48 files changed, 445 insertions(+), 302 deletions(-) diff --git a/src/components/AppLayout/components/AppLayoutDescription.astro b/src/components/AppLayout/components/AppLayoutDescription.astro index 95204e4..989ef73 100644 --- a/src/components/AppLayout/components/AppLayoutDescription.astro +++ b/src/components/AppLayout/components/AppLayoutDescription.astro @@ -4,9 +4,10 @@ import type { RichTextContent } from "src/shared/payload/payload-sdk"; interface Props { description: RichTextContent | string; + lang?: string | undefined; } -const { description } = Astro.props; +const { description, lang } = Astro.props; --- {/* ------------------------------------------- HTML ------------------------------------------- */} @@ -16,7 +17,7 @@ const { description } = Astro.props; typeof description === "string" ? (
) : ( -{block.blockName}
+{block.blockName}
{title}
+{title}
+