- 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.9 KiB
PHP
67 lines
1.9 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
return [
|
|
|
|
'back' => 'Terug',
|
|
|
|
'beta' => 'Bèta',
|
|
|
|
'confirm_modal' => [
|
|
'cannot_be_undone' => 'Dit kan niet ongedaan worden gemaakt.',
|
|
'type' => 'Typ',
|
|
'to_confirm' => 'om te bevestigen.',
|
|
'copy_to_clipboard' => 'Kopiëren naar klembord',
|
|
'delete_keyword' => 'verwijderen',
|
|
],
|
|
|
|
'photo_upload' => [
|
|
'upload' => 'Uploaden',
|
|
'uploading' => 'Uploaden...',
|
|
'remove' => 'Foto verwijderen',
|
|
'hint' => 'Aanbevolen: vierkante afbeelding, max. 2 MB.',
|
|
'crop_title' => 'Afbeelding bijsnijden',
|
|
'crop_description' => 'Sleep en zoom om uit te lijnen.',
|
|
'crop_hint' => 'Sleep om te verplaatsen',
|
|
'crop_save' => 'Opslaan',
|
|
'crop_cancel' => 'Annuleren',
|
|
'crop_error' => 'Kan deze afbeelding niet laden. Probeer een ander bestand.',
|
|
],
|
|
|
|
'timezone' => [
|
|
'select' => 'Tijdzone selecteren',
|
|
'search' => 'Tijdzone zoeken...',
|
|
'empty' => 'Geen tijdzone gevonden',
|
|
],
|
|
|
|
'date_picker' => [
|
|
'select' => 'Datum selecteren',
|
|
],
|
|
|
|
'date_range_picker' => [
|
|
'placeholder' => 'Kies een datumbereik',
|
|
'today' => 'Vandaag',
|
|
'yesterday' => 'Gisteren',
|
|
'last_7_days' => 'Laatste 7 dagen',
|
|
'last_30_days' => 'Laatste 30 dagen',
|
|
'last_3_months' => 'Laatste 3 maanden',
|
|
'last_6_months' => 'Laatste 6 maanden',
|
|
'last_12_months' => 'Laatste 12 maanden',
|
|
'this_month' => 'Deze maand',
|
|
'last_month' => 'Vorige maand',
|
|
'year_to_date' => 'Dit jaar tot nu toe',
|
|
'last_year' => 'Vorig jaar',
|
|
],
|
|
|
|
'cancel' => 'Annuleren',
|
|
'clear' => 'Wissen',
|
|
'close' => 'Sluiten',
|
|
'loading_more' => 'Meer laden...',
|
|
|
|
'actions' => [
|
|
'copy' => 'Kopiëren',
|
|
'copied' => 'Gekopieerd',
|
|
'copy_failed' => 'Kopiëren naar klembord mislukt',
|
|
],
|
|
];
|