Skip to content

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Feb 28, 2025

This adds a French translation for both pages as well.

Preview

image

TODO

  • Make translations visible on the Download page by fixing URLs (/fr/download/linux is not being generated, only /fr/download is).
    • I've tried to add localize: ["en", "fr"] to collections/_download/linux.md to no avail.
  • Change links to pages to use localized variants according to the current page language.
  • Make the language dropdown preserve the page you're currently looking at, instead of redirecting you to the homepage. window.location.pathname is supposed to do this, but it doesn't work after you use it once.

This adds a French translation for both pages as well.

TODO:

- Make translations visible on the Download page by fixing URLs
  (`/fr/download/linux` is not being generated, only `/fr/download` is).
- Change links to pages to use localized variants according to the current
  page language.
- Make the language dropdown preserve the page you're currently looking at,
  instead of redirecting you to the homepage. `window.location.pathname`
  is supposed to do this, but it doesn't work after you use it once.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant