diff --git a/TODO.md b/TODO.md index 6ea1548..4c2b639 100644 --- a/TODO.md +++ b/TODO.md @@ -6,27 +6,28 @@ - Create a tool to upload scans images and apply them to collectible - Automatically generate different sizes of images - Handle relationship in RichText Content -- Add proper localization for formatFilesize, formatInches, formatMillimeters, formatPounds, and formatGrams ## Mid term -- [Medias] Add Parent pages -- [Scans] Adapt size of obi based on cover/dustjacket -- [Scans] Order of cover/dustjacket/obi should be based on the book's page order. - [RichTextContent] Add autolink block support - Save cookies for longer than just the session -- [Scripts] Can't run the scripts using node (ts-node?) - Support for nameless section - [Timeline] Error if collectible not published? -- [Timeline] Handle no JS for footers +- [Timeline] display source language - [Timeline] Add details button in footer with credits + last updated / created - When the tags overflow, the tag group name should be align start (see http://localhost:12499/en/pages/magnitude-negative-chapter-1) - [SDK] create a initPayload() that return a payload sdk (and stop hard wirring to ENV or node-cache) - [Videos] see why no video on Firefox and no poster on Chrome https://v3.accords-library.com/en/videos/661b672825d380e548dbb8c8 - [Videos] Display platform info + channel page +- [Timeline] Handle no JS for footers ## Long term +- [Scripts] Can't run the scripts using node (ts-node?) +- [Scans] Adapt size of obi based on cover/dustjacket +- [Scans] Order of cover/dustjacket/obi should be based on the book's page order. +- [Medias] Add Parent pages +- Add proper localization for formatFilesize, formatInches, formatMillimeters, formatPounds, and formatGrams - [Timeline] Some filtering options (by source/languages) - The Chronicles - The Changelog diff --git a/src/components/LanguageOverride.astro b/src/components/LanguageOverride.astro index 1b421fd..af1a52b 100644 --- a/src/components/LanguageOverride.astro +++ b/src/components/LanguageOverride.astro @@ -6,12 +6,13 @@ import { formatLocale } from "src/utils/format"; import { getI18n } from "src/i18n/i18n"; interface Props { - currentLang: string; + currentLanguage: string; + currentSourceLanguage: string; getPartialUrl: (locale: string) => string; availableLanguages: string[]; } -const { currentLang, getPartialUrl, availableLanguages } = Astro.props; +const { currentLanguage, currentSourceLanguage, getPartialUrl, availableLanguages } = Astro.props; const { t } = await getI18n(Astro.locals.currentLocale); --- @@ -19,13 +20,16 @@ const { t } = await getI18n(Astro.locals.currentLocale);
-