答案 0 :(得分:0)
对于版本17.1.1
ag-grid \ src \ ts \ filter \ baseFilter.ts
这些部分没有翻译
const DEFAULT_TRANSLATIONS: {[name: string]: string}= {
loadingOoo:'Loading...',
equals:'Equals',
notEqual:'Not equal',
lessThan:'Less than',
greaterThan:'Greater than',
inRange:'In range',
lessThanOrEqual:'Less than or equals',
greaterThanOrEqual:'Greater than or equals',
filterOoo:'Filter...',
contains:'Contains',
notContains:'Not contains',
startsWith: 'Starts with',
endsWith: 'Ends with',
searchOoo: 'Search...',
selectAll: 'Select All',
applyFilter: 'Apply Filter',
clearFilter: 'Clear Filter'
};
对于最新版本,它仍然不在translations
中,代码部分为here
this.addDestroyableEventListener(andButton, 'change', () => {
this.conditionValue = 'AND';
this.onFilterChanged();
});
this.addDestroyableEventListener(orButton, 'change', () => {
this.conditionValue = 'OR';
this.onFilterChanged();
});
所以他们只是对其进行硬编码,需要在zendesk中创建一个问题。
更新version 20.2添加了对过滤器“ AND / OR”本地化的支持
// filter conditions
andCondition: 'AND',
orCondition: 'OR',