trypost/lang/zh/common.php
Paulo Castellano 2549a82e9b Address review: cropper mime/zoom/error fixes, harden browser test
- Output a canvas-encodable mime (jpeg/png/webp, else png) and keep the File's
  name/extension in sync, so non-encodable input (gif/svg/heic) no longer ships
  PNG bytes mislabeled as the original type.
- Clamp zoom to a maximum (8x cover) so scrolling in can't collapse the crop to
  a sub-pixel region.
- Handle undecodable/zero-dimension images (@error + naturalWidth guard) with a
  crop_error message instead of a permanently-disabled Save.
- Replace the str_contains(static::class) Vite heuristic with a dedicated
  BrowserTestCase ($fakesVite = false).
- The browser test now decodes the dispatched blob and asserts a 512x512 image,
  and uses route(..., absolute: false) instead of a hardcoded path.
- Remove tests/Browser/ProbeTest.php (committed debug scratch).
2026-07-03 22:07:23 -03:00

67 lines
1.8 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' => '未找到时区',
],
'date_picker' => [
'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' => '复制到剪贴板失败',
],
];