- 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' => 'Indietro',
|
|
|
|
'beta' => 'Beta',
|
|
|
|
'confirm_modal' => [
|
|
'cannot_be_undone' => 'Questa azione non può essere annullata.',
|
|
'type' => 'Digita',
|
|
'to_confirm' => 'per confermare.',
|
|
'copy_to_clipboard' => 'Copia negli appunti',
|
|
'delete_keyword' => 'elimina',
|
|
],
|
|
|
|
'photo_upload' => [
|
|
'upload' => 'Carica',
|
|
'uploading' => 'Caricamento in corso...',
|
|
'remove' => 'Rimuovi foto',
|
|
'hint' => 'Consigliato: immagine quadrata, max 2 MB.',
|
|
'crop_title' => 'Ritaglia immagine',
|
|
'crop_description' => 'Trascina e ingrandisci per inquadrarla.',
|
|
'crop_hint' => 'Trascina per riposizionare',
|
|
'crop_save' => 'Salva',
|
|
'crop_cancel' => 'Annulla',
|
|
'crop_error' => 'Impossibile caricare questa immagine. Prova un altro file.',
|
|
],
|
|
|
|
'timezone' => [
|
|
'select' => 'Seleziona fuso orario',
|
|
'search' => 'Cerca fuso orario...',
|
|
'empty' => 'Nessun fuso orario trovato',
|
|
],
|
|
|
|
'date_picker' => [
|
|
'select' => 'Seleziona data',
|
|
],
|
|
|
|
'date_range_picker' => [
|
|
'placeholder' => 'Scegli un intervallo di date',
|
|
'today' => 'Oggi',
|
|
'yesterday' => 'Ieri',
|
|
'last_7_days' => 'Ultimi 7 giorni',
|
|
'last_30_days' => 'Ultimi 30 giorni',
|
|
'last_3_months' => 'Ultimi 3 mesi',
|
|
'last_6_months' => 'Ultimi 6 mesi',
|
|
'last_12_months' => 'Ultimi 12 mesi',
|
|
'this_month' => 'Questo mese',
|
|
'last_month' => 'Mese scorso',
|
|
'year_to_date' => 'Da inizio anno',
|
|
'last_year' => 'Anno scorso',
|
|
],
|
|
|
|
'cancel' => 'Annulla',
|
|
'clear' => 'Cancella',
|
|
'close' => 'Chiudi',
|
|
'loading_more' => 'Caricamento in corso...',
|
|
|
|
'actions' => [
|
|
'copy' => 'Copia',
|
|
'copied' => 'Copiato',
|
|
'copy_failed' => 'Impossibile copiare negli appunti',
|
|
],
|
|
];
|