# Translating handlebars templates

**URL:** <https://community.transifex.com/t/translating-handlebars-templates/1332>\
**Category:** Tips and Tricks\
**Created:** [September 2, 2019, 7:18pm UTC](https://community.transifex.com/t/translating-handlebars-templates/1332 "2019-09-02T19:18:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Valodim](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.transifex.com/valodim/32/1207_2.png) [@Valodim](https://community.transifex.com/u/Valodim)\
**Post date:** [September 2, 2019, 7:18pm UTC](https://community.transifex.com/t/translating-handlebars-templates/1332/1 "2019-09-02T19:18:52Z")

</div>

Hi folks,

I’m currently attempting to translate some Handlebars templates, such as this one: [https://gitlab.com/hagrid-keyserver/hagrid/blob/master/dist/templates/index.html.hbs](https://gitlab.com/hagrid-keyserver/hagrid/blob/master/dist/templates/index.html.hbs)

This is basically just HTML, but with a few {{ }} tags here and there. If transifex ignored all the {{ }} and left them in place, there would be no issue. However, some (and only some) of the {{ }} tags show up as translation units, and sometimes even get reordered with newly inserted

 tags, messing up the formatting.

Does anyone have a tip on how I can get transifex to ignore specific bits of HTML templates? Or some other way to solve this? I’d really like to avoid a postprocessing step for translated files.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![anthonydim](https://avatars.discourse-cdn.com/v4/letter/a/3e96dc/32.png) [@anthonydim](https://community.transifex.com/u/anthonydim)\
**Post date:** [September 4, 2019, 4:18pm UTC](https://community.transifex.com/t/translating-handlebars-templates/1332/2 "2019-09-04T16:18:57Z")

</div>

Hello Valodim

There is one option to use in order to accommodate the {{/ layout }} string.

1. Before pushing the files to Transifex, remove this text from the beginning and the end of the file. When the translations are done, pull and add them back.This requires some post and pre-processing ,which I know you were trying to avoid.

Please let me know if this answers your question.

Anthony
