From fbf1b443fd7a8646d88c5b45b0183b5b2894db4c Mon Sep 17 00:00:00 2001 From: maxim Date: Wed, 19 Feb 2025 14:46:09 +0300 Subject: [PATCH] update `country` with russian translation --- src/locales/ru/translation.json | 7 +++++++ src/pages/country/create.tsx | 4 ++-- src/pages/country/edit.tsx | 8 ++++---- src/pages/country/list.tsx | 6 +++--- src/pages/country/show.tsx | 4 ++-- 5 files changed, 18 insertions(+), 11 deletions(-) diff --git a/src/locales/ru/translation.json b/src/locales/ru/translation.json index 048037f..2efa01f 100644 --- a/src/locales/ru/translation.json +++ b/src/locales/ru/translation.json @@ -14,5 +14,12 @@ "submit": "Отправить", "create": "Создать", "logout": "Выход" + }, + "country": { + "titles": { + "create": "Создать страну", + "edit": "Редактировать страну", + "show": "Показать страну" + } } } diff --git a/src/pages/country/create.tsx b/src/pages/country/create.tsx index a9c8473..9b4fd10 100644 --- a/src/pages/country/create.tsx +++ b/src/pages/country/create.tsx @@ -15,7 +15,7 @@ export const CountryCreate = () => { { /> { { fullWidth InputLabelProps={{shrink: true}} type="text" - label={'Code'} + label={'Код'} name="code" /> { fullWidth InputLabelProps={{shrink: true}} type="text" - label={'Name'} + label={'Название'} name="name" /> diff --git a/src/pages/country/list.tsx b/src/pages/country/list.tsx index 698210c..6dea3cf 100644 --- a/src/pages/country/list.tsx +++ b/src/pages/country/list.tsx @@ -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, diff --git a/src/pages/country/show.tsx b/src/pages/country/show.tsx index a75517c..f25801f 100644 --- a/src/pages/country/show.tsx +++ b/src/pages/country/show.tsx @@ -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 (