Magento 2 uses Knockout JavaScript framework.
Knockout template is a file with .html
extension, for example: https://github.com/magento/magento2/blob/develop/app/code/Magento/Ui/view/base/web/templates/grid/controls/columns.html
To make the strings translatable use data-bind
attribute with i18n
binding handler, for example:
<span class="admin__action-dropdown-text" data-bind="i18n: 'Columns'"></span>
There is an official documentation for this functionality: http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/translations/translate_theory.html#add_strings_ui_html