在我的 AngularJS 应用程序中,我使用 angular translate 来实现国际化。
但它不适用于ng-dropdown-multiselect
文本。
我尝试将翻译文本与 $scope 变量相关联并应用 $scope.$watch 来等待更改,但它也不起作用。
有人知道如何使它成为多语言吗?
<div
ng-dropdown-multiselect=""
options="myModelOptions"
selected-model="mySelectedItem"
extra-settings="mySettings"
translation-texts="{
'checkAll': myScopeVariable.selectAll,
'uncheckAll': myScopeVariable.selectNone,
'buttonDefaultText': myScopeVariable.selectZero,
'selectionCount': myScopeVariable.selectCount,
'dynamicButtonTextSuffix': myScopeVariable.selectSufix
}">
</div>