- 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).
67 lines
1.8 KiB
PHP
67 lines
1.8 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
return [
|
|
|
|
'back' => 'Back',
|
|
|
|
'beta' => 'Beta',
|
|
|
|
'confirm_modal' => [
|
|
'cannot_be_undone' => 'This cannot be undone.',
|
|
'type' => 'Type',
|
|
'to_confirm' => 'to confirm.',
|
|
'copy_to_clipboard' => 'Copy to clipboard',
|
|
'delete_keyword' => 'delete',
|
|
],
|
|
|
|
'photo_upload' => [
|
|
'upload' => 'Upload',
|
|
'uploading' => 'Uploading...',
|
|
'remove' => 'Remove photo',
|
|
'hint' => 'Recommended: square image, max 2 MB.',
|
|
'crop_title' => 'Crop image',
|
|
'crop_description' => 'Drag and zoom to frame it.',
|
|
'crop_hint' => 'Drag to reposition',
|
|
'crop_save' => 'Save',
|
|
'crop_cancel' => 'Cancel',
|
|
'crop_error' => 'Couldn\'t load this image. Try another file.',
|
|
],
|
|
|
|
'timezone' => [
|
|
'select' => 'Select timezone',
|
|
'search' => 'Search timezone...',
|
|
'empty' => 'No timezone found',
|
|
],
|
|
|
|
'date_picker' => [
|
|
'select' => 'Select date',
|
|
],
|
|
|
|
'date_range_picker' => [
|
|
'placeholder' => 'Pick a date range',
|
|
'today' => 'Today',
|
|
'yesterday' => 'Yesterday',
|
|
'last_7_days' => 'Last 7 days',
|
|
'last_30_days' => 'Last 30 days',
|
|
'last_3_months' => 'Last 3 months',
|
|
'last_6_months' => 'Last 6 months',
|
|
'last_12_months' => 'Last 12 months',
|
|
'this_month' => 'This month',
|
|
'last_month' => 'Last month',
|
|
'year_to_date' => 'Year to date',
|
|
'last_year' => 'Last year',
|
|
],
|
|
|
|
'cancel' => 'Cancel',
|
|
'clear' => 'Clear',
|
|
'close' => 'Close',
|
|
'loading_more' => 'Loading more...',
|
|
|
|
'actions' => [
|
|
'copy' => 'Copy',
|
|
'copied' => 'Copied',
|
|
'copy_failed' => 'Failed to copy to clipboard',
|
|
],
|
|
];
|