From 82b6b55be2cc62ca7fbf48aeef25b8513f7673c1 Mon Sep 17 00:00:00 2001 From: Ben Grant Date: Sat, 11 Sep 2021 03:24:26 +1000 Subject: [PATCH] Add Polish language --- crabfit-frontend/public/index.html | 1 + crabfit-frontend/src/pages/Home/Home.tsx | 4 ++-- crabfit-frontend/src/res/dayjs_locales.ts | 6 ++++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/crabfit-frontend/public/index.html b/crabfit-frontend/public/index.html index 890d876..beaf405 100644 --- a/crabfit-frontend/public/index.html +++ b/crabfit-frontend/public/index.html @@ -13,6 +13,7 @@ name="description" content="Enter your availability to find a time that works for everyone!" > + diff --git a/crabfit-frontend/src/pages/Home/Home.tsx b/crabfit-frontend/src/pages/Home/Home.tsx index 517b0cf..1ccec7d 100644 --- a/crabfit-frontend/src/pages/Home/Home.tsx +++ b/crabfit-frontend/src/pages/Home/Home.tsx @@ -228,11 +228,11 @@ const Home = ({ offline }) => {

{t('home:about.name')}

- {stats.eventCount ?? '700+'} + {stats.eventCount ?? '1100+'} {t('home:about.events')} - {stats.personCount ?? '1600+'} + {stats.personCount ?? '3700+'} {t('home:about.availabilities')} diff --git a/crabfit-frontend/src/res/dayjs_locales.ts b/crabfit-frontend/src/res/dayjs_locales.ts index 5a13523..ce5b019 100644 --- a/crabfit-frontend/src/res/dayjs_locales.ts +++ b/crabfit-frontend/src/res/dayjs_locales.ts @@ -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'),