calcom/apps/web
Agusti Fernandez b860a79d59
Detect users browser locale for time format 12/24 hours (#1900)
* fix: adds new isBrowserLocal24h timeFormat util, uses in BookingPage

* fix: adds new time format locale detector in available times

* fix: removes 24h clock from availabletimes

* chore: move timeFormat to lib util, add to payment page

* chore: remove commented out is24h

* fix: adds timeFormat to success page

* fix: adds timeFormat to cancel page

* fix: adds timeFormat to video meeting ended/not started pages

* fix: removes added typo in success page

* fix: reverts back to use of is24h Switch in available times / time options, renames timeFormat to detectBrowserTimeFormat to avoid collisions

* fix: moves use uf isBrowserLocal24h() to clock util initClock() itself, by calling it only if no localStorage settings are set

* chore: move back timeFormat props to line it was so no change

* chore: remove empty line in timeOptions

* chore: move back timeFormat where it was in TimeOptions props

* chore: add back empty line before selectedTimeZone return

* fix: reverts back to use of is24h in payments page

* feat: adds browser locale as default in payment page in case there's no settings set by the customer

* feat: adds browser locale as default in success page

* fix: deconstruct props so eslint passes

* fix: lint issue for extra empty line in meeting-ended uid page

Co-authored-by: Agusti Fernandez <git@agusti.me>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-02-23 12:37:15 +00:00
..
@prisma Extract prisma to it's own package (#1823) 2022-02-15 13:30:52 -07:00
@types Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
components Detect users browser locale for time format 12/24 hours (#1900) 2022-02-23 12:37:15 +00:00
contexts Eslint fixes (#1898) 2022-02-18 16:53:45 +00:00
docs Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
ee Detect users browser locale for time format 12/24 hours (#1900) 2022-02-23 12:37:15 +00:00
lib Detect users browser locale for time format 12/24 hours (#1900) 2022-02-23 12:37:15 +00:00
pages Detect users browser locale for time format 12/24 hours (#1900) 2022-02-23 12:37:15 +00:00
playwright Upgrades prisma to latest version (#1894) 2022-02-18 15:16:53 -07:00
public New Crowdin translations by Github Action (#1952) 2022-02-23 12:01:55 +00:00
scripts Eslint fixes (#1898) 2022-02-18 16:53:45 +00:00
server Second go at removing Zod generated classes from our repo (#1946) 2022-02-22 23:19:22 +00:00
styles Runs prettier 2022-02-10 14:22:45 -07:00
test/lib Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
types Eslint fixes (#1898) 2022-02-18 16:53:45 +00:00
web3 Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
.env.example Extract prisma to it's own package (#1823) 2022-02-15 13:30:52 -07:00
.eslintignore Fixes for lint 2022-02-10 14:22:45 -07:00
.gitignore Unignores .env.example (#1800) 2022-02-10 19:54:55 -07:00
.nvmrc Re-adds .nvmrc 2022-02-10 14:22:45 -07:00
calendso.yaml Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
environment.d.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
jest.config.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
next-env.d.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
next-i18next.config.js Eslint fixes (#1898) 2022-02-18 16:53:45 +00:00
next.config.js Add ui package for reusable components (#1916) 2022-02-21 09:41:25 -07:00
package.json Add ui package for reusable components (#1916) 2022-02-21 09:41:25 -07:00
postcss.config.js Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
project.toml Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
tailwind.config.js Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
tsconfig.json Extract prisma to it's own package (#1823) 2022-02-15 13:30:52 -07:00
yarn.lock Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00