superdesk/superdesk-client-core

View on GitHub
scripts/apps/translations/views/TranslationDropdown.html

Summary

Maintainability
Test Coverage
<ul>
    <li ng-if="languages.length" ng-repeat="language in languages track by language._id">
        <button ng-disabled="isCurrentLanguage(language)" option="{{ language.label}}" ng-click="translateItem(language);">
            {{ :: language.label | translate }}
        </button>
    </li>
    <li ng-if="!languages.length">
        <button ng-disabled="true">{{::'No available languages'|translate}}</button>
    </li>
</ul>