trypost/resources/js/components/posts/previews
Paulo Castellano 1af705f3fd
Localize calendar date pickers to the active UI locale (#234)
* Localize calendar date pickers to the active UI locale.

Pass the Inertia locale into Reka calendars, translate a11y labels, and use dayjs LL/LLL for DatePicker display text.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Localize remaining dayjs date displays across the UI.

Route list/calendar/preview timestamps through localized LL/LLL helpers so formats follow the active UI locale instead of English or Portuguese-locked patterns.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Use scheduled-or-now timestamps in platform previews.

Drive preview labels from the post schedule when set, localize Discord without dayjs calendar(), and expose a single formatPreviewPostedAt helper.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Fix preview schedule wiring and Discord/Facebook timestamp labels.

Restore hasPickedTime from any saved scheduled_at, keep time on non-today Discord labels, and use a localized just-now fallback for unschedled Facebook previews.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Fix API key expiry day shift and tighten calendar range titles.

Format date-only expiry in UTC calendar days, and use compact dayjs titles for calendar day/week headers.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Replace frontend date source greps with Inertia API key assertions.

Drop the Vue/TS file scanner and assert expiry calendar days through ApiKeyController props instead.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Localize calendar week titles with day-first dayjs formats.

Avoid English month-day order in week headers and chart axis labels so locales like pt-BR keep natural day-first dates.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Split preview timestamp formatting into named platform helpers.

Replace the style-switch formatPreviewPostedAt with clear per-platform helpers so call sites read as formatDiscordPreview / formatXPreview / etc.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-05 21:02:34 -03:00
..
BlueskyPreview.vue Localize calendar date pickers to the active UI locale (#234) 2026-08-05 21:02:34 -03:00
DiscordPreview.vue Localize calendar date pickers to the active UI locale (#234) 2026-08-05 21:02:34 -03:00
FacebookPreview.vue Localize calendar date pickers to the active UI locale (#234) 2026-08-05 21:02:34 -03:00
index.ts feat: Add Bluesky social media integration 2026-01-18 13:33:54 -03:00
InstagramPreview.vue Harden Instagram story image fitting and cover it end to end 2026-07-16 20:09:43 -03:00
LinkCard.vue refactor(posts): return the card display domain from the backend 2026-07-17 16:24:23 -03:00
LinkedInPreview.vue feat(linkedin): support PDF document (carousel) posts 2026-06-24 16:32:27 -03:00
MastodonPreview.vue Localize calendar date pickers to the active UI locale (#234) 2026-08-05 21:02:34 -03:00
PinterestPreview.vue Add optional Pinterest pin title and destination link (#232) 2026-08-05 18:15:50 -03:00
PlatformPreview.vue Localize calendar date pickers to the active UI locale (#234) 2026-08-05 21:02:34 -03:00
PostMediaPreview.vue feat(previews): show full vertical media without cropping 2026-06-29 15:50:24 -03:00
TelegramPreview.vue Soften Telegram preview bubble shadow (drop trypost ink shadow) 2026-06-14 14:07:36 -03:00
ThreadsPreview.vue feat(posts): show link preview card in the X and Threads editors 2026-07-17 14:32:40 -03:00
TikTokPreview.vue Harden Instagram story image fitting and cover it end to end 2026-07-16 20:09:43 -03:00
VerticalMediaCanvas.vue Render the story background as a soft, lightened blur 2026-07-17 10:31:35 -03:00
VideoPreview.vue refactor: introduce VideoPreview component and standardize media handling across post previews 2026-05-08 18:30:11 -03:00
XPreview.vue Localize calendar date pickers to the active UI locale (#234) 2026-08-05 21:02:34 -03:00
YouTubePreview.vue Revert Facebook and YouTube preview refactors (video-only, no feature effect) 2026-07-16 20:51:07 -03:00