update country
with russian translation
This commit is contained in:
parent
fbb3865ac1
commit
fbf1b443fd
@ -14,5 +14,12 @@
|
||||
"submit": "Отправить",
|
||||
"create": "Создать",
|
||||
"logout": "Выход"
|
||||
},
|
||||
"country": {
|
||||
"titles": {
|
||||
"create": "Создать страну",
|
||||
"edit": "Редактировать страну",
|
||||
"show": "Показать страну"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ export const CountryCreate = () => {
|
||||
<Box component="form" sx={{display: 'flex', flexDirection: 'column'}} autoComplete="off">
|
||||
<TextField
|
||||
{...register('code', {
|
||||
required: 'This field is required',
|
||||
required: 'Это поле является обязательным',
|
||||
})}
|
||||
error={!!(errors as any)?.code}
|
||||
helperText={(errors as any)?.code?.message}
|
||||
@ -28,7 +28,7 @@ export const CountryCreate = () => {
|
||||
/>
|
||||
<TextField
|
||||
{...register('name', {
|
||||
required: 'This field is required',
|
||||
required: 'Это поле является обязательным',
|
||||
})}
|
||||
error={!!(errors as any)?.name}
|
||||
helperText={(errors as any)?.name?.message}
|
||||
|
@ -14,7 +14,7 @@ export const CountryEdit = () => {
|
||||
<Box component="form" sx={{display: 'flex', flexDirection: 'column'}} autoComplete="off">
|
||||
<TextField
|
||||
{...register('code', {
|
||||
required: 'This field is required',
|
||||
required: 'Это поле является обязательным',
|
||||
})}
|
||||
error={!!(errors as any)?.code}
|
||||
helperText={(errors as any)?.code?.message}
|
||||
@ -22,12 +22,12 @@ export const CountryEdit = () => {
|
||||
fullWidth
|
||||
InputLabelProps={{shrink: true}}
|
||||
type="text"
|
||||
label={'Code'}
|
||||
label={'Код'}
|
||||
name="code"
|
||||
/>
|
||||
<TextField
|
||||
{...register('name', {
|
||||
required: 'This field is required',
|
||||
required: 'Это поле является обязательным',
|
||||
})}
|
||||
error={!!(errors as any)?.name}
|
||||
helperText={(errors as any)?.name?.message}
|
||||
@ -35,7 +35,7 @@ export const CountryEdit = () => {
|
||||
fullWidth
|
||||
InputLabelProps={{shrink: true}}
|
||||
type="text"
|
||||
label={'Name'}
|
||||
label={'Название'}
|
||||
name="name"
|
||||
/>
|
||||
</Box>
|
||||
|
@ -9,7 +9,7 @@ export const CountryList = () => {
|
||||
() => [
|
||||
{
|
||||
field: 'code',
|
||||
headerName: 'Code',
|
||||
headerName: 'Код',
|
||||
type: 'string',
|
||||
minWidth: 100,
|
||||
display: 'flex',
|
||||
@ -18,14 +18,14 @@ export const CountryList = () => {
|
||||
},
|
||||
{
|
||||
field: 'name',
|
||||
headerName: 'Name',
|
||||
headerName: 'Название',
|
||||
type: 'string',
|
||||
minWidth: 100,
|
||||
flex: 1,
|
||||
},
|
||||
{
|
||||
field: 'actions',
|
||||
headerName: 'Actions',
|
||||
headerName: 'Действия',
|
||||
align: 'right',
|
||||
headerAlign: 'center',
|
||||
minWidth: 120,
|
||||
|
@ -9,8 +9,8 @@ export const CountryShow = () => {
|
||||
const record = data?.data
|
||||
|
||||
const fields = [
|
||||
{label: 'Code', data: 'code'},
|
||||
{label: 'Name', data: 'name'},
|
||||
{label: 'Код', data: 'code'},
|
||||
{label: 'Название', data: 'name'},
|
||||
]
|
||||
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user