update country with russian translation

This commit is contained in:
maxim 2025-02-19 14:46:09 +03:00
parent fbb3865ac1
commit fbf1b443fd
5 changed files with 18 additions and 11 deletions

View File

@ -14,5 +14,12 @@
"submit": "Отправить",
"create": "Создать",
"logout": "Выход"
},
"country": {
"titles": {
"create": "Создать страну",
"edit": "Редактировать страну",
"show": "Показать страну"
}
}
}

View File

@ -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}

View File

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

View File

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

View File

@ -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 (