Skip to content

Commit d6895bf

Browse files
committed
Updated translations
1 parent e4fe284 commit d6895bf

File tree

7 files changed

+10
-6
lines changed

7 files changed

+10
-6
lines changed

src/components/CompetitionSelect/CompetitionSelect.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export const CompetitionSelect = ({ onSelect, className }: CompetitionSelectProp
3838
cacheOptions
3939
loadOptions={loadOptions}
4040
placeholder={t('common.competitionSelect.placeholder')}
41+
noOptionsMessage={() => t('common.competitionSelect.noOptions')}
4142
components={{
4243
Option: CompetitionOption,
4344
}}

src/i18n/en/translation.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,9 @@ common:
120120
view: 'View'
121121
name: Name
122122
stage: Stage
123-
header:
124123
login: 'Login'
124+
header:
125+
login: $t(common.login)
125126
logout: 'Logout'
126127
tabs:
127128
groups: 'Groups'

src/i18n/fr/translation.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ common:
107107
search: 'Rechercher'
108108
view: 'Afficher'
109109
name: 'Nom'
110-
header:
111110
login: 'Connexion'
111+
header:
112112
logout: 'Déconnexion'
113113
tabs:
114114
groups: 'Groupes'

src/i18n/ko/translation.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ common:
115115
view: 보기
116116
name: 성명
117117
stage: 스테이지
118-
header:
119118
login: 로그인
119+
header:
120120
logout: 로그아웃
121121
tabs:
122122
groups: 그룹

src/i18n/nl/translation.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ common:
116116
view: 'View'
117117
name: Naam
118118
stage: Stage
119-
header:
120119
login: 'Login'
120+
header:
121121
logout: 'Logout'
122122
tabs:
123123
groups: 'Groepen'

src/i18n/pl/translation.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ common:
119119
view: Widok
120120
name: Name
121121
stage: Scena
122-
header:
123122
login: 'Zaloguj się'
123+
header:
124124
logout: 'Wyloguj się'
125125
tabs:
126126
groups: 'Grupy'

src/layouts/RootLayout/Header.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import { useState } from 'react';
2+
import { useTranslation } from 'react-i18next';
23
import { Link, useParams } from 'react-router-dom';
34
import { Popover } from 'react-tiny-popover';
45
import { useCompetition } from '@/hooks/queries/useCompetition';
56
import { useAuth } from '@/providers/AuthProvider';
67

78
export default function Header() {
9+
const { t } = useTranslation();
810
const { user, signIn, signOut } = useAuth();
911
const [isPopoverOpen, setIsPopoverOpen] = useState(false);
1012

@@ -49,7 +51,7 @@ export default function Header() {
4951
</Popover>
5052
) : (
5153
<button onClick={signIn} className="text-blue-500 mx-2">
52-
Login
54+
{t('common.login')}
5355
</button>
5456
)}
5557
</header>

0 commit comments

Comments
 (0)