fix(admin): rework email template editor (#667043)

Companion to the bot-side fix: defaults now arrive with {placeholders}
instead of baked-in sample values (example.com links).

- inline preview tab (iframe srcDoc) — works on mobile and in Telegram;
  the separate desktop-only preview page and its route are removed
- preview/test render the CURRENT editor content with sample values
- test email: recipient input + detailed backend error messages
- variable chips insert at cursor instead of copying to clipboard
- 'insert default template' button to migrate broken saved overrides
- fa added to language tabs
This commit is contained in:
c0mrade
2026-06-10 22:53:08 +03:00
parent d7f7bc7c17
commit ac75a806d9
8 changed files with 251 additions and 289 deletions

View File

@@ -1414,9 +1414,13 @@
"resetted": "قالب به پیش‌فرض بازگردانده شد",
"testSent": "ایمیل آزمایشی ارسال شد",
"variables": "متغیرهای موجود",
"clickToCopy": "برای کپی کلیک کنید",
"previewDesktopOnly": "پیش‌نمایش فقط در نسخه وب دسکتاپ در دسترس است",
"previewNotAvailable": "پیش‌نمایش در دسترس نیست"
"editorTab": "ویرایشگر",
"previewHint": "پیش‌نمایش ایمیل را با مقادیر نمونه به جای متغیرها نشان می‌دهد.",
"clickToInsert": "برای درج در متن کلیک کنید",
"insertDefault": "درج قالب پیش‌فرض",
"insertDefaultConfirm": "محتوای فعلی با قالب پیش‌فرض جایگزین شود؟",
"testRecipientPlaceholder": "ایمیل گیرنده (پیش‌فرض: ایمیل شما)",
"testHint": "محتوای فعلی ویرایشگر با مقادیر نمونه به جای متغیرها ارسال می‌شود."
},
"wheel": {
"title": "تنظیمات چرخ شانس",