Fix bug in rendering data in __translate_file

pull/1303/head
Matthew D. Scholefield 2017-12-12 13:47:01 -06:00
parent 818ce88bf6
commit b70a3f488e
1 changed files with 1 additions and 1 deletions

View File

@ -538,7 +538,7 @@ class MycroftSkill(object):
def __translate_file(self, name, data):
"""Load and render lines from dialog/<lang>/<name>"""
with open(join(self.root_dir, 'dialog', self.lang, name)) as f:
text = f.read().replace('{{', '').replace('}}', '')
text = f.read().replace('{{', '{').replace('}}', '}')
return text.format(**data or {}).split('\n')
def add_event(self, name, handler, need_self=False):