all-contributors / all-contributors/allcontributors.org

Correct internal links for each localisation

Ouverte
#1,139 4 commentaires 0 réactions 1 personne assignée Réclamée par @trueberryless Voir sur GitHub
Langage dominant
MDX
Étoiles
8.1k
Forks
1.7k
Merge moyen
17 h 1 min
PR mergées (30 j)
6

Description

Currently, links in pages (_not_ on the sidebar) are hardcoded to paths in the `en` localisation. For example, in the [emoji key page in french](https://allcontributors.org/fr/reference/emoji-key/) the first two links for "Bot" and "CLI" both link to the `/en/` localisation, rather than `/fr/`.

It will be jarring for readers to be moved between languages like this, and it is inconsistent with the behaviour of the sidebar.

Ways we could approach this,

- An Astro component to write/rewrite links based on the selected locale (@trueberryless any ideas or experience here?)
- Explicitly writing the links in each translation

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.