locale: rm PageHeader locale (#47163)

* chore: rm PageHeader locale

* test: fix test case
This commit is contained in:
lijianan 2024-01-26 16:00:58 +08:00 committed by GitHub
parent 2aca1fff22
commit 5955c7e8b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
59 changed files with 107 additions and 232 deletions

View File

@ -81,9 +81,7 @@ describe('ConfigProvider', () => {
// configProvider
it('configProvider', () => {
const { container } = render(
<ConfigProvider pageHeader={{ ghost: false }} prefixCls="config">
{renderComponent({})}
</ConfigProvider>,
<ConfigProvider prefixCls="config">{renderComponent({})}</ConfigProvider>,
);
expect(isArray ? container.children : container.firstChild).toMatchSnapshot();
});

View File

@ -1,4 +1,5 @@
import React, { useState } from 'react';
import React from 'react';
import ConfigProvider from '..';
import { fireEvent, pureRender } from '../../../tests/utils';
import Tooltip from '../../tooltip';
@ -24,19 +25,14 @@ describe('ConfigProvider', () => {
const MemoedSibling = React.memo(Sibling);
const spy = jest.fn();
const App: React.FC = () => {
const [pageHeader, setPageHeader] = useState({ ghost: true });
const [flex, setFlex] = React.useState({ vertical: true });
const [, forceRender] = React.useReducer((v) => v + 1, 1);
return (
<ConfigProvider pageHeader={pageHeader}>
<button type="button" className="render" onClick={() => forceRender()}>
<ConfigProvider flex={flex}>
<button type="button" className="render" onClick={forceRender}>
Force Render
</button>
<button
type="button"
className="setState"
onClick={() => setPageHeader({ ghost: false })}
>
<button type="button" className="setState" onClick={() => setFlex({ vertical: false })}>
Change Config
</button>
<MemoedSibling spy={spy} />
@ -58,20 +54,15 @@ describe('ConfigProvider', () => {
const MemoedSibling = React.memo(Sibling);
const spy = jest.fn();
const App: React.FC = () => {
const [pageHeader, setPageHeader] = useState({ ghost: true });
const [flex, setFlex] = React.useState({ vertical: true });
const [, forceRender] = React.useReducer((v) => v + 1, 1);
return (
<ConfigProvider pageHeader={pageHeader}>
<ConfigProvider flex={flex}>
<ConfigProvider>
<button type="button" className="render" onClick={() => forceRender()}>
<button type="button" className="render" onClick={forceRender}>
Force Render
</button>
<button
type="button"
className="setState"
onClick={() => setPageHeader({ ghost: false })}
>
<button type="button" className="setState" onClick={() => setFlex({ vertical: false })}>
Change Config
</button>
<MemoedSibling spy={spy} />

View File

@ -94,7 +94,6 @@ export interface ConfigConsumerProps {
input?: ComponentStyleConfig & Pick<InputProps, 'autoComplete' | 'classNames' | 'styles'>;
pagination?: ComponentStyleConfig & Pick<PaginationProps, 'showSizeChanger'>;
locale?: Locale;
pageHeader?: Record<'ghost', boolean>;
direction?: DirectionType;
space?: Pick<SpaceProps, 'size' | 'className' | 'classNames' | 'style' | 'styles'>;
virtual?: boolean;

View File

@ -85,7 +85,6 @@ export const configConsumerProps = [
'csp',
'autoInsertSpaceInButton',
'locale',
'pageHeader',
];
// These props is used by `useContext` directly in sub component
@ -96,7 +95,6 @@ const PASSED_PROPS: Exclude<
'getTargetContainer',
'getPopupContainer',
'renderEmpty',
'pageHeader',
'input',
'pagination',
'form',
@ -119,7 +117,6 @@ export interface ConfigProviderProps {
select?: ComponentStyleConfig & Pick<SelectProps, 'showSearch'>;
pagination?: ComponentStyleConfig & Pick<PaginationProps, 'showSizeChanger'>;
locale?: Locale;
pageHeader?: Record<'ghost', boolean>;
componentSize?: SizeType;
componentDisabled?: boolean;
direction?: DirectionType;

View File

@ -1,8 +1,9 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/ar_EG';
import type { Locale } from '.';
import Calendar from '../calendar/locale/ar_EG';
import DatePicker from '../date-picker/locale/ar_EG';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/ar_EG';
const typeTemplate = 'ليس ${label} من نوع ${type} صالحًا';
@ -64,9 +65,6 @@ const localeValues: Locale = {
copied: 'نقل',
expand: 'وسع',
},
PageHeader: {
back: 'عودة',
},
Form: {
defaultValidateMessages: {
default: 'خطأ في حقل الإدخال ${label}',

View File

@ -1,8 +1,9 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/bn_BD';
import type { Locale } from '.';
import Calendar from '../calendar/locale/bn_BD';
import DatePicker from '../date-picker/locale/bn_BD';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/bn_BD';
const typeTemplate = '${label} টি সঠিক ${type} নয়।';
@ -73,9 +74,6 @@ const localeValues: Locale = {
copied: 'অনুলিপি হয়েছে',
expand: 'বিস্তৃত করা',
},
PageHeader: {
back: 'পেছনে',
},
Form: {
optional: '(ঐচ্ছিক)',
defaultValidateMessages: {

View File

@ -1,8 +1,9 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/by_BY';
import type { Locale } from '.';
import Calendar from '../calendar/locale/by_BY';
import DatePicker from '../date-picker/locale/by_BY';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/by_BY';
const typeTemplate: string = "${label} не з'яўляецца тыпам ${type}";
@ -75,9 +76,6 @@ const localeValues: Locale = {
copied: 'Капіяванне завершана',
expand: 'Разгарнуць',
},
PageHeader: {
back: 'Назад',
},
Form: {
optional: '(не абавязкова)',
defaultValidateMessages: {

View File

@ -1,8 +1,9 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/ca_ES';
import type { Locale } from '.';
import Calendar from '../calendar/locale/ca_ES';
import DatePicker from '../date-picker/locale/ca_ES';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/ca_ES';
const typeTemplate = '${label} no és un ${type} vàlid';
@ -71,9 +72,6 @@ const localeValues: Locale = {
copied: 'Copiat',
expand: 'Ampliar',
},
PageHeader: {
back: 'Enrere',
},
Form: {
optional: '(opcional)',
defaultValidateMessages: {

View File

@ -1,8 +1,9 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/cs_CZ';
import type { Locale } from '.';
import Calendar from '../calendar/locale/cs_CZ';
import DatePicker from '../date-picker/locale/cs_CZ';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/cs_CZ';
const typeTemplate = '${label} není platný ${type}';
@ -75,9 +76,6 @@ const localeValues: Locale = {
copied: 'Zkopírované',
expand: 'Zvětšit',
},
PageHeader: {
back: 'Zpět',
},
Form: {
optional: '(nepovinné)',
defaultValidateMessages: {

View File

@ -1,8 +1,9 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/de_DE';
import type { Locale } from '.';
import Calendar from '../calendar/locale/de_DE';
import DatePicker from '../date-picker/locale/de_DE';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/de_DE';
const typeTemplate = '${label} ist nicht gültig. ${type} erwartet';
@ -76,9 +77,6 @@ const localeValues: Locale = {
copied: 'Kopiert',
expand: 'Erweitern',
},
PageHeader: {
back: 'Zurück',
},
Form: {
defaultValidateMessages: {
default: 'Feld-Validierungsfehler: ${label}',

View File

@ -1,8 +1,9 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/en_GB';
import type { Locale } from '.';
import Calendar from '../calendar/locale/en_GB';
import DatePicker from '../date-picker/locale/en_GB';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/en_GB';
const typeTemplate = '${label} is not a valid ${type}';
@ -75,9 +76,6 @@ const localeValues: Locale = {
copied: 'Copied',
expand: 'Expand',
},
PageHeader: {
back: 'Back',
},
Form: {
optional: '(optional)',
defaultValidateMessages: {

View File

@ -81,9 +81,6 @@ const localeValues: Locale = {
copied: 'Copied',
expand: 'Expand',
},
PageHeader: {
back: 'Back',
},
Form: {
optional: '(optional)',
defaultValidateMessages: {

View File

@ -1,8 +1,9 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/es_ES';
import type { Locale } from '.';
import Calendar from '../calendar/locale/es_ES';
import DatePicker from '../date-picker/locale/es_ES';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/es_ES';
const typeTemplate = '${label} no es un ${type} válido';
@ -75,9 +76,6 @@ const localeValues: Locale = {
copied: 'Copiado',
expand: 'Expandir',
},
PageHeader: {
back: 'Volver',
},
Form: {
optional: '(opcional)',
defaultValidateMessages: {

View File

@ -1,8 +1,9 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/et_EE';
import type { Locale } from '.';
import Calendar from '../calendar/locale/et_EE';
import DatePicker from '../date-picker/locale/et_EE';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/et_EE';
const typeTemplate = '${label} ei ole kehtiv ${type}';
@ -75,9 +76,6 @@ const localeValues: Locale = {
copied: 'Kopeeritud',
expand: 'Laienda',
},
PageHeader: {
back: 'Tagasi',
},
Form: {
optional: '(valikuline)',
defaultValidateMessages: {

View File

@ -1,8 +1,9 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/eu_ES';
import type { Locale } from '.';
import Calendar from '../calendar/locale/eu_ES';
import DatePicker from '../date-picker/locale/eu_ES';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/eu_ES';
const typeTemplate = '${label} ez da ${type} balioduna';
@ -80,9 +81,6 @@ const localeValues: Locale = {
copied: 'Kopiatuta',
expand: 'Zabaldu',
},
PageHeader: {
back: 'Itzuli',
},
Form: {
optional: '(aukerakoa)',
defaultValidateMessages: {

View File

@ -1,8 +1,9 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/fa_IR';
import type { Locale } from '.';
import Calendar from '../calendar/locale/fa_IR';
import DatePicker from '../date-picker/locale/fa_IR';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/fa_IR';
const typeTemplate = '${label} از نوع ${type} معتبر نیست';
@ -80,9 +81,6 @@ const localeValues: Locale = {
copied: 'کپی شد',
expand: 'توسعه',
},
PageHeader: {
back: 'برگشت',
},
Form: {
optional: '(اختیاری)',
defaultValidateMessages: {

View File

@ -1,8 +1,9 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/fr_BE';
import type { Locale } from '.';
import Calendar from '../calendar/locale/fr_BE';
import DatePicker from '../date-picker/locale/fr_BE';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/fr_BE';
const typeTemplate = "La valeur du champ ${label} n'est pas valide pour le type ${type}";
@ -72,9 +73,6 @@ const localeValues: Locale = {
copied: 'Copie effectuée',
expand: 'Développer',
},
PageHeader: {
back: 'Retour',
},
Form: {
optional: '(optionnel)',
defaultValidateMessages: {

View File

@ -1,8 +1,9 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/fr_CA';
import type { Locale } from '.';
import Calendar from '../calendar/locale/fr_CA';
import DatePicker from '../date-picker/locale/fr_CA';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/fr_CA';
const typeTemplate = "La valeur du champ ${label} n'est pas valide pour le type ${type}";
@ -72,9 +73,6 @@ const localeValues: Locale = {
copied: 'Copie effectuée',
expand: 'Développer',
},
PageHeader: {
back: 'Retour',
},
Form: {
optional: '(optionnel)',
defaultValidateMessages: {

View File

@ -1,5 +1,6 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/fr_FR';
import type { Locale } from '.';
import Calendar from '../calendar/locale/fr_FR';
import DatePicker from '../date-picker/locale/fr_FR';
@ -77,9 +78,6 @@ const localeValues: Locale = {
copied: 'Copie effectuée',
expand: 'Développer',
},
PageHeader: {
back: 'Retour',
},
Form: {
optional: '(optionnel)',
defaultValidateMessages: {

View File

@ -1,8 +1,9 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/ga_IE';
import type { Locale } from '.';
import Calendar from '../calendar/locale/ga_IE';
import DatePicker from '../date-picker/locale/ga_IE';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/ga_IE';
const typeTemplate = '${label} is not a valid ${type}';
@ -70,9 +71,6 @@ const localeValues: Locale = {
copied: 'Copied',
expand: 'Expand',
},
PageHeader: {
back: 'Back',
},
Form: {
defaultValidateMessages: {
default: 'Field validation error for ${label}',

View File

@ -1,8 +1,9 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/gl_ES';
import type { Locale } from '.';
import Calendar from '../calendar/locale/gl_ES';
import DatePicker from '../date-picker/locale/gl_ES';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/gl_ES';
const typeTemplate = '${label} non é un ${type} válido';
@ -58,9 +59,6 @@ const localeValues: Locale = {
copied: 'copiado',
expand: 'expandir',
},
PageHeader: {
back: 'voltar',
},
Form: {
defaultValidateMessages: {
default: 'Error de validación do campo ${label}',

View File

@ -1,8 +1,9 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/he_IL';
import type { Locale } from '.';
import Calendar from '../calendar/locale/he_IL';
import DatePicker from '../date-picker/locale/he_IL';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/he_IL';
const typeTemplate = '${label} הוא לא ${type} תקין';
@ -64,9 +65,6 @@ const localeValues: Locale = {
copied: 'הועתק',
expand: 'הרחב',
},
PageHeader: {
back: 'חזרה',
},
Form: {
defaultValidateMessages: {
default: 'ערך השדה שגוי ${label}',

View File

@ -1,8 +1,9 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/hi_IN';
import type { Locale } from '.';
import Calendar from '../calendar/locale/hi_IN';
import DatePicker from '../date-picker/locale/hi_IN';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/hi_IN';
const typeTemplate = '${label} मान्य ${type} नहीं है';
@ -73,9 +74,6 @@ const localeValues: Locale = {
copied: 'कॉपी किया गया',
expand: 'विस्तार',
},
PageHeader: {
back: 'वापस',
},
Form: {
optional: '(ऐच्छिक)',
defaultValidateMessages: {

View File

@ -1,8 +1,9 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/hr_HR';
import type { Locale } from '.';
import Calendar from '../calendar/locale/hr_HR';
import DatePicker from '../date-picker/locale/hr_HR';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/hr_HR';
const typeTemplate = '${label} nije valjan ${type}';
@ -72,9 +73,6 @@ const localeValues: Locale = {
copied: 'Kopiranje uspješno',
expand: 'Proširi',
},
PageHeader: {
back: 'Natrag',
},
Form: {
optional: '(neobavezno)',
defaultValidateMessages: {

View File

@ -1,5 +1,5 @@
import type { PickerLocale } from '../date-picker/generatePicker';
import type { Locale } from '.';
import type { PickerLocale } from '../date-picker/generatePicker';
const datePickerLocale: PickerLocale = {
lang: {
@ -107,9 +107,6 @@ const localeValues: Locale = {
copied: 'Պատճենվել է',
expand: 'Տեսնել ավելին',
},
PageHeader: {
back: 'Հետ',
},
};
export default localeValues;

View File

@ -34,7 +34,6 @@ export interface Locale {
Upload?: UploadLocale;
Empty?: TransferLocaleForEmpty;
global?: Record<string, any>;
PageHeader?: { back: string };
Icon?: Record<string, any>;
Text?: {
edit?: any;

View File

@ -1,8 +1,9 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/it_IT';
import type { Locale } from '.';
import Calendar from '../calendar/locale/it_IT';
import DatePicker from '../date-picker/locale/it_IT';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/it_IT';
const typeTemplate = ' ${label} non è un ${type} valido';
@ -80,9 +81,6 @@ const localeValues: Locale = {
copied: 'copia effettuata',
expand: 'espandi',
},
PageHeader: {
back: 'Torna',
},
Form: {
optional: '(opzionale)',
defaultValidateMessages: {

View File

@ -1,8 +1,9 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/ka_GE';
import type { Locale } from '.';
import Calendar from '../calendar/locale/ka_GE';
import DatePicker from '../date-picker/locale/ka_GE';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/ka_GE';
const typeTemplate = '${label} არ არის სწორი ${type}';
@ -73,9 +74,6 @@ const localeValues: Locale = {
copied: 'ასლი აღებულია',
expand: 'გაშლა',
},
PageHeader: {
back: 'უკან',
},
Form: {
optional: '(არასავალდებულო)',
defaultValidateMessages: {

View File

@ -1,9 +1,10 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/kk_KZ';
import type { Locale } from '.';
import Calendar from '../calendar/locale/kk_KZ';
import DatePicker from '../date-picker/locale/kk_KZ';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/kk_KZ';
const typeTemplate: string = '${label} ${type} типі емес';
@ -73,9 +74,6 @@ const localeValues: Locale = {
copied: 'Көшірілді',
expand: 'Жазу',
},
PageHeader: {
back: 'Артқа',
},
Form: {
defaultValidateMessages: {
default: '${label} өрісін тексеру қателігі',

View File

@ -1,8 +1,9 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/ko_KR';
import type { Locale } from '.';
import Calendar from '../calendar/locale/ko_KR';
import DatePicker from '../date-picker/locale/ko_KR';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/ko_KR';
const typeTemplate = '${label} 유효하지 않은 ${type}';
@ -80,9 +81,6 @@ const localeValues: Locale = {
copied: '복사 됨',
expand: '확장',
},
PageHeader: {
back: '뒤로',
},
Form: {
optional: '(선택사항)',
defaultValidateMessages: {

View File

@ -1,5 +1,6 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/lt_LT';
import type { Locale } from '.';
import Calendar from '../calendar/locale/lt_LT';
import DatePicker from '../date-picker/locale/lt_LT';
@ -80,9 +81,6 @@ const localeValues: Locale = {
copied: 'Nukopijuota',
expand: 'Plačiau',
},
PageHeader: {
back: 'Atgal',
},
Form: {
optional: '(neprivaloma)',
defaultValidateMessages: {

View File

@ -1,7 +1,8 @@
import Pagination from 'rc-pagination/lib/locale/mk_MK';
import type { Locale } from '.';
import Calendar from '../calendar/locale/mk_MK';
import DatePicker from '../date-picker/locale/mk_MK';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/mk_MK';
const localeValues: Locale = {
@ -54,9 +55,6 @@ const localeValues: Locale = {
copied: 'Копирано',
expand: 'Зголеми',
},
PageHeader: {
back: 'Назад',
},
};
export default localeValues;

View File

@ -1,8 +1,9 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/ml_IN';
import type { Locale } from '.';
import Calendar from '../calendar/locale/ml_IN';
import DatePicker from '../date-picker/locale/ml_IN';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/ml_IN';
const typeTemplate = '${label} അസാധുവായ ${type} ആണ്';
@ -73,9 +74,6 @@ const localeValues: Locale = {
copied: 'കോപ്പി ചെയ്തു',
expand: 'വികസിപ്പിക്കുക',
},
PageHeader: {
back: 'തിരികെ',
},
Form: {
optional: '(optional)',
defaultValidateMessages: {

View File

@ -1,7 +1,8 @@
import Pagination from 'rc-pagination/lib/locale/ms_MY';
import type { Locale } from '.';
import Calendar from '../calendar/locale/ms_MY';
import DatePicker from '../date-picker/locale/ms_MY';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/ms_MY';
const localeValues: Locale = {
@ -13,9 +14,6 @@ const localeValues: Locale = {
global: {
placeholder: 'Sila pilih',
},
PageHeader: {
back: 'Kembali',
},
Text: {
edit: 'Sunting',
copy: 'Salin',

View File

@ -1,8 +1,9 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/my_MM';
import type { Locale } from '.';
import Calendar from '../calendar/locale/my_MM';
import DatePicker from '../date-picker/locale/my_MM';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/my_MM';
const typeTemplate = '${label} သည် တရားဝင် ${type} မဟုတ်ပါ';
@ -78,9 +79,6 @@ const localeValues: Locale = {
copied: 'ကူးယူသည်။',
expand: 'ချဲ့ထွင်ပါ။',
},
PageHeader: {
back: 'ကျော',
},
Form: {
optional: '(ချန်လှပ်ထားနိုင်သည်)',
defaultValidateMessages: {

View File

@ -1,8 +1,9 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/nb_NO';
import type { Locale } from '.';
import Calendar from '../calendar/locale/nb_NO';
import DatePicker from '../date-picker/locale/nb_NO';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/nb_NO';
const typeTemplate = '${label} er ikke et gyldig ${type}';
@ -71,9 +72,6 @@ const localeValues: Locale = {
copied: 'Kopiert',
expand: 'Utvid',
},
PageHeader: {
back: 'Tilbake',
},
Form: {
defaultValidateMessages: {
default: 'Feltvalideringsfeil ${label}',

View File

@ -1,8 +1,9 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/nl_BE';
import type { Locale } from '.';
import Calendar from '../calendar/locale/nl_BE';
import DatePicker from '../date-picker/locale/nl_BE';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/nl_BE';
const typeTemplate = '${label} is geen geldige ${type}';
@ -73,9 +74,6 @@ const localeValues: Locale = {
copied: 'Gekopieerd',
expand: 'Uitklappen',
},
PageHeader: {
back: 'Terug',
},
Form: {
optional: '(optioneel)',
defaultValidateMessages: {

View File

@ -1,8 +1,9 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/nl_NL';
import type { Locale } from '.';
import Calendar from '../calendar/locale/nl_NL';
import DatePicker from '../date-picker/locale/nl_NL';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/nl_NL';
const typeTemplate = '${label} is geen geldige ${type}';
@ -73,9 +74,6 @@ const localeValues: Locale = {
copied: 'Gekopieerd',
expand: 'Uitklappen',
},
PageHeader: {
back: 'Terug',
},
Form: {
optional: '(optioneel)',
defaultValidateMessages: {

View File

@ -1,8 +1,9 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/pl_PL';
import type { Locale } from '.';
import Calendar from '../calendar/locale/pl_PL';
import DatePicker from '../date-picker/locale/pl_PL';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/pl_PL';
const typeTemplate = '${label} nie posiada poprawnej wartości dla typu ${type}';
@ -80,9 +81,6 @@ const localeValues: Locale = {
copied: 'Skopiowany',
expand: 'Rozwiń',
},
PageHeader: {
back: 'Wstecz',
},
Form: {
optional: '(opcjonalne)',
defaultValidateMessages: {

View File

@ -1,8 +1,9 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/pt_BR';
import type { Locale } from '.';
import Calendar from '../calendar/locale/pt_BR';
import DatePicker from '../date-picker/locale/pt_BR';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/pt_BR';
const typeTemplate = '${label} não é um ${type} válido';
@ -80,9 +81,6 @@ const localeValues: Locale = {
copied: 'copiado',
expand: 'expandir',
},
PageHeader: {
back: 'Retornar',
},
Form: {
optional: '(opcional)',
defaultValidateMessages: {

View File

@ -1,8 +1,9 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/pt_PT';
import type { Locale } from '.';
import Calendar from '../calendar/locale/pt_PT';
import DatePicker from '../date-picker/locale/pt_PT';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/pt_PT';
const typeTemplate = '${label} não é um ${type} válido';
@ -75,9 +76,6 @@ const localeValues: Locale = {
copied: 'copiado',
expand: 'expandir',
},
PageHeader: {
back: 'voltar',
},
Form: {
optional: '(opcional)',
defaultValidateMessages: {

View File

@ -1,8 +1,9 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/ro_RO';
import type { Locale } from '.';
import Calendar from '../calendar/locale/ro_RO';
import DatePicker from '../date-picker/locale/ro_RO';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/ro_RO';
const typeTemplate = '${label} nu conține tipul corect (${type})';
@ -73,9 +74,6 @@ const localeValues: Locale = {
copied: 'copiat',
expand: 'extinde',
},
PageHeader: {
back: 'înapoi',
},
Form: {
optional: '(opțional)',
defaultValidateMessages: {

View File

@ -1,9 +1,10 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/ru_RU';
import type { Locale } from '.';
import Calendar from '../calendar/locale/ru_RU';
import DatePicker from '../date-picker/locale/ru_RU';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/ru_RU';
const typeTemplate: string = '${label} не является типом ${type}';
@ -81,9 +82,6 @@ const localeValues: Locale = {
copied: 'Скопировано',
expand: 'Раскрыть',
},
PageHeader: {
back: 'Назад',
},
Form: {
optional: '(необязательно)',
defaultValidateMessages: {

View File

@ -1,9 +1,10 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/si_LK';
import type { Locale } from '.';
import Calendar from '../calendar/locale/si_LK';
import DatePicker from '../date-picker/locale/si_LK';
import TimePicker from '../time-picker/locale/si_LK';
import Calendar from '../calendar/locale/si_LK';
import type { Locale } from '.';
const typeTemplate = '${label} වලංගු ${type} ක් නොවේ';
@ -75,9 +76,6 @@ const localeValues: Locale = {
copied: 'පිටපත් විය',
expand: 'විහිදුවන්න',
},
PageHeader: {
back: 'ආපසු',
},
Form: {
optional: '(විකල්පයකි)',
defaultValidateMessages: {

View File

@ -1,8 +1,9 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/sk_SK';
import type { Locale } from '.';
import Calendar from '../calendar/locale/sk_SK';
import DatePicker from '../date-picker/locale/sk_SK';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/sk_SK';
const typeTemplate = '${label} nie je platný ${type}';
@ -75,9 +76,6 @@ const localeValues: Locale = {
copied: 'Skopírované',
expand: 'Zväčšiť',
},
PageHeader: {
back: 'Späť',
},
Form: {
optional: '(nepovinné)',
defaultValidateMessages: {

View File

@ -1,8 +1,9 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/sr_RS';
import type { Locale } from '.';
import Calendar from '../calendar/locale/sr_RS';
import DatePicker from '../date-picker/locale/sr_RS';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/sr_RS';
const typeTemplate = '${label} nije važeći ${type}';
@ -73,9 +74,6 @@ const localeValues: Locale = {
copied: 'Kopirano',
expand: 'Proširi',
},
PageHeader: {
back: 'Nazad',
},
Form: {
optional: '(opcionalno)',
defaultValidateMessages: {

View File

@ -1,8 +1,9 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/sv_SE';
import type { Locale } from '.';
import Calendar from '../calendar/locale/sv_SE';
import DatePicker from '../date-picker/locale/sv_SE';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/sv_SE';
const typeTemplate = '${label} är inte en giltig ${type}';
@ -80,9 +81,6 @@ const localeValues: Locale = {
copied: 'Kopierad',
expand: 'Expandera',
},
PageHeader: {
back: 'Tillbaka',
},
Form: {
optional: '(valfritt)',
defaultValidateMessages: {

View File

@ -1,7 +1,8 @@
import Pagination from 'rc-pagination/lib/locale/ta_IN';
import type { Locale } from '.';
import Calendar from '../calendar/locale/ta_IN';
import DatePicker from '../date-picker/locale/ta_IN';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/ta_IN';
const typeTemplate = '${label} is not a valid ${type}';
@ -68,9 +69,6 @@ const localeValues: Locale = {
copied: 'நகல் எடுக்கப்பட்டது',
expand: 'விரிவாக்கவும்',
},
PageHeader: {
back: 'பின் செல்லவும்',
},
Form: {
optional: '(optional)',
defaultValidateMessages: {

View File

@ -1,8 +1,9 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/th_TH';
import type { Locale } from '.';
import Calendar from '../calendar/locale/th_TH';
import DatePicker from '../date-picker/locale/th_TH';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/th_TH';
const typeTemplate = '${label} ไม่ใช่ ${type} ที่ถูกต้อง';
@ -80,9 +81,6 @@ const localeValues: Locale = {
copied: 'คัดลอกแล้ว',
expand: 'ขยาย',
},
PageHeader: {
back: 'ย้อนกลับ',
},
Form: {
optional: '(ไม่จำเป็น)',
defaultValidateMessages: {

View File

@ -1,8 +1,9 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/tk_TK';
import type { Locale } from '.';
import Calendar from '../calendar/locale/tk_TK';
import DatePicker from '../date-picker/locale/tk_TK';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/tk_TK';
const typeTemplate: string = '${label} ${type} görnüşinde däl';
@ -73,9 +74,6 @@ const localeValues: Locale = {
copied: 'Göçürildi',
expand: 'Ýygnamak',
},
PageHeader: {
back: 'Yza',
},
Form: {
defaultValidateMessages: {
default: '${label} meýdany barlanmady',

View File

@ -1,8 +1,9 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/tr_TR';
import type { Locale } from '.';
import Calendar from '../calendar/locale/tr_TR';
import DatePicker from '../date-picker/locale/tr_TR';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/tr_TR';
const typeTemplate = '${label} geçerli bir ${type} değil';
@ -71,9 +72,6 @@ const localeValues: Locale = {
copied: 'Kopyalandı',
expand: 'Genişlet',
},
PageHeader: {
back: 'Geri',
},
Form: {
optional: '(opsiyonel)',
defaultValidateMessages: {

View File

@ -1,8 +1,9 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/uk_UA';
import type { Locale } from '.';
import Calendar from '../calendar/locale/uk_UA';
import DatePicker from '../date-picker/locale/uk_UA';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/uk_UA';
const typeTemplate = '${label} не є типом ${type}';
@ -80,9 +81,6 @@ const localeValues: Locale = {
copied: 'Скопійовано',
expand: 'Розширити',
},
PageHeader: {
back: 'Назад',
},
Form: {
optional: '(опціонально)',
defaultValidateMessages: {

View File

@ -1,8 +1,9 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/ur_PK';
import type { Locale } from '.';
import Calendar from '../calendar/locale/ur_PK';
import DatePicker from '../date-picker/locale/ur_PK';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/ur_PK';
const typeTemplate = '${label} درست نہیں ہے ${type}';
@ -73,9 +74,6 @@ const localeValues: Locale = {
copied: 'کاپی ہوگیا',
expand: 'پھیلائیں',
},
PageHeader: {
back: 'پیچھے',
},
Form: {
optional: '(اختیاری)',
defaultValidateMessages: {

View File

@ -1,7 +1,8 @@
import Pagination from 'rc-pagination/lib/locale/vi_VN';
import type { Locale } from '.';
import Calendar from '../calendar/locale/vi_VN';
import DatePicker from '../date-picker/locale/vi_VN';
import type { Locale } from '.';
import TimePicker from '../time-picker/locale/vi_VN';
const typeTemplate = '${label} không phải kiểu ${type} hợp lệ';
@ -79,9 +80,6 @@ const localeValues: Locale = {
copied: 'Đã sao chép',
expand: 'Mở rộng',
},
PageHeader: {
back: 'Quay lại',
},
Form: {
optional: '(Tùy chọn)',
defaultValidateMessages: {

View File

@ -81,9 +81,6 @@ const localeValues: Locale = {
copied: '复制成功',
expand: '展开',
},
PageHeader: {
back: '返回',
},
Form: {
optional: '(可选)',
defaultValidateMessages: {

View File

@ -78,9 +78,6 @@ const localeValues: Locale = {
copied: '複製成功',
expand: '展開',
},
PageHeader: {
back: '返回',
},
Form: {
defaultValidateMessages: {
default: '字段驗證錯誤${label}',

View File

@ -78,9 +78,6 @@ const localeValues: Locale = {
copied: '複製成功',
expand: '展開',
},
PageHeader: {
back: '返回',
},
Form: {
optional: '(可選)',
defaultValidateMessages: {

View File

@ -22,7 +22,7 @@ The complete design pattern will include examples of templates, components (ETC)
- **Template:** A page-level example that inspires users how to build a typical page in a system, such as a detail page.
- **Component**
- Basic components: The most basic elements of the system, such as buttons and pagers.
- Business components/modules: Block-level examples, typically consisting of multiple components, such as the PageHeader generic header.
- Business components/modules: Block-level examples, typically consisting of multiple components.
- **General concepts:** Some conventions that guarantee ETC systematization, such as typesetting, fonts, and copywriting.
## Resources

View File

@ -24,7 +24,7 @@ title: 概览
- 模板:一个页面级示例,启发用户如何在系统中构建典型页面,例如详细信息页面。
- 组件
- 基本组件:系统的最基本元素,例如按钮和分页器。
- 业务组件/模块:块级示例,通常由多个组件组成,例如 PageHeader 通用标题
- 业务组件/模块:块级示例,通常由多个组件组成。
- 一般概念:保证 ETC 系统化的一些约定,例如排版、字体和文案。
## 资源