Merge pull request #117 from GRA0007/dev

Add Polish
This commit is contained in:
Benjamin Grant 2021-09-11 03:39:23 +10:00 committed by GitHub
commit 7557b48047
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 3 deletions

View file

@ -13,6 +13,7 @@
name="description"
content="Enter your availability to find a time that works for everyone!"
>
<meta name="monetization" content="$ilp.uphold.com/HjDULeBk9JnH">
<meta http-equiv="origin-trial" content="Ar7tjGW2QiMeUPQCeRlYjb3ea5SyMxU5a7dEPxbmq7BSlOrSb+Twl7QiZ+z36B2KlPH9HXXCrTxfOBs2W1IbPQQAAABOeyJvcmlnaW4iOiJodHRwczovL2NyYWIuZml0OjQ0MyIsImZlYXR1cmUiOiJEaWdpdGFsR29vZHMiLCJleHBpcnkiOjE2MzE2NjM5OTl9">
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png">
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">

View file

@ -162,7 +162,7 @@ const Home = ({ offline }) => {
<Center>
<Logo src={logo} alt="" />
</Center>
<TitleSmall altChars={/[A-Z]/g.test(t('home:create'))}>{t('home:create')}</TitleSmall>
<TitleSmall altChars={/^[A-Za-z ]+$/.test(t('home:create'))}>{t('home:create')}</TitleSmall>
<TitleLarge>CRAB FIT</TitleLarge>
<Links>
<a href="#about">{t('home:nav.about')}</a> / <a href="#donate">{t('home:nav.donate')}</a>
@ -228,11 +228,11 @@ const Home = ({ offline }) => {
<h2>{t('home:about.name')}</h2>
<Stats>
<Stat>
<StatNumber>{stats.eventCount ?? '700+'}</StatNumber>
<StatNumber>{stats.eventCount ?? '1100+'}</StatNumber>
<StatLabel>{t('home:about.events')}</StatLabel>
</Stat>
<Stat>
<StatNumber>{stats.personCount ?? '1600+'}</StatNumber>
<StatNumber>{stats.personCount ?? '3700+'}</StatNumber>
<StatLabel>{t('home:about.availabilities')}</StatLabel>
</Stat>
</Stats>

View file

@ -22,6 +22,7 @@ export const TitleSmall = styled.span`
text-transform: uppercase;
${props => !props.altChars && `
font-family: sans-serif;
font-size: 2rem;
font-weight: 600;
line-height: 1.2em;

View file

@ -54,6 +54,12 @@ const locales = {
weekStart: 0,
timeFormat: '24h',
},
'pl': { // Polish
name: 'Polskie',
import: () => import('dayjs/locale/pl'),
weekStart: 1,
timeFormat: '12h',
},
'ru': { // Russian
name: 'Pусский',
import: () => import('dayjs/locale/ru'),