Skip to content

Commit

Permalink
Add an alias for trans
Browse files Browse the repository at this point in the history
  • Loading branch information
Ydrasil committed Jun 6, 2017
1 parent 9c4eefe commit fb798bc
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 @@ -12,4 +12,4 @@ def trans(sentence):
_cached_translators[filename] = Translator(
get_translations_file())
return _cached_translators[filename].translate(sentence)
return dict(trans=trans)
return dict(trans=trans, _=trans)

0 comments on commit fb798bc

Please sign in to comment.