trulia / hologram

A markdown based documentation system for style guides.
http://trulia.github.io/hologram
Other
2.16k stars 200 forks source link

How would you support multiple languages? #256

Open ffoodd opened 8 years ago

ffoodd commented 8 years ago

Hi,

I'm using Hologram for a long time now and always wanted to generate my documentation in two different languages: french and english.

I obviously need to write the docs twice but would like them next to each other (for easier maintainability), like:

/*doc

---
title: "Boutons"
name: buttons
category: ui-fr

---
*/
/*doc

---
title: "Buttons"
name: buttons
category: ui-en

---
*/
.btn {}

I was thinking about using categories to accomplish this, but I'm afraid that would be complex. These are not different categories since this is the same component and documentation.

So maybe I'm not very smart on this one, but I can't figure a way to accomplish this properly.

What could you recommend to me?