Skip to content

Commit

Permalink
feature: translate footer (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulinapp1 authored Jan 28, 2024
1 parent cbe22ee commit b61c53f
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/components/Footer/Footer.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { useContext } from 'react';
import { useTranslation } from 'react-i18next';

import FacebookSVG from '../../assets/svgs/facebook.svg';
import GithubSVG from '../../assets/svgs/github.svg';
Expand All @@ -14,37 +15,39 @@ import {
} from './Footer.module.scss';
export const Footer = () => {
const { theme } = useContext(ThemeContext);
const { t } = useTranslation();
return (
<div className={theme(mainContainerLight, mainContainerDark)}>
<div className={theme(containerGridLight, containerGridDark)}>
<div>
<h2>
Koło naukowe i::team <br />
Uniwersytetu Ekonomicznego <br />w Krakowie
{t('iTeam')} <br />
{t('uniName')} <br />
{t('uniTown')}
</h2>
</div>
<div>
<h3>Zarząd:</h3>
<h3>{t('board')}</h3>
<p>zarzad@example.com</p>
</div>
<div>
<p>
Rakowicka 27, 31-510 <br />
Kraków <br />
Biblioteka Główna p.432 <br />
{t('town')} <br />
{t('ourRoom')} <br />
kniuex@example.com
</p>
</div>
<div>
<h3>Opiekun Koła:</h3>
<h3>{t('supervisor')}</h3>
<p>
mgr Katarzyna Wójcik <br />
katwoj@fakemail.com
</p>
</div>
<div></div>
<div>
<h3>Znajdziesz nas na:</h3>
<h3>{t('findUs')}</h3>
<div className={theme(containerIconsLight, containerIconsDark)}>
<a href={GITHUB_LINK}>
<GithubSVG />
Expand Down
8 changes: 8 additions & 0 deletions src/i18n/enTranslation.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ const enTranslations = {
news: 'NEWS',
joinUs: 'JOIN US',
contact: 'CONTACT US',
findUs: 'Find us here:',
ourRoom: 'Main Library room 432',
uniName: 'University of Economics',
uniTown: 'in Cracow',
supervisor: 'Our supervisor',
board: 'Science Club Board',
iTeam: 'Science Club i::team',
town: 'Cracow',
},
};

Expand Down
8 changes: 8 additions & 0 deletions src/i18n/plTranslation.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ const plTranslations = {
news: 'AKTUALNOŚCI',
joinUs: 'DOŁĄCZ DO NAS',
contact: 'KONTAKT',
findUs: 'Znajdziesz nas na:',
ourRoom: 'Biblioteka Główna p.432',
uniName: 'Uniwersytetu Ekonomicznego',
uniTown: 'w Krakowie',
supervisor: 'Opiekun Koła',
board: 'Zarząd',
iTeam: 'Koło Naukowe i::team',
town: 'Kraków',
},
};

Expand Down

0 comments on commit b61c53f

Please sign in to comment.