trypost/lang/ja/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
2.1 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' => 'クリップボードへのコピーに失敗しました',
],
];