From 30b2fa2c37e1c71b0ae1e087bd49e27fbbe00938 Mon Sep 17 00:00:00 2001 From: afc163 Date: Mon, 30 Jan 2017 18:20:57 +0800 Subject: [PATCH] Move locale files --- components/locale-provider/pt_BR.tsx | 2 +- components/pagination/Pagination.tsx | 2 +- components/pagination/locale/de_DE.tsx | 2 -- components/pagination/locale/pt_BR.tsx | 12 ------------ components/pagination/locale/zh_CN.tsx | 2 -- 5 files changed, 2 insertions(+), 18 deletions(-) delete mode 100644 components/pagination/locale/de_DE.tsx delete mode 100644 components/pagination/locale/pt_BR.tsx delete mode 100644 components/pagination/locale/zh_CN.tsx diff --git a/components/locale-provider/pt_BR.tsx b/components/locale-provider/pt_BR.tsx index 30582738b5..8ba326faa8 100644 --- a/components/locale-provider/pt_BR.tsx +++ b/components/locale-provider/pt_BR.tsx @@ -2,7 +2,7 @@ import moment from 'moment'; import 'moment/locale/pt-br'; moment.locale('pt-br'); -import Pagination from '../pagination/locale/pt_BR'; +import Pagination from 'rc-pagination/lib/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'; diff --git a/components/pagination/Pagination.tsx b/components/pagination/Pagination.tsx index 68da112335..53d8d2f783 100644 --- a/components/pagination/Pagination.tsx +++ b/components/pagination/Pagination.tsx @@ -2,7 +2,7 @@ import React from 'react'; import RcPagination from 'rc-pagination'; import Select from '../select'; import MiniSelect from './MiniSelect'; -import zhCN from './locale/zh_CN'; +import zhCN from 'rc-pagination/lib/locale/zh_CN'; export interface PaginationProps { /** 当前页数*/ diff --git a/components/pagination/locale/de_DE.tsx b/components/pagination/locale/de_DE.tsx deleted file mode 100644 index c122ae7b2d..0000000000 --- a/components/pagination/locale/de_DE.tsx +++ /dev/null @@ -1,2 +0,0 @@ -import de_DE from 'rc-pagination/lib/locale/de_DE'; -export default de_DE; diff --git a/components/pagination/locale/pt_BR.tsx b/components/pagination/locale/pt_BR.tsx deleted file mode 100644 index d233b16161..0000000000 --- a/components/pagination/locale/pt_BR.tsx +++ /dev/null @@ -1,12 +0,0 @@ -export default { - // Options.jsx - items_per_page: '/ páginas', - jump_to: 'Vá até', - page: '', - - // Pagination.jsx - prev_page: 'Página anterior', - next_page: 'Próxima página', - prev_5: '5 páginas anteriores', - next_5: '5 próximas páginas', -}; diff --git a/components/pagination/locale/zh_CN.tsx b/components/pagination/locale/zh_CN.tsx deleted file mode 100644 index fd6c5fd979..0000000000 --- a/components/pagination/locale/zh_CN.tsx +++ /dev/null @@ -1,2 +0,0 @@ -import zh_CN from 'rc-pagination/lib/locale/zh_CN'; -export default zh_CN;