refactor: rename locale

pull/6217/head
tangjinzhou 2023-01-28 08:39:47 +08:00
parent c903de3c0e
commit 8110d8cbbd
71 changed files with 7 additions and 10 deletions

View File

@ -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';

View File

@ -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';

View File

@ -1,3 +1,3 @@
import locale from '../locale/default';
import locale from '../locale/en_US';
export default locale;

View File

@ -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',

View File

@ -1,3 +0,0 @@
import defaultLocale from './default';
export default defaultLocale;

View File

@ -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';

View File

@ -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';