Skip to content

Commit

Permalink
chore: translate to eng for screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
dimadk24 committed Nov 17, 2023
1 parent 7d22c70 commit a47a038
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 17 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/App/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ const App = ({ popout }: Props): JSX.Element => {
tabbar={
<Tabbar>
<TabbarItem
text="Главная"
text="Home"
selected={activeStory === 'game'}
onClick={() => {
setActiveStory('game')
Expand All @@ -284,7 +284,7 @@ const App = ({ popout }: Props): JSX.Element => {
<Icon28HomeOutline />
</TabbarItem>
<TabbarItem
text="Рейтинг"
text="Rating"
selected={activeStory === 'scoreboard'}
onClick={onOpenScoreboard}
>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/helpers/HomeButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Icon24Home from '@vkontakte/icons/dist/24/home'
function HomeButton(props: ButtonProps): JSX.Element {
return (
<Button size="l" before={<Icon24Home />} {...props}>
Домой
Home
</Button>
)
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/panels/Battle/Battle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const Battle = ({

return (
<>
<PanelHeader onBackButtonClick={onGoBack} text="Игра" />
<PanelHeader onBackButtonClick={onGoBack} text="Game" />
{gameStarted && activeQuestion && (
<Question
question={activeQuestion}
Expand Down
12 changes: 6 additions & 6 deletions frontend/src/components/panels/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ const Home = ({
before={user.photoUrl ? <Avatar src={user.photoUrl} /> : null}
description={
<div style={{ display: 'flex', flexDirection: 'column' }}>
<span>Количество очков - {user.score}</span>{' '}
<span>Место в рейтинге: {user.foreverRank}</span>
<span>Score - {user.score}</span>{' '}
<span>Place in the rating: {user.foreverRank}</span>
</div>
}
multiline
Expand All @@ -78,7 +78,7 @@ const Home = ({
onClick={onStartSingleGame}
disabled={loading}
>
Начать одиночную игру
Start single game
</Button>
</Cell>
<Cell>
Expand All @@ -89,7 +89,7 @@ const Home = ({
disabled={loading}
mode="secondary"
>
Играть с другом
Play with a friend
</Button>
</Cell>
</Div>
Expand All @@ -109,14 +109,14 @@ const Home = ({
/>
}
>
Уведомления об обновлениях
Updates notifications
</Cell>
</Group>
)}
<Group>
<Cell>
<Link href={connectDevLink} target="_blank">
Связь с разработчиком
Developer contact
</Link>
</Cell>
</Group>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function SingleplayerResults({
<div className="action-buttons-wrapper">
<HomeButton onClick={onGoBack} />
<Button onClick={onRetry} size="l" before={<Icon24Replay />}>
Еще раз
Again
</Button>
</div>
)
Expand Down Expand Up @@ -115,27 +115,26 @@ function SingleplayerResults({
)
return (
<>
<PanelHeader text="Результаты" onBackButtonClick={onGoBack} />
<Group header={<Header mode="secondary">Статистика</Header>}>
<PanelHeader text="Results" onBackButtonClick={onGoBack} />
<Group header={<Header mode="secondary">Statistics</Header>}>
<Cell
indicator={<Counter mode="primary">{correctAnswersNumber}</Counter>}
>
Верных ответов:
Correct answers:
</Cell>
<Cell
indicator={<Counter mode="primary">{incorrectAnswersNumber}</Counter>}
>
Неверных ответов:
Wrong answers:
</Cell>
<Cell indicator={<Counter mode="primary">{points}</Counter>}>
Получено очков:
Acquired score:
</Cell>
</Group>
{!showNotificationsRequest && navigationButtons}
{showNotificationsRequest && notificationRequest}
{rejectedNotifications && (

Check warning on line 136 in frontend/src/components/panels/SingleplayerResults/SingleplayerResults.tsx

View workflow job for this annotation

GitHub Actions / Lint with eslint

Replace `(⏎········<Div·className="subscribe-later">⏎········</Div>⏎······)` with `<Div·className="subscribe-later"></Div>`
<Div className="subscribe-later">

Check failure on line 137 in frontend/src/components/panels/SingleplayerResults/SingleplayerResults.tsx

View workflow job for this annotation

GitHub Actions / Lint with eslint

Empty components are self-closing
Подписаться можно на главном экране
</Div>
)}
{loading && <Loader />}
Expand Down

0 comments on commit a47a038

Please sign in to comment.