From 277d73d9fd21dc84a4645d94ee3493b9ccf2559c Mon Sep 17 00:00:00 2001 From: DrMint <29893320+DrMint@users.noreply.github.com> Date: Sun, 12 May 2024 00:50:22 +0200 Subject: [PATCH] Fixed wrong wording keys --- src/i18n/wordings-keys.ts | 28 +++++++++---------- .../collectibles/[slug]/gallery/index.astro | 2 +- .../collectibles/[slug]/scans/index.astro | 2 +- 3 files changed, 15 insertions(+), 17 deletions(-) diff --git a/src/i18n/wordings-keys.ts b/src/i18n/wordings-keys.ts index 0f9b50c..9e9e865 100644 --- a/src/i18n/wordings-keys.ts +++ b/src/i18n/wordings-keys.ts @@ -69,8 +69,6 @@ export type WordingKey = | "collectibles.bookFormat.binding.hardcover" | "collectibles.bookFormat.binding.readingDirection.leftToRight" | "collectibles.bookFormat.binding.readingDirection.rightToLeft" - | "collectibles.gallery" - | "collectibles.scans" | "collectibles.imageCount" | "header.topbar.settings.tooltip" | "collectibles.contents" @@ -89,29 +87,29 @@ export type WordingKey = | "pages.tableOfContent.break" | "global.languageOverride.availableLanguages" | "timeline.title" - | "timeline.eras.drakengard3" + | "timeline.description" + | "timeline.eras.cataclysm" | "timeline.eras.drakengard" | "timeline.eras.drakengard2" + | "timeline.eras.drakengard3" | "timeline.eras.nier" | "timeline.eras.nierAutomata" - | "timeline.eras.cataclysm" - | "timeline.description" - | "timeline.notes.title" + | "timeline.jumpTo" | "timeline.notes.content" + | "timeline.notes.title" | "timeline.priorCataclysmNote.title" | "timeline.priorCataclysmNote.content" - | "timeline.jumpTo" | "timeline.year.during" - | "timeline.eventFooter.languages" | "timeline.eventFooter.sources" + | "timeline.eventFooter.languages" | "timeline.eventFooter.note" - | "global.sources.typeLabel.url" - | "global.sources.typeLabel.page" | "global.sources.typeLabel.collectible" - | "global.sources.typeLabel.folder" + | "global.sources.typeLabel.collectible.range.custom" | "global.sources.typeLabel.collectible.range.page" | "global.sources.typeLabel.collectible.range.timestamp" - | "global.sources.typeLabel.collectible.range.custom" + | "global.sources.typeLabel.folder" + | "global.sources.typeLabel.page" + | "global.sources.typeLabel.url" | "global.openMediaPage" | "global.downloadButton" | "global.previewTypes.video" @@ -121,6 +119,8 @@ export type WordingKey = | "global.previewTypes.collectible" | "global.previewTypes.unknown" | "collectibles.scans.title" + | "collectibles.gallery.title" + | "collectibles.gallery.subtitle" | "collectibles.scans.subtitle" | "collectibles.scans.shortIndex.flapFront" | "collectibles.scans.shortIndex.front" @@ -134,11 +134,9 @@ export type WordingKey = | "collectibles.scans.obi" | "collectibles.scans.obiInside" | "collectibles.scans.pages" - | "collectibles.gallery.title" - | "collectibles.gallery.subtitle" - | "global.sources.typeLabel.scans" | "collectibles.scans.dustjacket.description" | "collectibles.scans.obi.description" + | "global.sources.typeLabel.scans" | "global.sources.typeLabel.gallery" | "global.media.attributes.filename" | "global.media.attributes.duration" diff --git a/src/pages/[locale]/collectibles/[slug]/gallery/index.astro b/src/pages/[locale]/collectibles/[slug]/gallery/index.astro index e5c7562..eaa4280 100644 --- a/src/pages/[locale]/collectibles/[slug]/gallery/index.astro +++ b/src/pages/[locale]/collectibles/[slug]/gallery/index.astro @@ -23,7 +23,7 @@ const translation = getLocalizedMatch(translations); <AppLayout openGraph={{ - title: `${formatInlineTitle(translation)} (${t("collectibles.gallery")})`, + title: `${formatInlineTitle(translation)} (${t("collectibles.gallery.title")})`, description: translation.description && formatRichTextToString(translation.description), thumbnail, }} diff --git a/src/pages/[locale]/collectibles/[slug]/scans/index.astro b/src/pages/[locale]/collectibles/[slug]/scans/index.astro index f96382a..a8a419d 100644 --- a/src/pages/[locale]/collectibles/[slug]/scans/index.astro +++ b/src/pages/[locale]/collectibles/[slug]/scans/index.astro @@ -41,7 +41,7 @@ const hasOutsideObi = obi ? Object.keys(obi).some((value) => !value.includes("in <AppLayout openGraph={{ - title: `${formatInlineTitle(translation)} (${t("collectibles.scans")})`, + title: `${formatInlineTitle(translation)} (${t("collectibles.scans.title")})`, description: translation.description && formatRichTextToString(translation.description), thumbnail, }}