mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 11:40:04 +08:00
0aabdb3d8b
* fix: locale should follow LocaleProvider, close: #4495 * test: update snapshot * fix: fix some bugs
41 lines
865 B
TypeScript
41 lines
865 B
TypeScript
import moment from 'moment';
|
|
import 'moment/locale/pt-br';
|
|
moment.locale('pt-br');
|
|
|
|
import Pagination from '../pagination/locale/pt_BR';
|
|
import DatePicker from '../date-picker/locale/pt_BR';
|
|
import TimePicker from '../time-picker/locale/pt_BR';
|
|
import Calendar from '../calendar/locale/pt_BR';
|
|
|
|
export default {
|
|
locale: 'pt-br',
|
|
Pagination,
|
|
DatePicker,
|
|
TimePicker,
|
|
Calendar,
|
|
Table: {
|
|
filterTitle: 'Filtro',
|
|
filterConfirm: 'OK',
|
|
filterReset: 'Resetar',
|
|
emptyText: 'Não há dados',
|
|
},
|
|
Modal: {
|
|
okText: 'OK',
|
|
cancelText: 'Cancelar',
|
|
justOkText: 'OK',
|
|
},
|
|
Popconfirm: {
|
|
okText: 'OK',
|
|
cancelText: 'Cancelar',
|
|
},
|
|
Transfer: {
|
|
notFoundContent: 'Não encontrado',
|
|
searchPlaceholder: 'Procurar',
|
|
itemUnit: 'item',
|
|
itemsUnit: 'items',
|
|
},
|
|
Select: {
|
|
notFoundContent: 'Não encontrado',
|
|
},
|
|
};
|