Skip to content

Commit

Permalink
Merge pull request #13 from Ydrasil/alias-trans
Browse files Browse the repository at this point in the history
Alias trans
  • Loading branch information
Vincent Agnano authored Jun 9, 2017
2 parents c923999 + fb798bc commit c54488a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tcii18n/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ def trans(sentence):
if filename not in _cached_translators:
_cached_translators[filename] = Translator(filename)
return _cached_translators[filename].translate(sentence)
return dict(trans=trans)
return dict(trans=trans, _=trans)

0 comments on commit c54488a

Please sign in to comment.