Skip to content

Commit

Permalink
Merge pull request #153 from open-schools/feature/SCHOOL-814/antd-int…
Browse files Browse the repository at this point in the history
…ernationalization

Translate antd into Russian
  • Loading branch information
zavarin-michael authored Jul 19, 2024
2 parents e496387 + 0915ffc commit 94e6184
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export function ProfileEdit() {
required={true}
label={
<span>
<span className={styles.requiredMark}>*</span> Ф.И.О.
<span className={styles.requiredMark}>*</span> Ф.И.О.
</span>
}
name={USER_NAME}
Expand All @@ -78,7 +78,7 @@ export function ProfileEdit() {
required={true}
label={
<span>
<span className={styles.requiredMark}>*</span> Email сотрудника
<span className={styles.requiredMark}>*</span> Email сотрудника
</span>
}
name={USER_EMAIL}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,7 @@ export function ProfileInfo() {
) : (
results.data?.results.map((employee) => (
<div key={employee.id} className={styles.organizationContainer}>
<Field
fieldName={'Организация:'}
fieldValue={employee.organization__name}
type={'right'}
/>
<Field fieldName={'Организация:'} fieldValue={employee.organization__name} type={'right'} />
<Field
fieldName={'Должность:'}
fieldValue={employee.position}
Expand All @@ -55,7 +51,12 @@ export function ProfileInfo() {
))
)}

<Button className={styles.editButton} type='schoolDefaultAuto' block onClick={() => router.push(RoutePath[AppRoutes.USER_EDIT])}>
<Button
className={styles.editButton}
type='schoolDefaultAuto'
block
onClick={() => router.push(RoutePath[AppRoutes.USER_EDIT])}
>
Редактировать профиль
</Button>
</Col>
Expand Down
27 changes: 15 additions & 12 deletions apps/schools/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import Head from 'next/head'
import { OrganizationProvider } from '@domains/organization/providers/organizationProvider'
import { BaseLayout } from '@domains/common/components/containers/BaseLayoutComponents/BaseLayout'
import { LayoutContextProvider } from '@domains/user/providers/baseLayoutProvider'
import { message } from 'antd'
import { ConfigProvider, message } from 'antd'
import ru_RU from 'antd/lib/locale/ru_RU'
import { EventBusProvider } from '@domains/common/providers/eventBusProvider'
import { AppRoutes, RoutePath } from '@domains/common/constants/routerEnums'

Expand Down Expand Up @@ -49,17 +50,19 @@ function MyApp({ Component, pageProps }: CustomAppProps): JSX.Element {
<Provider store={store}>
<EventBusProvider>
<AuthProvider>
<LayoutContextProvider>
<OrganizationProvider>
<Head>
<title>Открытые школы</title>
<link rel='icon' href='/icons/logo.svg' sizes='any' />
</Head>
<LayoutComponent>
<Component {...pageProps} />
</LayoutComponent>
</OrganizationProvider>
</LayoutContextProvider>
<ConfigProvider locale={ru_RU}>
<LayoutContextProvider>
<OrganizationProvider>
<Head>
<title>Открытые школы</title>
<link rel='icon' href='/icons/logo.svg' sizes='any' />
</Head>
<LayoutComponent>
<Component {...pageProps} />
</LayoutComponent>
</OrganizationProvider>
</LayoutContextProvider>
</ConfigProvider>
</AuthProvider>
</EventBusProvider>
</Provider>
Expand Down

0 comments on commit 94e6184

Please sign in to comment.