feat(i18n): mega-wrap 494 raw RO strings + 269 lang entries + 161 human RU/163 EN
Broad sweep across the whole codebase:
- Blade views (39 files, 315 wraps): tag-text and title/placeholder/alt
attributes wrapped with {{ __() }}. Excludes scripts, styles, @php,
@verbatim, {{ }}, {!! !!}, comments to avoid touching interpolations.
- PHP (54 files, 179 wraps): array 'key' => 'RO value' patterns and
list items with diacritics wrapped with __(). Reverted __() inside
const arrays (PHP disallows non-constant expressions).
- Added 269 new keys to lang/{ru,en}.json (identity fallback for
unknowns → 161 human RU + 163 EN translations added for the most
common enums, stages, roles, statuses, payment methods, vehicle
categories, warehouse, portal, form actions.
Missing translations fall back to RO so the UI never breaks. All 306
tests pass; view cache compiles cleanly.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -69,7 +69,7 @@ class Integrations extends Page
|
||||
'name' => 'Telegram Bot',
|
||||
'icon' => '✈️',
|
||||
'color' => '#229ED9',
|
||||
'description' => 'Primește cereri din canalul Telegram + trimite confirmări automate.',
|
||||
'description' => __('Primește cereri din canalul Telegram + trimite confirmări automate.'),
|
||||
'fields' => [
|
||||
'bot_token' => ['label' => 'Bot Token', 'type' => 'password', 'placeholder' => 'din @BotFather'],
|
||||
'chat_id' => ['label' => 'Channel/Chat ID', 'type' => 'text', 'placeholder' => '@psauto_md'],
|
||||
@@ -79,7 +79,7 @@ class Integrations extends Page
|
||||
'name' => 'WhatsApp Business',
|
||||
'icon' => '💬',
|
||||
'color' => '#25D366',
|
||||
'description' => 'Trimite mesaje template către clienți (programări, confirmări).',
|
||||
'description' => __('Trimite mesaje template către clienți (programări, confirmări).'),
|
||||
'fields' => [
|
||||
'phone_id' => ['label' => 'Phone Number ID', 'type' => 'text'],
|
||||
'token' => ['label' => 'Permanent Access Token', 'type' => 'password'],
|
||||
@@ -99,7 +99,7 @@ class Integrations extends Page
|
||||
'name' => 'Facebook / Instagram Lead Ads',
|
||||
'icon' => '📘',
|
||||
'color' => '#1877F2',
|
||||
'description' => 'Importă lead-uri direct din Lead Ads forms.',
|
||||
'description' => __('Importă lead-uri direct din Lead Ads forms.'),
|
||||
'fields' => [
|
||||
'page_id' => ['label' => 'Page ID', 'type' => 'text'],
|
||||
'access_token' => ['label' => 'Access Token', 'type' => 'password'],
|
||||
@@ -109,7 +109,7 @@ class Integrations extends Page
|
||||
'name' => 'SMS Gateway',
|
||||
'icon' => '📱',
|
||||
'color' => '#6366F1',
|
||||
'description' => 'Trimite SMS-uri prin gateway local (Moldcell/Orange API).',
|
||||
'description' => __('Trimite SMS-uri prin gateway local (Moldcell/Orange API).'),
|
||||
'fields' => [
|
||||
'provider' => ['label' => 'Provider', 'type' => 'text', 'placeholder' => 'moldcell / orange / twilio'],
|
||||
'api_key' => ['label' => 'API Key', 'type' => 'password'],
|
||||
@@ -117,10 +117,10 @@ class Integrations extends Page
|
||||
],
|
||||
],
|
||||
'webhook_in' => [
|
||||
'name' => 'Webhook intrări (formulare site)',
|
||||
'name' => __('Webhook intrări (formulare site)'),
|
||||
'icon' => '🪝',
|
||||
'color' => '#8B5CF6',
|
||||
'description' => 'URL secret pentru POST direct cu lead-uri din site-ul tău.',
|
||||
'description' => __('URL secret pentru POST direct cu lead-uri din site-ul tău.'),
|
||||
'fields' => [
|
||||
'secret' => ['label' => 'Secret token', 'type' => 'text', 'placeholder' => 'random string'],
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user