# Best way to translate HTML files

**URL:** <https://talk.jekyllrb.com/t/best-way-to-translate-html-files/2912>\
**Category:** Help\
**Created:** [May 15, 2019, 9:52pm UTC](https://talk.jekyllrb.com/t/best-way-to-translate-html-files/2912 "2019-05-15T21:52:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![huey](https://avatars.discourse-cdn.com/v4/letter/h/e5b9ba/32.png) [@huey](https://talk.jekyllrb.com/u/huey)\
**Post date:** [May 15, 2019, 9:52pm UTC](https://talk.jekyllrb.com/t/best-way-to-translate-html-files/2912/1 "2019-05-15T21:52:57Z")

</div>

Hi, everybody

I’ve been trying to help [this project](http://github.com/bisq-network/bisq-website) with a translation process and I’d like your help.

I’m new to Jekyll and [this method](https://www.sylvaindurand.org/making-jekyll-multilingual/) seems the most simple to me but I’m having trouble with translating the HTML files. My goal is to get the lines with text from file “index.html” and put them all into “en.yml”. Something like:

index\_1: Welcome  
index\_2: …  
etc…

And then have a /i18n/pt/pt.yml where I would keep an equivalent of “en.yml” but translated to Portuguese (and other languages). Then the goal would be to have inside /i18n/pt/ a “index\_pt.html” where I would reference the strings in “pt.yml”.

I can’t get how to do this last step and reference the strings in “pt.yml” inside “index\_pt.html”. What would you advise?

---

<div class="post-metadata">

**Author:** ![Slavi](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@Slavi](https://talk.jekyllrb.com/u/Slavi)\
**Post date:** [May 16, 2019, 3:00pm UTC](https://talk.jekyllrb.com/t/best-way-to-translate-html-files/2912/2 "2019-05-16T15:00:43Z")

</div>

> **[planetjekyll/awesome-jekyll-plugins](https://github.com/planetjekyll/awesome-jekyll-plugins)**
>
> A collection of awesome Jekyll plugins (gems, scripts, pasties, etc.) - planetjekyll/awesome-jekyll-plugins

  
Take a look at the Jekyll gems that are listed in the resource section. You could use one of them, or look at the code for some hints and pointers
