Translate the interface into 12 languages
Add full lang/ translations for fr, de, it, nl, pl, el, ja, ko, zh, ru,
tr, and ar — all 23 base files each, with identical key trees to lang/en,
preserved :placeholders and plural forms, and native product terminology.
2026-07-03 18:38:40 +00:00
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
|
|
return [
|
|
|
|
|
|
|
|
|
|
|
|
'back' => 'Назад',
|
|
|
|
|
|
|
|
|
|
|
|
'confirm_modal' => [
|
|
|
|
|
|
'cannot_be_undone' => 'Это действие нельзя отменить.',
|
|
|
|
|
|
'type' => 'Введите',
|
|
|
|
|
|
'to_confirm' => 'для подтверждения.',
|
|
|
|
|
|
'copy_to_clipboard' => 'Копировать в буфер обмена',
|
|
|
|
|
|
'delete_keyword' => 'удалить',
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
|
|
'photo_upload' => [
|
|
|
|
|
|
'upload' => 'Загрузить',
|
|
|
|
|
|
'uploading' => 'Загрузка...',
|
|
|
|
|
|
'remove' => 'Удалить фото',
|
|
|
|
|
|
'hint' => 'Рекомендуется: квадратное изображение, до 2 МБ.',
|
Crop the avatar/logo before upload with a dependency-free cropper
Selecting an avatar or workspace logo now opens a crop dialog (drag + zoom)
before uploading, so the image is framed the way it renders. The crop is
performed client-side and the resized 512x512 result is what gets uploaded.
This reworks the idea from #131 without its cropper dependency: vue-advanced-cropper
was last released ~2 years ago and we did not want an unmaintained package for
something this load-bearing. What we need is narrow (fixed 1:1, a circle/square
mask, fixed-size output), so a small canvas-based cropper covers it:
- imageCrop.ts: pure transform math (cover-fit, clamp, zoom, viewport->source).
- ImageCropperDialog.vue: CSS-transform preview, pointer drag, wheel/button zoom,
a ResizeObserver to measure the modal (no requestAnimationFrame timing hacks),
and a canvas toBlob only on save.
- PhotoUpload.vue: opens the cropper on file select; the mask shape follows the
display shape (round avatar / square logo) instead of always being round.
- crop_* strings added to all 15 locales.
Also installs Pest browser testing (pest-plugin-browser + Playwright) and adds a
browser test for the crop flow. TestCase only calls withoutVite() for non-browser
tests, since browser tests need the real Vite assets to boot the SPA. The Pest
browser server does not parse multipart uploads, so the test asserts the crop
dispatches the correct upload request; endpoint persistence stays covered by
ProfileUpdateTest.
2026-07-04 00:46:19 +00:00
|
|
|
|
'crop_title' => 'Обрезать изображение',
|
2026-07-04 12:56:31 +00:00
|
|
|
|
'crop_description' => 'Выберите область, которую нужно оставить.',
|
|
|
|
|
|
'crop_hint' => 'Перетащите, чтобы переместить, или угол — чтобы изменить размер.',
|
Crop the avatar/logo before upload with a dependency-free cropper
Selecting an avatar or workspace logo now opens a crop dialog (drag + zoom)
before uploading, so the image is framed the way it renders. The crop is
performed client-side and the resized 512x512 result is what gets uploaded.
This reworks the idea from #131 without its cropper dependency: vue-advanced-cropper
was last released ~2 years ago and we did not want an unmaintained package for
something this load-bearing. What we need is narrow (fixed 1:1, a circle/square
mask, fixed-size output), so a small canvas-based cropper covers it:
- imageCrop.ts: pure transform math (cover-fit, clamp, zoom, viewport->source).
- ImageCropperDialog.vue: CSS-transform preview, pointer drag, wheel/button zoom,
a ResizeObserver to measure the modal (no requestAnimationFrame timing hacks),
and a canvas toBlob only on save.
- PhotoUpload.vue: opens the cropper on file select; the mask shape follows the
display shape (round avatar / square logo) instead of always being round.
- crop_* strings added to all 15 locales.
Also installs Pest browser testing (pest-plugin-browser + Playwright) and adds a
browser test for the crop flow. TestCase only calls withoutVite() for non-browser
tests, since browser tests need the real Vite assets to boot the SPA. The Pest
browser server does not parse multipart uploads, so the test asserts the crop
dispatches the correct upload request; endpoint persistence stays covered by
ProfileUpdateTest.
2026-07-04 00:46:19 +00:00
|
|
|
|
'crop_save' => 'Сохранить',
|
|
|
|
|
|
'crop_cancel' => 'Отмена',
|
2026-07-04 01:07:23 +00:00
|
|
|
|
'crop_error' => 'Не удалось загрузить это изображение. Попробуйте другой файл.',
|
Translate the interface into 12 languages
Add full lang/ translations for fr, de, it, nl, pl, el, ja, ko, zh, ru,
tr, and ar — all 23 base files each, with identical key trees to lang/en,
preserved :placeholders and plural forms, and native product terminology.
2026-07-03 18:38:40 +00:00
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
|
|
'timezone' => [
|
|
|
|
|
|
'select' => 'Выберите часовой пояс',
|
|
|
|
|
|
'search' => 'Поиск часового пояса...',
|
|
|
|
|
|
'empty' => 'Часовой пояс не найден',
|
|
|
|
|
|
],
|
|
|
|
|
|
|
2026-08-06 00:02:34 +00:00
|
|
|
|
'just_now' => 'Только что',
|
|
|
|
|
|
|
Translate the interface into 12 languages
Add full lang/ translations for fr, de, it, nl, pl, el, ja, ko, zh, ru,
tr, and ar — all 23 base files each, with identical key trees to lang/en,
preserved :placeholders and plural forms, and native product terminology.
2026-07-03 18:38:40 +00:00
|
|
|
|
'date_picker' => [
|
2026-08-06 00:02:34 +00:00
|
|
|
|
'label' => 'Выбор даты',
|
Translate the interface into 12 languages
Add full lang/ translations for fr, de, it, nl, pl, el, ja, ko, zh, ru,
tr, and ar — all 23 base files each, with identical key trees to lang/en,
preserved :placeholders and plural forms, and native product terminology.
2026-07-03 18:38:40 +00:00
|
|
|
|
'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' => 'Не удалось скопировать в буфер обмена',
|
|
|
|
|
|
],
|
|
|
|
|
|
];
|