trypost/lang/zh/common.php
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

70 lines
1.9 KiB
PHP

<?php
declare(strict_types=1);
return [
'back' => '返回',
'beta' => '测试版',
'confirm_modal' => [
'cannot_be_undone' => '此操作无法撤销。',
'type' => '输入',
'to_confirm' => '以确认。',
'copy_to_clipboard' => '复制到剪贴板',
'delete_keyword' => '删除',
],
'photo_upload' => [
'upload' => '上传',
'uploading' => '上传中…',
'remove' => '移除照片',
'hint' => '推荐:正方形图片,最大 2 MB。',
'crop_title' => '裁剪图片',
'crop_description' => '选择要保留的区域。',
'crop_hint' => '拖动以移动,拖动边角可调整大小。',
'crop_save' => '保存',
'crop_cancel' => '取消',
'crop_error' => '无法加载此图片。请尝试其他文件。',
],
'timezone' => [
'select' => '选择时区',
'search' => '搜索时区…',
'empty' => '未找到时区',
],
'just_now' => '刚刚',
'date_picker' => [
'label' => '日期选择器',
'select' => '选择日期',
],
'date_range_picker' => [
'placeholder' => '选择日期范围',
'today' => '今天',
'yesterday' => '昨天',
'last_7_days' => '过去 7 天',
'last_30_days' => '过去 30 天',
'last_3_months' => '过去 3 个月',
'last_6_months' => '过去 6 个月',
'last_12_months' => '过去 12 个月',
'this_month' => '本月',
'last_month' => '上月',
'year_to_date' => '今年至今',
'last_year' => '去年',
],
'cancel' => '取消',
'clear' => '清除',
'close' => '关闭',
'loading_more' => '加载更多…',
'actions' => [
'copy' => '复制',
'copied' => '已复制',
'copy_failed' => '复制到剪贴板失败',
],
];