From 8110d8cbbdb076241a7b94abdf25655b6c9b6fdd Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Sat, 28 Jan 2023 08:39:47 +0800 Subject: [PATCH] refactor: rename locale --- components/config-provider/index.tsx | 2 +- components/form/FormItemLabel.tsx | 2 +- components/locale-provider/default.ts | 2 +- components/locale/{ar_EG.tsx => ar_EG.ts} | 0 components/locale/{az_AZ.tsx => az_AZ.ts} | 0 components/locale/{bg_BG.tsx => bg_BG.ts} | 0 components/locale/{bn_BD.tsx => bn_BD.ts} | 0 components/locale/{by_BY.tsx => by_BY.ts} | 0 components/locale/{ca_ES.tsx => ca_ES.ts} | 0 components/locale/{cs_CZ.tsx => cs_CZ.ts} | 0 components/locale/{da_DK.tsx => da_DK.ts} | 0 components/locale/{de_DE.tsx => de_DE.ts} | 0 components/locale/{el_GR.tsx => el_GR.ts} | 0 components/locale/{en_GB.tsx => en_GB.ts} | 0 components/locale/{default.tsx => en_US.ts} | 4 ++-- components/locale/en_US.tsx | 3 --- components/locale/{es_ES.tsx => es_ES.ts} | 0 components/locale/{et_EE.tsx => et_EE.ts} | 0 components/locale/{fa_IR.tsx => fa_IR.ts} | 0 components/locale/{fi_FI.tsx => fi_FI.ts} | 0 components/locale/{fr_BE.tsx => fr_BE.ts} | 0 components/locale/{fr_CA.tsx => fr_CA.ts} | 0 components/locale/{fr_FR.tsx => fr_FR.ts} | 0 components/locale/{ga_IE.tsx => ga_IE.ts} | 0 components/locale/{gl_ES.tsx => gl_ES.ts} | 0 components/locale/{he_IL.tsx => he_IL.ts} | 0 components/locale/{hi_IN.tsx => hi_IN.ts} | 0 components/locale/{hr_HR.tsx => hr_HR.ts} | 0 components/locale/{hu_HU.tsx => hu_HU.ts} | 0 components/locale/{hy_AM.tsx => hy_AM.ts} | 0 components/locale/{id_ID.tsx => id_ID.ts} | 0 components/locale/{is_IS.tsx => is_IS.ts} | 0 components/locale/{it_IT.tsx => it_IT.ts} | 0 components/locale/{ja_JP.tsx => ja_JP.ts} | 0 components/locale/{ka_GE.tsx => ka_GE.ts} | 0 components/locale/{kk_KZ.tsx => kk_KZ.ts} | 0 components/locale/{km_KH.tsx => km_KH.ts} | 0 components/locale/{kmr_IQ.tsx => kmr_IQ.ts} | 0 components/locale/{kn_IN.tsx => kn_IN.ts} | 0 components/locale/{ko_KR.tsx => ko_KR.ts} | 0 components/locale/{ku_IQ.tsx => ku_IQ.ts} | 0 components/locale/{lt_LT.tsx => lt_LT.ts} | 0 components/locale/{lv_LV.tsx => lv_LV.ts} | 0 components/locale/{mk_MK.tsx => mk_MK.ts} | 0 components/locale/{ml_IN.tsx => ml_IN.ts} | 0 components/locale/{mn_MN.tsx => mn_MN.ts} | 0 components/locale/{ms_MY.tsx => ms_MY.ts} | 0 components/locale/{nb_NO.tsx => nb_NO.ts} | 0 components/locale/{ne_NP.tsx => ne_NP.ts} | 0 components/locale/{nl_BE.tsx => nl_BE.ts} | 0 components/locale/{nl_NL.tsx => nl_NL.ts} | 0 components/locale/{pl_PL.tsx => pl_PL.ts} | 0 components/locale/{pt_BR.tsx => pt_BR.ts} | 0 components/locale/{pt_PT.tsx => pt_PT.ts} | 0 components/locale/{ro_RO.tsx => ro_RO.ts} | 0 components/locale/{ru_RU.tsx => ru_RU.ts} | 0 components/locale/{sk_SK.tsx => sk_SK.ts} | 0 components/locale/{sl_SI.tsx => sl_SI.ts} | 0 components/locale/{sr_RS.tsx => sr_RS.ts} | 0 components/locale/{sv_SE.tsx => sv_SE.ts} | 0 components/locale/{ta_IN.tsx => ta_IN.ts} | 0 components/locale/{th_TH.tsx => th_TH.ts} | 0 components/locale/{tr_TR.tsx => tr_TR.ts} | 0 components/locale/{uk_UA.tsx => uk_UA.ts} | 0 components/locale/{ur_PK.tsx => ur_PK.ts} | 0 components/locale/{vi_VN.tsx => vi_VN.ts} | 0 components/locale/{zh_CN.tsx => zh_CN.ts} | 0 components/locale/{zh_HK.tsx => zh_HK.ts} | 0 components/locale/{zh_TW.tsx => zh_TW.ts} | 0 components/transfer/ListItem.tsx | 2 +- components/upload/Upload.tsx | 2 +- 71 files changed, 7 insertions(+), 10 deletions(-) rename components/locale/{ar_EG.tsx => ar_EG.ts} (100%) rename components/locale/{az_AZ.tsx => az_AZ.ts} (100%) rename components/locale/{bg_BG.tsx => bg_BG.ts} (100%) rename components/locale/{bn_BD.tsx => bn_BD.ts} (100%) rename components/locale/{by_BY.tsx => by_BY.ts} (100%) rename components/locale/{ca_ES.tsx => ca_ES.ts} (100%) rename components/locale/{cs_CZ.tsx => cs_CZ.ts} (100%) rename components/locale/{da_DK.tsx => da_DK.ts} (100%) rename components/locale/{de_DE.tsx => de_DE.ts} (100%) rename components/locale/{el_GR.tsx => el_GR.ts} (100%) rename components/locale/{en_GB.tsx => en_GB.ts} (100%) rename components/locale/{default.tsx => en_US.ts} (99%) delete mode 100644 components/locale/en_US.tsx rename components/locale/{es_ES.tsx => es_ES.ts} (100%) rename components/locale/{et_EE.tsx => et_EE.ts} (100%) rename components/locale/{fa_IR.tsx => fa_IR.ts} (100%) rename components/locale/{fi_FI.tsx => fi_FI.ts} (100%) rename components/locale/{fr_BE.tsx => fr_BE.ts} (100%) rename components/locale/{fr_CA.tsx => fr_CA.ts} (100%) rename components/locale/{fr_FR.tsx => fr_FR.ts} (100%) rename components/locale/{ga_IE.tsx => ga_IE.ts} (100%) rename components/locale/{gl_ES.tsx => gl_ES.ts} (100%) rename components/locale/{he_IL.tsx => he_IL.ts} (100%) rename components/locale/{hi_IN.tsx => hi_IN.ts} (100%) rename components/locale/{hr_HR.tsx => hr_HR.ts} (100%) rename components/locale/{hu_HU.tsx => hu_HU.ts} (100%) rename components/locale/{hy_AM.tsx => hy_AM.ts} (100%) rename components/locale/{id_ID.tsx => id_ID.ts} (100%) rename components/locale/{is_IS.tsx => is_IS.ts} (100%) rename components/locale/{it_IT.tsx => it_IT.ts} (100%) rename components/locale/{ja_JP.tsx => ja_JP.ts} (100%) rename components/locale/{ka_GE.tsx => ka_GE.ts} (100%) rename components/locale/{kk_KZ.tsx => kk_KZ.ts} (100%) rename components/locale/{km_KH.tsx => km_KH.ts} (100%) rename components/locale/{kmr_IQ.tsx => kmr_IQ.ts} (100%) rename components/locale/{kn_IN.tsx => kn_IN.ts} (100%) rename components/locale/{ko_KR.tsx => ko_KR.ts} (100%) rename components/locale/{ku_IQ.tsx => ku_IQ.ts} (100%) rename components/locale/{lt_LT.tsx => lt_LT.ts} (100%) rename components/locale/{lv_LV.tsx => lv_LV.ts} (100%) rename components/locale/{mk_MK.tsx => mk_MK.ts} (100%) rename components/locale/{ml_IN.tsx => ml_IN.ts} (100%) rename components/locale/{mn_MN.tsx => mn_MN.ts} (100%) rename components/locale/{ms_MY.tsx => ms_MY.ts} (100%) rename components/locale/{nb_NO.tsx => nb_NO.ts} (100%) rename components/locale/{ne_NP.tsx => ne_NP.ts} (100%) rename components/locale/{nl_BE.tsx => nl_BE.ts} (100%) rename components/locale/{nl_NL.tsx => nl_NL.ts} (100%) rename components/locale/{pl_PL.tsx => pl_PL.ts} (100%) rename components/locale/{pt_BR.tsx => pt_BR.ts} (100%) rename components/locale/{pt_PT.tsx => pt_PT.ts} (100%) rename components/locale/{ro_RO.tsx => ro_RO.ts} (100%) rename components/locale/{ru_RU.tsx => ru_RU.ts} (100%) rename components/locale/{sk_SK.tsx => sk_SK.ts} (100%) rename components/locale/{sl_SI.tsx => sl_SI.ts} (100%) rename components/locale/{sr_RS.tsx => sr_RS.ts} (100%) rename components/locale/{sv_SE.tsx => sv_SE.ts} (100%) rename components/locale/{ta_IN.tsx => ta_IN.ts} (100%) rename components/locale/{th_TH.tsx => th_TH.ts} (100%) rename components/locale/{tr_TR.tsx => tr_TR.ts} (100%) rename components/locale/{uk_UA.tsx => uk_UA.ts} (100%) rename components/locale/{ur_PK.tsx => ur_PK.ts} (100%) rename components/locale/{vi_VN.tsx => vi_VN.ts} (100%) rename components/locale/{zh_CN.tsx => zh_CN.ts} (100%) rename components/locale/{zh_HK.tsx => zh_HK.ts} (100%) rename components/locale/{zh_TW.tsx => zh_TW.ts} (100%) diff --git a/components/config-provider/index.tsx b/components/config-provider/index.tsx index a98e4f4db..7476a2ef6 100644 --- a/components/config-provider/index.tsx +++ b/components/config-provider/index.tsx @@ -11,7 +11,7 @@ import type { MaybeRef } from '../_util/type'; import message from '../message'; import notification from '../notification'; import { registerTheme } from './cssVariables'; -import defaultLocale from '../locale/default'; +import defaultLocale from '../locale/en_US'; import type { ValidateMessages } from '../form/interface'; import useStyle from './style'; import useTheme from './hooks/useTheme'; diff --git a/components/form/FormItemLabel.tsx b/components/form/FormItemLabel.tsx index 2b0dd28a9..a9d3eee44 100644 --- a/components/form/FormItemLabel.tsx +++ b/components/form/FormItemLabel.tsx @@ -4,7 +4,7 @@ import type { FormLabelAlign } from './interface'; import { useInjectForm } from './context'; import type { RequiredMark } from './Form'; import { useLocaleReceiver } from '../locale-provider/LocaleReceiver'; -import defaultLocale from '../locale/default'; +import defaultLocale from '../locale/en_US'; import classNames from '../_util/classNames'; import type { VueNode } from '../_util/type'; import type { FunctionalComponent, HTMLAttributes } from 'vue'; diff --git a/components/locale-provider/default.ts b/components/locale-provider/default.ts index 474055018..c1a1995e1 100644 --- a/components/locale-provider/default.ts +++ b/components/locale-provider/default.ts @@ -1,3 +1,3 @@ -import locale from '../locale/default'; +import locale from '../locale/en_US'; export default locale; diff --git a/components/locale/ar_EG.tsx b/components/locale/ar_EG.ts similarity index 100% rename from components/locale/ar_EG.tsx rename to components/locale/ar_EG.ts diff --git a/components/locale/az_AZ.tsx b/components/locale/az_AZ.ts similarity index 100% rename from components/locale/az_AZ.tsx rename to components/locale/az_AZ.ts diff --git a/components/locale/bg_BG.tsx b/components/locale/bg_BG.ts similarity index 100% rename from components/locale/bg_BG.tsx rename to components/locale/bg_BG.ts diff --git a/components/locale/bn_BD.tsx b/components/locale/bn_BD.ts similarity index 100% rename from components/locale/bn_BD.tsx rename to components/locale/bn_BD.ts diff --git a/components/locale/by_BY.tsx b/components/locale/by_BY.ts similarity index 100% rename from components/locale/by_BY.tsx rename to components/locale/by_BY.ts diff --git a/components/locale/ca_ES.tsx b/components/locale/ca_ES.ts similarity index 100% rename from components/locale/ca_ES.tsx rename to components/locale/ca_ES.ts diff --git a/components/locale/cs_CZ.tsx b/components/locale/cs_CZ.ts similarity index 100% rename from components/locale/cs_CZ.tsx rename to components/locale/cs_CZ.ts diff --git a/components/locale/da_DK.tsx b/components/locale/da_DK.ts similarity index 100% rename from components/locale/da_DK.tsx rename to components/locale/da_DK.ts diff --git a/components/locale/de_DE.tsx b/components/locale/de_DE.ts similarity index 100% rename from components/locale/de_DE.tsx rename to components/locale/de_DE.ts diff --git a/components/locale/el_GR.tsx b/components/locale/el_GR.ts similarity index 100% rename from components/locale/el_GR.tsx rename to components/locale/el_GR.ts diff --git a/components/locale/en_GB.tsx b/components/locale/en_GB.ts similarity index 100% rename from components/locale/en_GB.tsx rename to components/locale/en_GB.ts diff --git a/components/locale/default.tsx b/components/locale/en_US.ts similarity index 99% rename from components/locale/default.tsx rename to components/locale/en_US.ts index 77cfcdd89..1de8b02af 100644 --- a/components/locale/default.tsx +++ b/components/locale/en_US.ts @@ -1,8 +1,8 @@ /* eslint-disable no-template-curly-in-string */ import Pagination from '../vc-pagination/locale/en_US'; +import Calendar from '../calendar/locale/en_US'; import DatePicker from '../date-picker/locale/en_US'; import TimePicker from '../time-picker/locale/en_US'; -import Calendar from '../calendar/locale/en_US'; import type { Locale } from '../locale-provider'; const typeTemplate = '${label} is not a valid ${type}'; @@ -64,7 +64,7 @@ const localeValues: Locale = { downloadFile: 'Download file', }, Empty: { - description: 'No Data', + description: 'No data', }, Icon: { icon: 'icon', diff --git a/components/locale/en_US.tsx b/components/locale/en_US.tsx deleted file mode 100644 index 5d08924d7..000000000 --- a/components/locale/en_US.tsx +++ /dev/null @@ -1,3 +0,0 @@ -import defaultLocale from './default'; - -export default defaultLocale; diff --git a/components/locale/es_ES.tsx b/components/locale/es_ES.ts similarity index 100% rename from components/locale/es_ES.tsx rename to components/locale/es_ES.ts diff --git a/components/locale/et_EE.tsx b/components/locale/et_EE.ts similarity index 100% rename from components/locale/et_EE.tsx rename to components/locale/et_EE.ts diff --git a/components/locale/fa_IR.tsx b/components/locale/fa_IR.ts similarity index 100% rename from components/locale/fa_IR.tsx rename to components/locale/fa_IR.ts diff --git a/components/locale/fi_FI.tsx b/components/locale/fi_FI.ts similarity index 100% rename from components/locale/fi_FI.tsx rename to components/locale/fi_FI.ts diff --git a/components/locale/fr_BE.tsx b/components/locale/fr_BE.ts similarity index 100% rename from components/locale/fr_BE.tsx rename to components/locale/fr_BE.ts diff --git a/components/locale/fr_CA.tsx b/components/locale/fr_CA.ts similarity index 100% rename from components/locale/fr_CA.tsx rename to components/locale/fr_CA.ts diff --git a/components/locale/fr_FR.tsx b/components/locale/fr_FR.ts similarity index 100% rename from components/locale/fr_FR.tsx rename to components/locale/fr_FR.ts diff --git a/components/locale/ga_IE.tsx b/components/locale/ga_IE.ts similarity index 100% rename from components/locale/ga_IE.tsx rename to components/locale/ga_IE.ts diff --git a/components/locale/gl_ES.tsx b/components/locale/gl_ES.ts similarity index 100% rename from components/locale/gl_ES.tsx rename to components/locale/gl_ES.ts diff --git a/components/locale/he_IL.tsx b/components/locale/he_IL.ts similarity index 100% rename from components/locale/he_IL.tsx rename to components/locale/he_IL.ts diff --git a/components/locale/hi_IN.tsx b/components/locale/hi_IN.ts similarity index 100% rename from components/locale/hi_IN.tsx rename to components/locale/hi_IN.ts diff --git a/components/locale/hr_HR.tsx b/components/locale/hr_HR.ts similarity index 100% rename from components/locale/hr_HR.tsx rename to components/locale/hr_HR.ts diff --git a/components/locale/hu_HU.tsx b/components/locale/hu_HU.ts similarity index 100% rename from components/locale/hu_HU.tsx rename to components/locale/hu_HU.ts diff --git a/components/locale/hy_AM.tsx b/components/locale/hy_AM.ts similarity index 100% rename from components/locale/hy_AM.tsx rename to components/locale/hy_AM.ts diff --git a/components/locale/id_ID.tsx b/components/locale/id_ID.ts similarity index 100% rename from components/locale/id_ID.tsx rename to components/locale/id_ID.ts diff --git a/components/locale/is_IS.tsx b/components/locale/is_IS.ts similarity index 100% rename from components/locale/is_IS.tsx rename to components/locale/is_IS.ts diff --git a/components/locale/it_IT.tsx b/components/locale/it_IT.ts similarity index 100% rename from components/locale/it_IT.tsx rename to components/locale/it_IT.ts diff --git a/components/locale/ja_JP.tsx b/components/locale/ja_JP.ts similarity index 100% rename from components/locale/ja_JP.tsx rename to components/locale/ja_JP.ts diff --git a/components/locale/ka_GE.tsx b/components/locale/ka_GE.ts similarity index 100% rename from components/locale/ka_GE.tsx rename to components/locale/ka_GE.ts diff --git a/components/locale/kk_KZ.tsx b/components/locale/kk_KZ.ts similarity index 100% rename from components/locale/kk_KZ.tsx rename to components/locale/kk_KZ.ts diff --git a/components/locale/km_KH.tsx b/components/locale/km_KH.ts similarity index 100% rename from components/locale/km_KH.tsx rename to components/locale/km_KH.ts diff --git a/components/locale/kmr_IQ.tsx b/components/locale/kmr_IQ.ts similarity index 100% rename from components/locale/kmr_IQ.tsx rename to components/locale/kmr_IQ.ts diff --git a/components/locale/kn_IN.tsx b/components/locale/kn_IN.ts similarity index 100% rename from components/locale/kn_IN.tsx rename to components/locale/kn_IN.ts diff --git a/components/locale/ko_KR.tsx b/components/locale/ko_KR.ts similarity index 100% rename from components/locale/ko_KR.tsx rename to components/locale/ko_KR.ts diff --git a/components/locale/ku_IQ.tsx b/components/locale/ku_IQ.ts similarity index 100% rename from components/locale/ku_IQ.tsx rename to components/locale/ku_IQ.ts diff --git a/components/locale/lt_LT.tsx b/components/locale/lt_LT.ts similarity index 100% rename from components/locale/lt_LT.tsx rename to components/locale/lt_LT.ts diff --git a/components/locale/lv_LV.tsx b/components/locale/lv_LV.ts similarity index 100% rename from components/locale/lv_LV.tsx rename to components/locale/lv_LV.ts diff --git a/components/locale/mk_MK.tsx b/components/locale/mk_MK.ts similarity index 100% rename from components/locale/mk_MK.tsx rename to components/locale/mk_MK.ts diff --git a/components/locale/ml_IN.tsx b/components/locale/ml_IN.ts similarity index 100% rename from components/locale/ml_IN.tsx rename to components/locale/ml_IN.ts diff --git a/components/locale/mn_MN.tsx b/components/locale/mn_MN.ts similarity index 100% rename from components/locale/mn_MN.tsx rename to components/locale/mn_MN.ts diff --git a/components/locale/ms_MY.tsx b/components/locale/ms_MY.ts similarity index 100% rename from components/locale/ms_MY.tsx rename to components/locale/ms_MY.ts diff --git a/components/locale/nb_NO.tsx b/components/locale/nb_NO.ts similarity index 100% rename from components/locale/nb_NO.tsx rename to components/locale/nb_NO.ts diff --git a/components/locale/ne_NP.tsx b/components/locale/ne_NP.ts similarity index 100% rename from components/locale/ne_NP.tsx rename to components/locale/ne_NP.ts diff --git a/components/locale/nl_BE.tsx b/components/locale/nl_BE.ts similarity index 100% rename from components/locale/nl_BE.tsx rename to components/locale/nl_BE.ts diff --git a/components/locale/nl_NL.tsx b/components/locale/nl_NL.ts similarity index 100% rename from components/locale/nl_NL.tsx rename to components/locale/nl_NL.ts diff --git a/components/locale/pl_PL.tsx b/components/locale/pl_PL.ts similarity index 100% rename from components/locale/pl_PL.tsx rename to components/locale/pl_PL.ts diff --git a/components/locale/pt_BR.tsx b/components/locale/pt_BR.ts similarity index 100% rename from components/locale/pt_BR.tsx rename to components/locale/pt_BR.ts diff --git a/components/locale/pt_PT.tsx b/components/locale/pt_PT.ts similarity index 100% rename from components/locale/pt_PT.tsx rename to components/locale/pt_PT.ts diff --git a/components/locale/ro_RO.tsx b/components/locale/ro_RO.ts similarity index 100% rename from components/locale/ro_RO.tsx rename to components/locale/ro_RO.ts diff --git a/components/locale/ru_RU.tsx b/components/locale/ru_RU.ts similarity index 100% rename from components/locale/ru_RU.tsx rename to components/locale/ru_RU.ts diff --git a/components/locale/sk_SK.tsx b/components/locale/sk_SK.ts similarity index 100% rename from components/locale/sk_SK.tsx rename to components/locale/sk_SK.ts diff --git a/components/locale/sl_SI.tsx b/components/locale/sl_SI.ts similarity index 100% rename from components/locale/sl_SI.tsx rename to components/locale/sl_SI.ts diff --git a/components/locale/sr_RS.tsx b/components/locale/sr_RS.ts similarity index 100% rename from components/locale/sr_RS.tsx rename to components/locale/sr_RS.ts diff --git a/components/locale/sv_SE.tsx b/components/locale/sv_SE.ts similarity index 100% rename from components/locale/sv_SE.tsx rename to components/locale/sv_SE.ts diff --git a/components/locale/ta_IN.tsx b/components/locale/ta_IN.ts similarity index 100% rename from components/locale/ta_IN.tsx rename to components/locale/ta_IN.ts diff --git a/components/locale/th_TH.tsx b/components/locale/th_TH.ts similarity index 100% rename from components/locale/th_TH.tsx rename to components/locale/th_TH.ts diff --git a/components/locale/tr_TR.tsx b/components/locale/tr_TR.ts similarity index 100% rename from components/locale/tr_TR.tsx rename to components/locale/tr_TR.ts diff --git a/components/locale/uk_UA.tsx b/components/locale/uk_UA.ts similarity index 100% rename from components/locale/uk_UA.tsx rename to components/locale/uk_UA.ts diff --git a/components/locale/ur_PK.tsx b/components/locale/ur_PK.ts similarity index 100% rename from components/locale/ur_PK.tsx rename to components/locale/ur_PK.ts diff --git a/components/locale/vi_VN.tsx b/components/locale/vi_VN.ts similarity index 100% rename from components/locale/vi_VN.tsx rename to components/locale/vi_VN.ts diff --git a/components/locale/zh_CN.tsx b/components/locale/zh_CN.ts similarity index 100% rename from components/locale/zh_CN.tsx rename to components/locale/zh_CN.ts diff --git a/components/locale/zh_HK.tsx b/components/locale/zh_HK.ts similarity index 100% rename from components/locale/zh_HK.tsx rename to components/locale/zh_HK.ts diff --git a/components/locale/zh_TW.tsx b/components/locale/zh_TW.ts similarity index 100% rename from components/locale/zh_TW.tsx rename to components/locale/zh_TW.ts diff --git a/components/transfer/ListItem.tsx b/components/transfer/ListItem.tsx index 267fba7f9..44de29d13 100644 --- a/components/transfer/ListItem.tsx +++ b/components/transfer/ListItem.tsx @@ -2,7 +2,7 @@ import PropTypes from '../_util/vue-types'; import classNames from '../_util/classNames'; import type { TransferLocale } from '.'; import DeleteOutlined from '@ant-design/icons-vue/DeleteOutlined'; -import defaultLocale from '../locale/default'; +import defaultLocale from '../locale/en_US'; import Checkbox from '../checkbox'; import TransButton from '../_util/transButton'; import LocaleReceiver from '../locale-provider/LocaleReceiver'; diff --git a/components/upload/Upload.tsx b/components/upload/Upload.tsx index 38b3f1570..f1fe7bad3 100644 --- a/components/upload/Upload.tsx +++ b/components/upload/Upload.tsx @@ -12,7 +12,7 @@ import type { import { uploadProps } from './interface'; import { file2Obj, getFileItem, removeFileItem, updateFileList } from './utils'; import { useLocaleReceiver } from '../locale-provider/LocaleReceiver'; -import defaultLocale from '../locale/default'; +import defaultLocale from '../locale/en_US'; import type { CSSProperties } from 'vue'; import { computed, defineComponent, onMounted, ref, toRef } from 'vue'; import { flattenChildren, initDefaultProps } from '../_util/props-util';