From a9f14ea48f483e9ce54b5561468e2d23cec7573e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=81=8F=E5=8F=B3?= Date: Thu, 6 Aug 2020 10:40:58 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=F0=9F=8C=8E=20new=20kmr=5FIQ=20to?= =?UTF-8?q?=20replace=20ku=5FIQ=20(#26030)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: 🌎 new kmr_IQ to replace ku_IQ close #25778 close #25790 * fix locale provider Legacy usage * Update docs/react/i18n.en-US.md Co-authored-by: Amumu * Update i18n.zh-CN.md Co-authored-by: Amumu --- components/calendar/locale/kmr_IQ.tsx | 3 + components/calendar/locale/ku_IQ.tsx | 3 - .../locale/{ku_IQ.tsx => kmr_IQ.tsx} | 4 +- .../__snapshots__/index.test.js.snap | 2 +- .../locale-provider/__tests__/index.test.js | 4 +- components/locale-provider/kmr_IQ.tsx | 3 + components/locale-provider/ta_IN.tsx | 63 +------------------ components/locale/kmr_IQ.tsx | 46 ++++++++++++++ components/locale/ku_IQ.tsx | 12 ++-- .../locale/{ku_IQ.tsx => kmr_IQ.tsx} | 0 docs/react/i18n.en-US.md | 2 +- docs/react/i18n.zh-CN.md | 2 +- package.json | 4 +- 13 files changed, 71 insertions(+), 77 deletions(-) create mode 100755 components/calendar/locale/kmr_IQ.tsx delete mode 100755 components/calendar/locale/ku_IQ.tsx rename components/date-picker/locale/{ku_IQ.tsx => kmr_IQ.tsx} (78%) create mode 100644 components/locale-provider/kmr_IQ.tsx create mode 100644 components/locale/kmr_IQ.tsx rename components/time-picker/locale/{ku_IQ.tsx => kmr_IQ.tsx} (100%) diff --git a/components/calendar/locale/kmr_IQ.tsx b/components/calendar/locale/kmr_IQ.tsx new file mode 100755 index 0000000000..6d467b3005 --- /dev/null +++ b/components/calendar/locale/kmr_IQ.tsx @@ -0,0 +1,3 @@ +import kmrIQ from '../../date-picker/locale/kmr_IQ'; + +export default kmrIQ; diff --git a/components/calendar/locale/ku_IQ.tsx b/components/calendar/locale/ku_IQ.tsx deleted file mode 100755 index 085baf924a..0000000000 --- a/components/calendar/locale/ku_IQ.tsx +++ /dev/null @@ -1,3 +0,0 @@ -import kuIQ from '../../date-picker/locale/ku_IQ'; - -export default kuIQ; diff --git a/components/date-picker/locale/ku_IQ.tsx b/components/date-picker/locale/kmr_IQ.tsx similarity index 78% rename from components/date-picker/locale/ku_IQ.tsx rename to components/date-picker/locale/kmr_IQ.tsx index 33cceb4ffb..9cbb9df78d 100755 --- a/components/date-picker/locale/ku_IQ.tsx +++ b/components/date-picker/locale/kmr_IQ.tsx @@ -1,5 +1,5 @@ -import CalendarLocale from 'rc-picker/lib/locale/ku_IQ'; -import TimePickerLocale from '../../time-picker/locale/ku_IQ'; +import CalendarLocale from 'rc-picker/lib/locale/kmr_IQ'; +import TimePickerLocale from '../../time-picker/locale/kmr_IQ'; import { PickerLocale } from '../generatePicker'; // Merge into a locale object diff --git a/components/locale-provider/__tests__/__snapshots__/index.test.js.snap b/components/locale-provider/__tests__/__snapshots__/index.test.js.snap index 6eb9e5d928..678f24d8d0 100644 --- a/components/locale-provider/__tests__/__snapshots__/index.test.js.snap +++ b/components/locale-provider/__tests__/__snapshots__/index.test.js.snap @@ -143101,7 +143101,7 @@ exports[`Locale Provider should display the text as ko 1`] = ` `; -exports[`Locale Provider should display the text as ku-iq 1`] = ` +exports[`Locale Provider should display the text as ku 1`] = `