Closed lukevella closed 2 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
app | 🔄 Building (Inspect) | Visit Preview | 💬 Add feedback | Sep 14, 2024 4:26pm |
landing | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Sep 14, 2024 4:26pm |
The changes introduce support for British English in the application by adding a new locale configuration in the dayjs.tsx
file and a corresponding language entry in the languages.json
file. The locale configuration specifies that the week starts on Monday and uses a 24-hour time format. The language entry provides a distinct identifier for British English, enhancing the application's localization capabilities.
File | Change Summary |
---|---|
apps/web/src/utils/dayjs.tsx |
Added British English locale ("en-GB") with week start on Monday and 24-hour time format. |
packages/languages/languages.json |
Added language entry for British English ("en-GB": "English (UK)"). |
In fields of green where bunnies play,
British English hops in today! 🐇
With weeks that start on Monday bright,
And time in twenty-four-hour light.
A joyful change, we celebrate,
For language blooms, it's never late! 🌼
apps/web/src/utils/dayjs.tsx (1)
`42-46`: **LGTM!** The code segment correctly adds the "en-GB" locale configuration to the `dayjsLocales` record, supporting British English formatting conventions. The configuration aligns with the PR objective of introducing the "en-gb" locale tailored for users in Great Britain, including support for a 24-hour clock format. The dynamic import of the locale ensures optimal performance by loading the locale data only when needed. The code segment follows the existing pattern and structure of the `dayjsLocales` record.
Adding en-gb locale to 24-hour clock for gb users.
Summary by CodeRabbit