Skip to content

Adding a new language

Andrea Del Rio edited this page May 8, 2016 · 4 revisions
  1. Create 13 new markdown files

Let's say be want to add the language French. We would need to create the 13 markdown files corresponding to the kits.

In Jekyll, every markdown file must have a date at the beginning of the name of the file. You can pick any date.

It is suggested to keep the same name as the original English file and add to letter to identify the language of the current file. For example:

Filename of Kit #1 in English:

2015-10-03-f08k01-accounts-hijacked.markdown

Filename of Kit #1 in French would be:

2015-10-03-f08k01-accounts-hijacked-fr.markdown

In all the 13 new files, update the value of "lang:" to the new language.

  1. Create a new index.html file for the new language

Duplicate the existing “index.html” and append the short name of the new language. In this case it would be:

index_fr.html

Open this newly created file and edit the line that says “lang”. It should say the name of this new language you are adding. In this case:

lang: French (or Francais, whatever you think it's better)

  1. Create all the static pages for the new language. We currently only have 'Intro' as a static page. But we would do exactly the same if we also had 'About', 'Contact', etc.

Duplicate the existing “intro.markdown” and append the short name of the new language. In this case it would be:

intro_fr.markdown

Just like we did for index.html go ahead and edit the line that says “lang” to match the new language.

Clone this wiki locally