How to make README.Md multilingual for Github?

Asked

Viewed 1,230 times

11

In one of my git projects, the archive README.md is in English, so I made another call README-pt.md and a link to navigate between them, for example:

[Read this page in English](http....README.md)
[Leia esta página em português](http....README-pt.md)

But there is a way to do it dynamically, where it opens the right language according to who is accessing?

  • Have you tried getting the browser language with JS? I’m not sure how much HTML interpretation is accepted, not to mention unfounded that Jekyll treats Github Mds as flat text.

1 answer

4


There is no way to do this on Github, there is no interpretation for i8n on it. The way you followed is the most correct.

  • That’s too bad. Well, I’ll do the following then, something like: Select Language : [English], [Portuguese], which will be static in the header of each readme, simulating a menu. Obrg.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.