fix: select组件国际化问题

This commit is contained in:
allenve 2023-09-04 15:40:37 +08:00
parent 912cb83c53
commit d9ad56a515
4 changed files with 4 additions and 1 deletions

View File

@ -1193,7 +1193,7 @@ export class Select extends React.Component<SelectProps, SelectState> {
) : null}
{multiple && valuesNoWrap ? (
<div className={cx('Select-option')}>
({selectionValues.length})
{__('Select.selected')}({selectionValues.length})
</div>
) : null}
{multiple && checkAll && filtedOptions.length ? (

View File

@ -219,6 +219,7 @@ register('de-DE', {
'Select.createLabel': 'Neue Option',
'Select.placeholder': 'Auswählen',
'Select.searchPromptText': 'Eingeben zum Suchen',
'Select.selected': 'Ausgewählt',
'sort': 'Sortieren',
'SubForm.button': 'Configurieren',
'SubForm.editDetail': 'Details bearbeiten',

View File

@ -212,6 +212,7 @@ register('en-US', {
'Select.createLabel': 'New option',
'Select.placeholder': 'Select',
'Select.searchPromptText': 'Input to search',
'Select.selected': 'Selected',
'sort': 'Sort',
'stop': 'Stop',
'SubForm.button': 'Config',

View File

@ -218,6 +218,7 @@ register('zh-CN', {
'Select.createLabel': '新增选项',
'Select.placeholder': '请选择',
'Select.searchPromptText': '搜索',
'Select.selected': '已选择',
'sort': '排序',
'SubForm.button': '设置',
'SubForm.editDetail': '编辑详情',