0
<div>
    <table class="table" ng-hide="collapsed || filesVM.files.length == 0">
        <tr>
            <th>{{_('Filename')}}
                <small class="text-muted">({{ (filesVM.files | filter:fileSearch).length }} files)</small>
            </th>
        </tr>
    </table>
</div>

babel doesn't work, it cant extract the content, but it can work as below

<div>
    <table class="table" ng-hide="collapsed || filesVM.files.length == 0">
        <tr>
            <th>{{_('Filename')}}
                <small class="text-muted"></small>
            </th>
        </tr>
    </table>
</div>

with config

[jinja2: **/templates/**.html]
encoding = utf-8
extensions = jinja2.ext.autoescape, jinja2.ext.with_

how to change to make it work, and I'm not familiar with this field. Thanks a lot

Machavity
  • 30,841
  • 27
  • 92
  • 100
kly_dream
  • 15
  • 5

1 Answers1

0

Try to use tag gettext {{ gettext('your text') }} or maybe you forgot to set Jinja:

JINJA_ENVIRONMENT = {
    'extensions': [
        'jinja2.ext.i18n'
   ]
}