Spaces:
Running
Running
axeronis commited on
Commit ·
73230b8
1
Parent(s): 94bac89
feat: complete i18n for Playbook page with playbook section (RU/EN/KY)
Browse files
frontend/app/settings/playbook/page.tsx
CHANGED
|
@@ -27,6 +27,7 @@ import {
|
|
| 27 |
} from 'lucide-react'
|
| 28 |
import { motion, AnimatePresence, Reorder, useDragControls } from 'framer-motion'
|
| 29 |
import { cn } from '@/lib/utils'
|
|
|
|
| 30 |
|
| 31 |
interface SalesStage {
|
| 32 |
id: string
|
|
@@ -141,6 +142,7 @@ export default function PlaybookEditorPage() {
|
|
| 141 |
const { user } = useAuth()
|
| 142 |
const toast = useToast()
|
| 143 |
const queryClient = useQueryClient()
|
|
|
|
| 144 |
|
| 145 |
const [selectedStage, setSelectedStage] = useState<SalesStage | null>(null)
|
| 146 |
const [saving, setSaving] = useState(false)
|
|
@@ -200,39 +202,39 @@ export default function PlaybookEditorPage() {
|
|
| 200 |
try {
|
| 201 |
await playbookApi.updateStage(selectedStage.id, formData)
|
| 202 |
queryClient.invalidateQueries({ queryKey: ['playbook-stages'] })
|
| 203 |
-
toast.success('
|
| 204 |
} catch (error: any) {
|
| 205 |
-
toast.error('
|
| 206 |
} finally {
|
| 207 |
setSaving(false)
|
| 208 |
}
|
| 209 |
}
|
| 210 |
|
| 211 |
const handleAddStage = async () => {
|
| 212 |
-
const name = prompt('
|
| 213 |
if (!name) return
|
| 214 |
try {
|
| 215 |
await playbookApi.createStage({
|
| 216 |
name,
|
| 217 |
-
ai_goal: '
|
| 218 |
exit_criteria: []
|
| 219 |
})
|
| 220 |
queryClient.invalidateQueries({ queryKey: ['playbook-stages'] })
|
| 221 |
-
toast.success('
|
| 222 |
} catch (error: any) {
|
| 223 |
-
toast.error('
|
| 224 |
}
|
| 225 |
}
|
| 226 |
|
| 227 |
const handleDelete = async (stageId: string) => {
|
| 228 |
-
if (!confirm('
|
| 229 |
try {
|
| 230 |
await playbookApi.deleteStage(stageId)
|
| 231 |
queryClient.invalidateQueries({ queryKey: ['playbook-stages'] })
|
| 232 |
if (selectedStage?.id === stageId) setSelectedStage(null)
|
| 233 |
-
toast.success('
|
| 234 |
} catch (error: any) {
|
| 235 |
-
toast.error('
|
| 236 |
}
|
| 237 |
}
|
| 238 |
|
|
@@ -252,9 +254,9 @@ export default function PlaybookEditorPage() {
|
|
| 252 |
await playbookApi.applyTemplate(templateId)
|
| 253 |
queryClient.invalidateQueries({ queryKey: ['playbook-stages'] })
|
| 254 |
setShowTemplateModal(false)
|
| 255 |
-
toast.success('
|
| 256 |
} catch (error: any) {
|
| 257 |
-
toast.error('
|
| 258 |
}
|
| 259 |
}
|
| 260 |
|
|
@@ -284,10 +286,10 @@ export default function PlaybookEditorPage() {
|
|
| 284 |
animate={{ opacity: 1, y: 0 }}
|
| 285 |
className="mb-8"
|
| 286 |
>
|
| 287 |
-
<h1 className="text-3xl font-bold text-white mb-2">
|
| 288 |
<p className="text-slate-400 flex items-center gap-2">
|
| 289 |
<Sparkles className="w-4 h-4 text-indigo-400" />
|
| 290 |
-
|
| 291 |
</p>
|
| 292 |
</motion.div>
|
| 293 |
|
|
@@ -303,20 +305,20 @@ export default function PlaybookEditorPage() {
|
|
| 303 |
<div className="p-5 border-b border-white/10 flex items-center justify-between">
|
| 304 |
<h2 className="text-lg font-bold text-white flex items-center gap-2">
|
| 305 |
<GripVertical className="w-5 h-5 text-indigo-400" />
|
| 306 |
-
|
| 307 |
</h2>
|
| 308 |
<div className="flex items-center gap-2">
|
| 309 |
<button
|
| 310 |
onClick={() => setShowTemplateModal(true)}
|
| 311 |
className="p-2 text-slate-400 hover:text-indigo-400 hover:bg-white/5 rounded-lg transition-all"
|
| 312 |
-
title=
|
| 313 |
>
|
| 314 |
<FolderOpen className="w-5 h-5" />
|
| 315 |
</button>
|
| 316 |
<button
|
| 317 |
onClick={handleAddStage}
|
| 318 |
className="p-2 text-white bg-indigo-600 hover:bg-indigo-500 rounded-lg transition-all"
|
| 319 |
-
title=
|
| 320 |
>
|
| 321 |
<Plus className="w-5 h-5" />
|
| 322 |
</button>
|
|
@@ -348,13 +350,13 @@ export default function PlaybookEditorPage() {
|
|
| 348 |
<div className="w-12 h-12 bg-white/5 rounded-full flex items-center justify-center mx-auto mb-3">
|
| 349 |
<Target className="w-6 h-6 text-slate-500" />
|
| 350 |
</div>
|
| 351 |
-
<h3 className="font-semibold text-white text-sm mb-1">
|
| 352 |
-
<p className="text-xs text-slate-500 mb-4">
|
| 353 |
<button
|
| 354 |
onClick={handleAddStage}
|
| 355 |
className="text-sm text-indigo-400 font-medium hover:underline"
|
| 356 |
>
|
| 357 |
-
|
| 358 |
</button>
|
| 359 |
</div>
|
| 360 |
)}
|
|
@@ -383,14 +385,14 @@ export default function PlaybookEditorPage() {
|
|
| 383 |
<div className="p-2 bg-indigo-500/20 rounded-lg">
|
| 384 |
<Edit3 className="w-5 h-5 text-indigo-400" />
|
| 385 |
</div>
|
| 386 |
-
<h2 className="text-lg font-bold text-white">
|
| 387 |
</div>
|
| 388 |
<button
|
| 389 |
onClick={() => handleDelete(selectedStage.id)}
|
| 390 |
className="flex items-center gap-2 text-sm text-red-400 hover:text-red-300 hover:bg-red-500/10 font-medium px-3 py-2 rounded-lg transition-all"
|
| 391 |
>
|
| 392 |
<Trash2 className="w-4 h-4" />
|
| 393 |
-
|
| 394 |
</button>
|
| 395 |
</div>
|
| 396 |
|
|
@@ -399,7 +401,7 @@ export default function PlaybookEditorPage() {
|
|
| 399 |
<div className="space-y-4">
|
| 400 |
<div>
|
| 401 |
<label className="block text-sm font-medium text-slate-400 mb-2">
|
| 402 |
-
|
| 403 |
</label>
|
| 404 |
<input
|
| 405 |
type="text"
|
|
@@ -412,7 +414,7 @@ export default function PlaybookEditorPage() {
|
|
| 412 |
|
| 413 |
<div>
|
| 414 |
<label className="block text-sm font-medium text-slate-400 mb-2">
|
| 415 |
-
|
| 416 |
</label>
|
| 417 |
<input
|
| 418 |
type="text"
|
|
@@ -428,7 +430,7 @@ export default function PlaybookEditorPage() {
|
|
| 428 |
<div className="p-5 bg-indigo-500/10 rounded-xl border border-indigo-500/20">
|
| 429 |
<label className="block text-sm font-medium text-indigo-300 mb-3 flex items-center gap-2">
|
| 430 |
<Sparkles className="w-4 h-4" />
|
| 431 |
-
|
| 432 |
</label>
|
| 433 |
<textarea
|
| 434 |
value={formData.ai_goal}
|
|
@@ -449,7 +451,7 @@ export default function PlaybookEditorPage() {
|
|
| 449 |
<div>
|
| 450 |
<label className="block text-sm font-medium text-white mb-4 flex items-center gap-2">
|
| 451 |
<CheckCircle2 className="w-5 h-5 text-emerald-500" />
|
| 452 |
-
|
| 453 |
</label>
|
| 454 |
|
| 455 |
<div className="grid grid-cols-1 sm:grid-cols-2 gap-3">
|
|
@@ -493,7 +495,7 @@ export default function PlaybookEditorPage() {
|
|
| 493 |
<div className="mt-4 p-4 bg-amber-500/10 border border-amber-500/20 rounded-xl flex items-start gap-3">
|
| 494 |
<AlertCircle className="w-5 h-5 text-amber-400 flex-shrink-0" />
|
| 495 |
<p className="text-sm text-amber-300">
|
| 496 |
-
|
| 497 |
</p>
|
| 498 |
</div>
|
| 499 |
)}
|
|
@@ -507,9 +509,9 @@ export default function PlaybookEditorPage() {
|
|
| 507 |
className="w-full flex items-center justify-center gap-2 px-6 py-4 bg-indigo-600 hover:bg-indigo-500 text-white font-bold rounded-xl transition-all disabled:opacity-50 disabled:cursor-not-allowed"
|
| 508 |
>
|
| 509 |
{saving ? (
|
| 510 |
-
<><Loader2 className="w-5 h-5 animate-spin" />
|
| 511 |
) : (
|
| 512 |
-
<><Save className="w-5 h-5" />
|
| 513 |
)}
|
| 514 |
</button>
|
| 515 |
</div>
|
|
@@ -524,9 +526,9 @@ export default function PlaybookEditorPage() {
|
|
| 524 |
<div className="w-20 h-20 bg-white/5 rounded-full flex items-center justify-center mb-6">
|
| 525 |
<Target className="w-10 h-10 text-slate-500" />
|
| 526 |
</div>
|
| 527 |
-
<h3 className="text-xl font-bold text-white mb-2">
|
| 528 |
<p className="text-slate-500 max-w-xs mx-auto">
|
| 529 |
-
|
| 530 |
</p>
|
| 531 |
</motion.div>
|
| 532 |
)}
|
|
@@ -556,8 +558,8 @@ export default function PlaybookEditorPage() {
|
|
| 556 |
<FolderOpen className="w-6 h-6 text-white" />
|
| 557 |
</div>
|
| 558 |
<div>
|
| 559 |
-
<h2 className="text-xl font-bold text-white">
|
| 560 |
-
<p className="text-indigo-200 text-sm">
|
| 561 |
</div>
|
| 562 |
</div>
|
| 563 |
<button
|
|
@@ -587,7 +589,7 @@ export default function PlaybookEditorPage() {
|
|
| 587 |
{template.name}
|
| 588 |
</h3>
|
| 589 |
<p className="text-xs text-slate-500 group-hover:text-indigo-400 transition-colors">
|
| 590 |
-
|
| 591 |
</p>
|
| 592 |
</div>
|
| 593 |
</div>
|
|
@@ -599,9 +601,9 @@ export default function PlaybookEditorPage() {
|
|
| 599 |
<div className="mt-6 p-4 bg-amber-500/10 border border-amber-500/20 rounded-xl flex items-start gap-3">
|
| 600 |
<AlertCircle className="w-5 h-5 text-amber-400 flex-shrink-0 mt-0.5" />
|
| 601 |
<div>
|
| 602 |
-
<p className="text-sm font-bold text-amber-300 mb-1">
|
| 603 |
<p className="text-sm text-amber-400/80">
|
| 604 |
-
|
| 605 |
</p>
|
| 606 |
</div>
|
| 607 |
</div>
|
|
|
|
| 27 |
} from 'lucide-react'
|
| 28 |
import { motion, AnimatePresence, Reorder, useDragControls } from 'framer-motion'
|
| 29 |
import { cn } from '@/lib/utils'
|
| 30 |
+
import { useTranslation } from '@/lib/i18n'
|
| 31 |
|
| 32 |
interface SalesStage {
|
| 33 |
id: string
|
|
|
|
| 142 |
const { user } = useAuth()
|
| 143 |
const toast = useToast()
|
| 144 |
const queryClient = useQueryClient()
|
| 145 |
+
const { t } = useTranslation()
|
| 146 |
|
| 147 |
const [selectedStage, setSelectedStage] = useState<SalesStage | null>(null)
|
| 148 |
const [saving, setSaving] = useState(false)
|
|
|
|
| 202 |
try {
|
| 203 |
await playbookApi.updateStage(selectedStage.id, formData)
|
| 204 |
queryClient.invalidateQueries({ queryKey: ['playbook-stages'] })
|
| 205 |
+
toast.success(t('common.success'), t('playbook.stageSaved'))
|
| 206 |
} catch (error: any) {
|
| 207 |
+
toast.error(t('common.error'), error.response?.data?.detail || t('playbook.failedToSave'))
|
| 208 |
} finally {
|
| 209 |
setSaving(false)
|
| 210 |
}
|
| 211 |
}
|
| 212 |
|
| 213 |
const handleAddStage = async () => {
|
| 214 |
+
const name = prompt(t('playbook.enterStageName'), t('playbook.newStage'))
|
| 215 |
if (!name) return
|
| 216 |
try {
|
| 217 |
await playbookApi.createStage({
|
| 218 |
name,
|
| 219 |
+
ai_goal: t('playbook.defineGoal'),
|
| 220 |
exit_criteria: []
|
| 221 |
})
|
| 222 |
queryClient.invalidateQueries({ queryKey: ['playbook-stages'] })
|
| 223 |
+
toast.success(t('common.success'), t('playbook.stageCreated'))
|
| 224 |
} catch (error: any) {
|
| 225 |
+
toast.error(t('common.error'), error.response?.data?.detail || t('playbook.failedToCreate'))
|
| 226 |
}
|
| 227 |
}
|
| 228 |
|
| 229 |
const handleDelete = async (stageId: string) => {
|
| 230 |
+
if (!confirm(t('playbook.deleteStageConfirm'))) return
|
| 231 |
try {
|
| 232 |
await playbookApi.deleteStage(stageId)
|
| 233 |
queryClient.invalidateQueries({ queryKey: ['playbook-stages'] })
|
| 234 |
if (selectedStage?.id === stageId) setSelectedStage(null)
|
| 235 |
+
toast.success(t('common.success'), t('playbook.stageDeleted'))
|
| 236 |
} catch (error: any) {
|
| 237 |
+
toast.error(t('common.error'), error.response?.data?.detail || t('playbook.failedToDelete'))
|
| 238 |
}
|
| 239 |
}
|
| 240 |
|
|
|
|
| 254 |
await playbookApi.applyTemplate(templateId)
|
| 255 |
queryClient.invalidateQueries({ queryKey: ['playbook-stages'] })
|
| 256 |
setShowTemplateModal(false)
|
| 257 |
+
toast.success(t('common.success'), t('playbook.templateLoaded'))
|
| 258 |
} catch (error: any) {
|
| 259 |
+
toast.error(t('common.error'), error.response?.data?.detail || t('playbook.failedToLoad'))
|
| 260 |
}
|
| 261 |
}
|
| 262 |
|
|
|
|
| 286 |
animate={{ opacity: 1, y: 0 }}
|
| 287 |
className="mb-8"
|
| 288 |
>
|
| 289 |
+
<h1 className="text-3xl font-bold text-white mb-2">{t('playbook.title')}</h1>
|
| 290 |
<p className="text-slate-400 flex items-center gap-2">
|
| 291 |
<Sparkles className="w-4 h-4 text-indigo-400" />
|
| 292 |
+
{t('playbook.subtitle')}
|
| 293 |
</p>
|
| 294 |
</motion.div>
|
| 295 |
|
|
|
|
| 305 |
<div className="p-5 border-b border-white/10 flex items-center justify-between">
|
| 306 |
<h2 className="text-lg font-bold text-white flex items-center gap-2">
|
| 307 |
<GripVertical className="w-5 h-5 text-indigo-400" />
|
| 308 |
+
{t('playbook.funnelStages')}
|
| 309 |
</h2>
|
| 310 |
<div className="flex items-center gap-2">
|
| 311 |
<button
|
| 312 |
onClick={() => setShowTemplateModal(true)}
|
| 313 |
className="p-2 text-slate-400 hover:text-indigo-400 hover:bg-white/5 rounded-lg transition-all"
|
| 314 |
+
title={t('playbook.loadTemplate')}
|
| 315 |
>
|
| 316 |
<FolderOpen className="w-5 h-5" />
|
| 317 |
</button>
|
| 318 |
<button
|
| 319 |
onClick={handleAddStage}
|
| 320 |
className="p-2 text-white bg-indigo-600 hover:bg-indigo-500 rounded-lg transition-all"
|
| 321 |
+
title={t('playbook.addStage')}
|
| 322 |
>
|
| 323 |
<Plus className="w-5 h-5" />
|
| 324 |
</button>
|
|
|
|
| 350 |
<div className="w-12 h-12 bg-white/5 rounded-full flex items-center justify-center mx-auto mb-3">
|
| 351 |
<Target className="w-6 h-6 text-slate-500" />
|
| 352 |
</div>
|
| 353 |
+
<h3 className="font-semibold text-white text-sm mb-1">{t('playbook.noStages')}</h3>
|
| 354 |
+
<p className="text-xs text-slate-500 mb-4">{t('playbook.createFirstStage')}</p>
|
| 355 |
<button
|
| 356 |
onClick={handleAddStage}
|
| 357 |
className="text-sm text-indigo-400 font-medium hover:underline"
|
| 358 |
>
|
| 359 |
+
{t('playbook.createStage')}
|
| 360 |
</button>
|
| 361 |
</div>
|
| 362 |
)}
|
|
|
|
| 385 |
<div className="p-2 bg-indigo-500/20 rounded-lg">
|
| 386 |
<Edit3 className="w-5 h-5 text-indigo-400" />
|
| 387 |
</div>
|
| 388 |
+
<h2 className="text-lg font-bold text-white">{t('playbook.editStage')}</h2>
|
| 389 |
</div>
|
| 390 |
<button
|
| 391 |
onClick={() => handleDelete(selectedStage.id)}
|
| 392 |
className="flex items-center gap-2 text-sm text-red-400 hover:text-red-300 hover:bg-red-500/10 font-medium px-3 py-2 rounded-lg transition-all"
|
| 393 |
>
|
| 394 |
<Trash2 className="w-4 h-4" />
|
| 395 |
+
{t('common.delete')}
|
| 396 |
</button>
|
| 397 |
</div>
|
| 398 |
|
|
|
|
| 401 |
<div className="space-y-4">
|
| 402 |
<div>
|
| 403 |
<label className="block text-sm font-medium text-slate-400 mb-2">
|
| 404 |
+
{t('playbook.stageName')}
|
| 405 |
</label>
|
| 406 |
<input
|
| 407 |
type="text"
|
|
|
|
| 414 |
|
| 415 |
<div>
|
| 416 |
<label className="block text-sm font-medium text-slate-400 mb-2">
|
| 417 |
+
{t('playbook.description')} <span className="text-slate-600">({t('common.optional')})</span>
|
| 418 |
</label>
|
| 419 |
<input
|
| 420 |
type="text"
|
|
|
|
| 430 |
<div className="p-5 bg-indigo-500/10 rounded-xl border border-indigo-500/20">
|
| 431 |
<label className="block text-sm font-medium text-indigo-300 mb-3 flex items-center gap-2">
|
| 432 |
<Sparkles className="w-4 h-4" />
|
| 433 |
+
{t('playbook.aiGoal')}
|
| 434 |
</label>
|
| 435 |
<textarea
|
| 436 |
value={formData.ai_goal}
|
|
|
|
| 451 |
<div>
|
| 452 |
<label className="block text-sm font-medium text-white mb-4 flex items-center gap-2">
|
| 453 |
<CheckCircle2 className="w-5 h-5 text-emerald-500" />
|
| 454 |
+
{t('playbook.exitCriteria')}
|
| 455 |
</label>
|
| 456 |
|
| 457 |
<div className="grid grid-cols-1 sm:grid-cols-2 gap-3">
|
|
|
|
| 495 |
<div className="mt-4 p-4 bg-amber-500/10 border border-amber-500/20 rounded-xl flex items-start gap-3">
|
| 496 |
<AlertCircle className="w-5 h-5 text-amber-400 flex-shrink-0" />
|
| 497 |
<p className="text-sm text-amber-300">
|
| 498 |
+
{t('playbook.noCriteriaWarning')}
|
| 499 |
</p>
|
| 500 |
</div>
|
| 501 |
)}
|
|
|
|
| 509 |
className="w-full flex items-center justify-center gap-2 px-6 py-4 bg-indigo-600 hover:bg-indigo-500 text-white font-bold rounded-xl transition-all disabled:opacity-50 disabled:cursor-not-allowed"
|
| 510 |
>
|
| 511 |
{saving ? (
|
| 512 |
+
<><Loader2 className="w-5 h-5 animate-spin" /> {t('common.saving')}</>
|
| 513 |
) : (
|
| 514 |
+
<><Save className="w-5 h-5" /> {t('playbook.saveChanges')}</>
|
| 515 |
)}
|
| 516 |
</button>
|
| 517 |
</div>
|
|
|
|
| 526 |
<div className="w-20 h-20 bg-white/5 rounded-full flex items-center justify-center mb-6">
|
| 527 |
<Target className="w-10 h-10 text-slate-500" />
|
| 528 |
</div>
|
| 529 |
+
<h3 className="text-xl font-bold text-white mb-2">{t('playbook.noStageSelected')}</h3>
|
| 530 |
<p className="text-slate-500 max-w-xs mx-auto">
|
| 531 |
+
{t('playbook.selectStageHint')}
|
| 532 |
</p>
|
| 533 |
</motion.div>
|
| 534 |
)}
|
|
|
|
| 558 |
<FolderOpen className="w-6 h-6 text-white" />
|
| 559 |
</div>
|
| 560 |
<div>
|
| 561 |
+
<h2 className="text-xl font-bold text-white">{t('playbook.funnelTemplates')}</h2>
|
| 562 |
+
<p className="text-indigo-200 text-sm">{t('playbook.selectReadyScenario')}</p>
|
| 563 |
</div>
|
| 564 |
</div>
|
| 565 |
<button
|
|
|
|
| 589 |
{template.name}
|
| 590 |
</h3>
|
| 591 |
<p className="text-xs text-slate-500 group-hover:text-indigo-400 transition-colors">
|
| 592 |
+
{t('playbook.clickToLoad')}
|
| 593 |
</p>
|
| 594 |
</div>
|
| 595 |
</div>
|
|
|
|
| 601 |
<div className="mt-6 p-4 bg-amber-500/10 border border-amber-500/20 rounded-xl flex items-start gap-3">
|
| 602 |
<AlertCircle className="w-5 h-5 text-amber-400 flex-shrink-0 mt-0.5" />
|
| 603 |
<div>
|
| 604 |
+
<p className="text-sm font-bold text-amber-300 mb-1">{t('common.warning')}</p>
|
| 605 |
<p className="text-sm text-amber-400/80">
|
| 606 |
+
{t('playbook.templateWarning')}
|
| 607 |
</p>
|
| 608 |
</div>
|
| 609 |
</div>
|
frontend/lib/i18n/translations/en.ts
CHANGED
|
@@ -40,6 +40,8 @@ export const en = {
|
|
| 40 |
copied: 'Copied',
|
| 41 |
saving: 'Saving...',
|
| 42 |
unknown: 'Unknown',
|
|
|
|
|
|
|
| 43 |
},
|
| 44 |
|
| 45 |
// Header
|
|
@@ -434,6 +436,43 @@ export const en = {
|
|
| 434 |
deployChatterboxFirst: 'Deploy Chatterbox service first.',
|
| 435 |
},
|
| 436 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 437 |
// ClientCard - Lead Summary
|
| 438 |
clientCard: {
|
| 439 |
chatSummary: 'Chat Summary',
|
|
|
|
| 40 |
copied: 'Copied',
|
| 41 |
saving: 'Saving...',
|
| 42 |
unknown: 'Unknown',
|
| 43 |
+
warning: 'Warning',
|
| 44 |
+
optional: 'optional',
|
| 45 |
},
|
| 46 |
|
| 47 |
// Header
|
|
|
|
| 436 |
deployChatterboxFirst: 'Deploy Chatterbox service first.',
|
| 437 |
},
|
| 438 |
|
| 439 |
+
// Playbook / Funnel Settings
|
| 440 |
+
playbook: {
|
| 441 |
+
title: 'Funnel Setup',
|
| 442 |
+
subtitle: 'Configure sales stages and AI goals',
|
| 443 |
+
funnelStages: 'Funnel Stages',
|
| 444 |
+
loadTemplate: 'Load Template',
|
| 445 |
+
addStage: 'Add Stage',
|
| 446 |
+
noStages: 'No stages',
|
| 447 |
+
createFirstStage: 'Create your first funnel stage',
|
| 448 |
+
createStage: 'Create Stage',
|
| 449 |
+
editStage: 'Edit Stage',
|
| 450 |
+
stageName: 'Stage Name',
|
| 451 |
+
description: 'Description',
|
| 452 |
+
aiGoal: 'AI Goal for this stage',
|
| 453 |
+
exitCriteria: 'Exit Criteria',
|
| 454 |
+
noCriteriaWarning: 'No criteria selected. Stage will be marked as complete automatically.',
|
| 455 |
+
saveChanges: 'Save Changes',
|
| 456 |
+
noStageSelected: 'No stage selected',
|
| 457 |
+
selectStageHint: 'Select a stage from the list to configure its settings and AI goals',
|
| 458 |
+
funnelTemplates: 'Funnel Templates',
|
| 459 |
+
selectReadyScenario: 'Select a ready scenario',
|
| 460 |
+
clickToLoad: 'Click to load',
|
| 461 |
+
templateWarning: 'Loading a template will replace all existing funnel stages.',
|
| 462 |
+
enterStageName: 'Enter stage name:',
|
| 463 |
+
newStage: 'New Stage',
|
| 464 |
+
defineGoal: 'Define the goal for this stage...',
|
| 465 |
+
stageSaved: 'Stage saved',
|
| 466 |
+
stageCreated: 'Stage created',
|
| 467 |
+
stageDeleted: 'Stage deleted',
|
| 468 |
+
templateLoaded: 'Template loaded',
|
| 469 |
+
failedToSave: 'Failed to save',
|
| 470 |
+
failedToCreate: 'Failed to create',
|
| 471 |
+
failedToDelete: 'Failed to delete',
|
| 472 |
+
failedToLoad: 'Failed to load',
|
| 473 |
+
deleteStageConfirm: 'Delete this stage?',
|
| 474 |
+
},
|
| 475 |
+
|
| 476 |
// ClientCard - Lead Summary
|
| 477 |
clientCard: {
|
| 478 |
chatSummary: 'Chat Summary',
|
frontend/lib/i18n/translations/ky.ts
CHANGED
|
@@ -40,6 +40,8 @@ export const ky = {
|
|
| 40 |
copied: 'Көчүрүлдү',
|
| 41 |
saving: 'Сактоо...',
|
| 42 |
unknown: 'Белгисиз',
|
|
|
|
|
|
|
| 43 |
},
|
| 44 |
|
| 45 |
// Header
|
|
@@ -434,6 +436,43 @@ export const ky = {
|
|
| 434 |
deployChatterboxFirst: 'Алгач Chatterbox кызматын жайгаштырыңыз.',
|
| 435 |
},
|
| 436 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 437 |
// ClientCard - Lead Summary
|
| 438 |
clientCard: {
|
| 439 |
chatSummary: 'Чат жыйынтыгы',
|
|
|
|
| 40 |
copied: 'Көчүрүлдү',
|
| 41 |
saving: 'Сактоо...',
|
| 42 |
unknown: 'Белгисиз',
|
| 43 |
+
warning: 'Эскертүү',
|
| 44 |
+
optional: 'кошумча',
|
| 45 |
},
|
| 46 |
|
| 47 |
// Header
|
|
|
|
| 436 |
deployChatterboxFirst: 'Алгач Chatterbox кызматын жайгаштырыңыз.',
|
| 437 |
},
|
| 438 |
|
| 439 |
+
// Playbook / Funnel Settings
|
| 440 |
+
playbook: {
|
| 441 |
+
title: 'Воронканы жөндөө',
|
| 442 |
+
subtitle: 'Сатуу этаптарын жана AI максаттарын жөндөңүз',
|
| 443 |
+
funnelStages: 'Воронка этаптары',
|
| 444 |
+
loadTemplate: 'Шаблон жүктөө',
|
| 445 |
+
addStage: 'Этап кошуу',
|
| 446 |
+
noStages: 'Этаптар жок',
|
| 447 |
+
createFirstStage: 'Биринчи воронка этабын түзүңүз',
|
| 448 |
+
createStage: 'Этап түзүү',
|
| 449 |
+
editStage: 'Этапты редакциялоо',
|
| 450 |
+
stageName: 'Этап аты',
|
| 451 |
+
description: 'Сүрөттөмө',
|
| 452 |
+
aiGoal: 'Бул этап үчүн AI максаты',
|
| 453 |
+
exitCriteria: 'Аяктоо критерийлери',
|
| 454 |
+
noCriteriaWarning: 'Критерий тандалган эмес. Этап автоматтык түрдө аякталган деп белгиленет.',
|
| 455 |
+
saveChanges: 'Өзгөртүүлөрдү сактоо',
|
| 456 |
+
noStageSelected: 'Этап тандалган эмес',
|
| 457 |
+
selectStageHint: 'Параметрлерин жана AI максаттарын жөндөө үчүн тизмеден этап тандаңыз',
|
| 458 |
+
funnelTemplates: 'Воронка шаблондору',
|
| 459 |
+
selectReadyScenario: 'Даяр сценарий тандаңыз',
|
| 460 |
+
clickToLoad: 'Жүктөө үчүн басыңыз',
|
| 461 |
+
templateWarning: 'Шаблон жүктөө бардык учурдагы воронка этаптарын алмаштырат.',
|
| 462 |
+
enterStageName: 'Этап атын киргизиңиз:',
|
| 463 |
+
newStage: 'Жаңы этап',
|
| 464 |
+
defineGoal: 'Бул этап үчүн максатты аныктаңыз...',
|
| 465 |
+
stageSaved: 'Этап сакталды',
|
| 466 |
+
stageCreated: 'Этап түзүлдү',
|
| 467 |
+
stageDeleted: 'Этап өчүрүлдү',
|
| 468 |
+
templateLoaded: 'Шаблон жүктөлдү',
|
| 469 |
+
failedToSave: 'Сактоо мүмкүн эмес',
|
| 470 |
+
failedToCreate: 'Түзүү мүмкүн эмес',
|
| 471 |
+
failedToDelete: 'Өчүрүү мүмкүн эмес',
|
| 472 |
+
failedToLoad: 'Жүктөө мүмкүн эмес',
|
| 473 |
+
deleteStageConfirm: 'Бул этапты өчүрөсүзбү?',
|
| 474 |
+
},
|
| 475 |
+
|
| 476 |
// ClientCard - Lead Summary
|
| 477 |
clientCard: {
|
| 478 |
chatSummary: 'Чат жыйынтыгы',
|
frontend/lib/i18n/translations/ru.ts
CHANGED
|
@@ -11,7 +11,7 @@ export const ru = {
|
|
| 11 |
close: 'Закрыть',
|
| 12 |
loading: 'Загрузка...',
|
| 13 |
error: 'Ошибка',
|
| 14 |
-
success: 'Успе
|
| 15 |
confirm: 'Подтвердить',
|
| 16 |
back: 'Назад',
|
| 17 |
next: 'Далее',
|
|
@@ -40,6 +40,8 @@ export const ru = {
|
|
| 40 |
copied: 'Скопировано',
|
| 41 |
saving: 'Сохранение...',
|
| 42 |
unknown: 'Неизвестно',
|
|
|
|
|
|
|
| 43 |
},
|
| 44 |
|
| 45 |
// Header
|
|
@@ -434,6 +436,43 @@ export const ru = {
|
|
| 434 |
deployChatterboxFirst: 'Сначала разверните Chatterbox сервис.',
|
| 435 |
},
|
| 436 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 437 |
// ClientCard - Lead Summary
|
| 438 |
clientCard: {
|
| 439 |
chatSummary: 'Саммари чата',
|
|
|
|
| 11 |
close: 'Закрыть',
|
| 12 |
loading: 'Загрузка...',
|
| 13 |
error: 'Ошибка',
|
| 14 |
+
success: 'Успех!',
|
| 15 |
confirm: 'Подтвердить',
|
| 16 |
back: 'Назад',
|
| 17 |
next: 'Далее',
|
|
|
|
| 40 |
copied: 'Скопировано',
|
| 41 |
saving: 'Сохранение...',
|
| 42 |
unknown: 'Неизвестно',
|
| 43 |
+
warning: 'Внимание',
|
| 44 |
+
optional: 'опционально',
|
| 45 |
},
|
| 46 |
|
| 47 |
// Header
|
|
|
|
| 436 |
deployChatterboxFirst: 'Сначала разверните Chatterbox сервис.',
|
| 437 |
},
|
| 438 |
|
| 439 |
+
// Playbook / Funnel Settings
|
| 440 |
+
playbook: {
|
| 441 |
+
title: 'Настройка Воронки',
|
| 442 |
+
subtitle: 'Настройте этапы продаж и цели AI',
|
| 443 |
+
funnelStages: 'Этапы воронки',
|
| 444 |
+
loadTemplate: 'Загрузить шаблон',
|
| 445 |
+
addStage: 'Добавить этап',
|
| 446 |
+
noStages: 'Нет этапов',
|
| 447 |
+
createFirstStage: 'Создайте первый этап воронки',
|
| 448 |
+
createStage: 'Создать этап',
|
| 449 |
+
editStage: 'Редактирование этапа',
|
| 450 |
+
stageName: 'Название этапа',
|
| 451 |
+
description: 'Описание',
|
| 452 |
+
aiGoal: 'Цель AI на этом этапе',
|
| 453 |
+
exitCriteria: 'Критерии завершения',
|
| 454 |
+
noCriteriaWarning: 'Не выбрано ни одного критерия. Этап будет считаться завершённым автоматически.',
|
| 455 |
+
saveChanges: 'Сохранить изменения',
|
| 456 |
+
noStageSelected: 'Этап не выбран',
|
| 457 |
+
selectStageHint: 'Выберите этап из списка слева, чтобы настроить его параметры и цели AI',
|
| 458 |
+
funnelTemplates: 'Шаблоны воронок',
|
| 459 |
+
selectReadyScenario: 'Выберите готовый сценарий',
|
| 460 |
+
clickToLoad: 'Нажмите для загрузки',
|
| 461 |
+
templateWarning: 'Загрузка шаблона заменит все существующие этапы воронки.',
|
| 462 |
+
enterStageName: 'Введите название этапа:',
|
| 463 |
+
newStage: 'Новый этап',
|
| 464 |
+
defineGoal: 'Определите цель для этого этапа...',
|
| 465 |
+
stageSaved: 'Этап сохранён',
|
| 466 |
+
stageCreated: 'Этап создан',
|
| 467 |
+
stageDeleted: 'Этап удалён',
|
| 468 |
+
templateLoaded: 'Шаблон загружен',
|
| 469 |
+
failedToSave: 'Не удалось сохранить',
|
| 470 |
+
failedToCreate: 'Не удалось создать',
|
| 471 |
+
failedToDelete: 'Не удалось удалить',
|
| 472 |
+
failedToLoad: 'Не удалось загрузить',
|
| 473 |
+
deleteStageConfirm: 'Удалить этот этап?',
|
| 474 |
+
},
|
| 475 |
+
|
| 476 |
// ClientCard - Lead Summary
|
| 477 |
clientCard: {
|
| 478 |
chatSummary: 'Саммари чата',
|