diff --git a/tcii18n/template.py b/tcii18n/template.py index 0f85258..00ad089 100644 --- a/tcii18n/template.py +++ b/tcii18n/template.py @@ -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)