Add multiple README on GitHub repo
Asked Answered
I

2

22

Is it possible to add multiple README on a git repository? To write a french and a english file for example (README.fr.md, README.en.md).

(Of course, I know it's possible but it's not recognized by GitHub as a README.)

Ionization answered 23/11, 2017 at 14:30 Comment(5)
What's the end result you want to achieve with this? GitHub will still parse the Markdown and render it properly, if that's your concern.Erato
It seems like it would be easy to just try this and see what happens...Hue
@Stijn I want the visitor to be able to change easily between files, but on the main repo page.Ionization
@Erato he wants to see different file say readme1.md or readme2.md files, to just like how REAMME.md file looks at bootom after scroll repo pageGlowworm
Do you mean multiple markdowns as in it shows tabs for it ? Like for this repository ?Wendall
U
20

Yes, you can add, but the default name of the base file should be README.md, and later, add the URLs of different languages on the top of the README.md file so that users can switch to other languages.

Also, make sure that you add the language switch option in each of the README file so that user can switch the language back to the default which is English(I assume)

Unionism answered 23/11, 2017 at 14:33 Comment(4)
Good idea! It's not exactly what I want, but it's okay. Thanks!Ionization
I know that's not what you're looking for but as of now there's no option for multiple languages either.Unionism
Do you just put the url or add any markdown as well?Skyline
Is this what you meant? github.com/jonatasemidio/multilanguage-readme-patternMarchese
A
2

Yeah. This is possible! Just add READMEs in other languages following thr W3C language conventions.

  • If for instance your repo supports also french, you would create a README-fr.md file, README-es for Spanish, etc..
  • Then you just add reference to other languages in your main REAMDE

You can check this ressource for more hints

Agenesis answered 12/1, 2024 at 11:10 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.