Open-source social media scheduler built for AI agents and the teams behind them. Create, schedule and publish posts to every network through MCP or the REST API, or write them yourself in a composer your team will love.
PHP ai-agentsblueskyfacebookinstagramlaravellinkedinmastodonmcpmcp-serveropen-sourcerest-apiself-hostedsocial-mediasocial-media-managementsocial-media-schedulerthreadstiktokvuejsxyoutube
feat: replace legacy AI assistant with modular post content generation, review, and template management system
Paulo Castellano1e1519876d10
diff --git a/app/Ai/Agents/BrandAnalyzer.php b/app/Ai/Agents/BrandAnalyzer.phpindex caa1b6408..1d4f39d18 100644--- a/app/Ai/Agents/BrandAnalyzer.php+++ b/app/Ai/Agents/BrandAnalyzer.php@@ -48,11 +48,14 @@ class BrandAnalyzer implements Agent, HasStructuredOutput->description('2-3 sentences of concrete writing guidelines inferred from the site style (e.g. "Use technical but approachable language", "Avoid marketing buzzwords"). Written in the detected content language.')->required(),'brand_color' => $schema->string()- ->description('The primary brand color as a hex string starting with # (e.g. "#0ea5e9"). Pick the most prominent accent color used in CTAs, links, or logos. Return empty string if not confidently identifiable.'),+ ->description('The primary brand color as a hex string starting with # (e.g. "#0ea5e9"). Pick the most prominent accent color used in CTAs, links, or logos. Return empty string if not confidently identifiable.')+ ->required(),'background_color' => $schema->string()- ->description('The dominant page background color as a hex string starting with # (e.g. "#ffffff" or "#0b0f19"). Return empty string if not confidently identifiable.'),+ ->description('The dominant page background color as a hex string starting with # (e.g. "#ffffff" or "#0b0f19"). Return empty string if not confidently identifiable.')+ ->required(),'text_color' => $schema->string()- ->description('The dominant body text color as a hex string starting with # (e.g. "#0f172a"). Return empty string if not confidently identifiable.'),+ ->description('The dominant body text color as a hex string starting with # (e.g. "#0f172a"). Return empty string if not confidently identifiable.')+ ->required(),];}}diff --git a/app/Ai/Agents/Humanizer.php b/app/Ai/Agents/Humanizer.phpdeleted file mode 100644index 32d928de6..000000000--- a/app/Ai/Agents/Humanizer.php+++ /dev/null@@ -1,31 +0,0 @@-<?php--declare(strict_types=1);--namespace App\Ai\Agents;--use Laravel\Ai\Attributes\UseCheapestModel;-use Laravel\Ai\Contracts\Agent;-use Laravel\Ai\Enums\Lab;-use Laravel\Ai\Promptable;--#[UseCheapestModel]-class Humanizer implements Agent-{- use Promptable;-- public function __construct(public string $instructions) {}-- public function instructions(): string- {- return $this->instructions;- }-- public function provider(): Lab- {- return match (config('ai.default')) {- 'openai' => Lab::OpenAI,- default => Lab::Gemini,- };- }-}diff --git a/app/Ai/Agents/PostContentGenerator.php b/app/Ai/Agents/PostContentGenerator.phpnew file mode 100644index 000000000..6617b4ca5--- /dev/null+++ b/app/Ai/Agents/PostContentGenerator.php@@ -0,0 +1,91 @@+<?php++declare(strict_types=1);++namespace App\Ai\Agents;++use App\Models\Workspace;+use App\Services\Ai\TemplateContextResolver;+use Illuminate\Contracts\JsonSchema\JsonSchema;+use Laravel\Ai\Attributes\Temperature;+use Laravel\Ai\Contracts\Agent;+use Laravel\Ai\Contracts\HasStructuredOutput;+use Laravel\Ai\Enums\Lab;+use Laravel\Ai\Promptable;++#[Temperature(0.7)]+class PostContentGenerator implements Agent, HasStructuredOutput+{+ use Promptable;++ public function __construct(+ public Workspace $workspace,+ public ?string $currentContent = null,+ public string $format = 'single',+ public int $slideCount = 1,+ public ?string $platformContext = null,+ ) {}++ public function instructions(): string+ {+ $examples = [];++ if ($this->platformContext !== null) {+ $resolver = app(TemplateContextResolver::class);+ $examples = $resolver->relevantFor($this->platformContext, 2)+ ->map(fn ($t) => [+ 'name' => $t->name,+ 'description' => $t->description,+ 'content' => $t->content,+ 'slides' => $t->slides,+ ])+ ->all();+ }++ return view('prompts.post_content.generator', [+ 'brand_name' => $this->workspace->name ?? '',+ 'brand_description' => $this->workspace->brand_description ?? '',+ 'brand_tone' => $this->workspace->brand_tone ?? '',+ 'brand_voice_notes' => $this->workspace->brand_voice_notes ?? '',+ 'content_language' => $this->workspace->content_language ?? 'en',+ 'current_content' => $this->currentContent,+ 'format' => $this->format,+ 'slide_count' => $this->slideCount,+ 'examples' => $examples,+ ])->render();+ }++ public function schema(JsonSchema $schema): array+ {+ if ($this->format === 'carousel') {+ return [+ 'caption' => $schema->string()->description('The Instagram caption for the carousel post.')->required(),+ 'slides' => $schema->array()+ ->items($schema->object(fn ($s) => [+ 'title' => $s->string()->description('Headline of the slide. Short, impactful.')->required(),+ 'body' => $s->string()->description('Supporting text below the headline. 1-3 sentences.')->required(),+ 'image_keywords' => $s->array()->items($schema->string())->description('2-4 search keywords for Unsplash.')->required(),+ ]))+ ->min($this->slideCount)+ ->max($this->slideCount)+ ->description("Exactly {$this->slideCount} slides for the carousel, in order.")+ ->required(),+ ];+ }++ return [+ 'content' => $schema->string()->description('The full post caption text that will be published on the platform.')->required(),+ 'image_title' => $schema->string()->description('Short headline (5-12 words) overlaid on the image. The hook — should make a scroller stop. Distinct from content.')->required(),+ 'image_body' => $schema->string()->description('1-2 short sentences (max 25 words) overlaid below the image_title. Expands the hook just enough to compel reading the caption.')->required(),+ 'image_keywords' => $schema->array()->items($schema->string())->description('2-4 search keywords for Unsplash for the single image.')->required(),+ ];+ }++ public function provider(): Lab+ {+ return match (config('ai.default')) {+ 'openai' => Lab::OpenAI,+ default => Lab::Gemini,+ };+ }+}diff --git a/app/Ai/Agents/PostContentHumanizer.php b/app/Ai/Agents/PostContentHumanizer.phpnew file mode 100644index 000000000..a8e09012a--- /dev/null+++ b/app/Ai/Agents/PostContentHumanizer.php@@ -0,0 +1,71 @@+<?php++declare(strict_types=1);++namespace App\Ai\Agents;++use App\Models\Workspace;+use Illuminate\Contracts\JsonSchema\JsonSchema;+use Laravel\Ai\Attributes\Temperature;+use Laravel\Ai\Contracts\Agent;+use Laravel\Ai\Contracts\HasStructuredOutput;+use Laravel\Ai\Enums\Lab;+use Laravel\Ai\Promptable;++/**+ * Second-pass agent that rewrites AI-generated post text to remove AI-tells.+ * Operates on the same structured shape as PostContentGenerator (single or+ * carousel) but only touches human-readable text fields — image_keywords pass+ * through untouched (those need to stay in English for Unsplash regardless).+ */+#[Temperature(0.4)]+class PostContentHumanizer implements Agent, HasStructuredOutput+{+ use Promptable;++ public function __construct(+ public Workspace $workspace,+ public string $format = 'single',+ ) {}++ public function instructions(): string+ {+ return view('prompts.post_content.humanizer', [+ 'brand_name' => $this->workspace->name ?? '',+ 'brand_tone' => $this->workspace->brand_tone ?? '',+ 'brand_voice_notes' => $this->workspace->brand_voice_notes ?? '',+ 'content_language' => $this->workspace->content_language ?? 'en',+ 'format' => $this->format,+ ])->render();+ }++ public function schema(JsonSchema $schema): array+ {+ if ($this->format === 'carousel') {+ return [+ 'caption' => $schema->string()->description('The humanized Instagram caption.')->required(),+ 'slides' => $schema->array()+ ->items($schema->object(fn ($s) => [+ 'title' => $s->string()->description('Humanized slide headline.')->required(),+ 'body' => $s->string()->description('Humanized slide body.')->required(),+ ]))+ ->description('The same number of slides as the input, in the same order, with humanized text.')+ ->required(),+ ];+ }++ return [+ 'content' => $schema->string()->description('The humanized post caption.')->required(),+ 'image_title' => $schema->string()->description('The humanized image overlay title.')->required(),+ 'image_body' => $schema->string()->description('The humanized image overlay body.')->required(),+ ];+ }++ public function provider(): Lab+ {+ return match (config('ai.default')) {+ 'openai' => Lab::OpenAI,+ default => Lab::Gemini,+ };+ }+}diff --git a/app/Ai/Agents/PostContentReviewer.php b/app/Ai/Agents/PostContentReviewer.phpnew file mode 100644index 000000000..e365981b5--- /dev/null+++ b/app/Ai/Agents/PostContentReviewer.php@@ -0,0 +1,55 @@+<?php++declare(strict_types=1);++namespace App\Ai\Agents;++use App\Models\Workspace;+use Illuminate\Contracts\JsonSchema\JsonSchema;+use Laravel\Ai\Attributes\Temperature;+use Laravel\Ai\Contracts\Agent;+use Laravel\Ai\Contracts\HasStructuredOutput;+use Laravel\Ai\Enums\Lab;+use Laravel\Ai\Promptable;++#[Temperature(0.2)]+class PostContentReviewer implements Agent, HasStructuredOutput+{+ use Promptable;++ public function __construct(+ public Workspace $workspace,+ ) {}++ public function instructions(): string+ {+ return view('prompts.post_content.reviewer', [+ 'brand_name' => $this->workspace->name ?? '',+ 'brand_tone' => $this->workspace->brand_tone ?? '',+ 'brand_voice_notes' => $this->workspace->brand_voice_notes ?? '',+ 'content_language' => $this->workspace->content_language ?? 'en',+ ])->render();+ }++ public function schema(JsonSchema $schema): array+ {+ return [+ 'suggestions' => $schema->array()+ ->items($schema->object(fn ($s) => [+ 'original' => $s->string()->description('The exact substring of the input that needs correction.')->required(),+ 'suggestion' => $s->string()->description('The corrected version.')->required(),+ 'reason' => $s->string()->description('1-line explanation in the output language.')->required(),+ ]))+ ->description('Up to 8 grammar/spelling/clarity suggestions. Empty array if the text is fine.')+ ->required(),+ ];+ }++ public function provider(): Lab+ {+ return match (config('ai.default')) {+ 'openai' => Lab::OpenAI,+ default => Lab::Gemini,+ };+ }+}diff --git a/app/Ai/Agents/PostContentStreamer.php b/app/Ai/Agents/PostContentStreamer.phpnew file mode 100644index 000000000..db419dde4--- /dev/null+++ b/app/Ai/Agents/PostContentStreamer.php@@ -0,0 +1,52 @@+<?php++declare(strict_types=1);++namespace App\Ai\Agents;++use App\Models\Workspace;+use Laravel\Ai\Attributes\Temperature;+use Laravel\Ai\Contracts\Agent;+use Laravel\Ai\Enums\Lab;+use Laravel\Ai\Promptable;++/**+ * Streaming-compatible agent for inline post content generation in the editor.+ *+ * This is a separate agent from PostContentGenerator because the Laravel AI SDK+ * does not support streaming with HasStructuredOutput. Use this agent for+ * broadcast()/stream() calls; use PostContentGenerator for prompt() with+ * structured output in the AI wizard pipeline.+ */+#[Temperature(0.7)]+class PostContentStreamer implements Agent+{+ use Promptable;++ public function __construct(+ public Workspace $workspace,+ public ?string $currentContent = null,+ ) {}++ public function instructions(): string+ {+ return view('prompts.post_content.generator', [+ 'brand_name' => $this->workspace->name ?? '',+ 'brand_description' => $this->workspace->brand_description ?? '',+ 'brand_tone' => $this->workspace->brand_tone ?? '',+ 'brand_voice_notes' => $this->workspace->brand_voice_notes ?? '',+ 'content_language' => $this->workspace->content_language ?? 'en',+ 'current_content' => $this->currentContent,+ 'format' => 'single',+ 'slide_count' => 1,+ ])->render();+ }++ public function provider(): Lab+ {+ return match (config('ai.default')) {+ 'openai' => Lab::OpenAI,+ default => Lab::Gemini,+ };+ }+}diff --git a/app/Ai/Agents/SocialMediaAssistant.php b/app/Ai/Agents/SocialMediaAssistant.phpdeleted file mode 100644index 4b5765123..000000000--- a/app/Ai/Agents/SocialMediaAssistant.php+++ /dev/null@@ -1,184 +0,0 @@-<?php--declare(strict_types=1);--namespace App\Ai\Agents;--use App\Ai\Middleware\DebugGeminiRequest;-use App\Ai\PlatformRules\Contract;-use App\Ai\PlatformRules\Registry as PlatformRulesRegistry;-use App\Ai\Tools\GenerateImage;-use App\Ai\Tools\GenerateVideo;-use App\Enums\SocialAccount\Platform;-use App\Models\AiMessage;-use App\Models\Post;-use App\Models\Workspace;-use Illuminate\Contracts\JsonSchema\JsonSchema;-use Illuminate\Support\Str;-use Laravel\Ai\Attributes\MaxSteps;-use Laravel\Ai\Attributes\Temperature;-use Laravel\Ai\Contracts\Agent;-use Laravel\Ai\Contracts\Conversational;-use Laravel\Ai\Contracts\HasMiddleware;-use Laravel\Ai\Contracts\HasStructuredOutput;-use Laravel\Ai\Contracts\HasTools;-use Laravel\Ai\Contracts\Tool;-use Laravel\Ai\Enums\Lab;-use Laravel\Ai\Messages\Message;-use Laravel\Ai\Promptable;--#[Temperature(0.3)]-#[MaxSteps(3)]-class SocialMediaAssistant implements Agent, Conversational, HasMiddleware, HasStructuredOutput, HasTools-{- use Promptable;-- public function __construct(- public Workspace $workspace,- public ?Post $post = null,- public ?string $userId = null,- ) {}-- public function instructions(): string- {- return view('prompts.assistant.system', [- 'brand_name' => $this->workspace->name ?? '',- 'brand_description' => $this->workspace->brand_description ?? '',- 'brand_website' => $this->workspace->brand_website ?? '',- 'tone' => $this->workspace->brand_tone ?? 'professional',- 'voice_notes' => $this->workspace->brand_voice_notes ?? '',- 'content_language' => $this->workspace->content_language ?? 'en',- 'platform_rules' => $this->activePlatformRules(),- 'connected_platforms' => $this->connectedPlatformLabels(),- ])->render();- }-- public function contentLanguage(): string- {- return $this->workspace->content_language ?? 'en';- }-- /**- * @return array<int, Contract>- */- private function activePlatformRules(): array- {- if (! $this->post) {- return [];- }-- $platforms = $this->post->postPlatforms- ->pluck('platform')- ->filter()- ->map(fn ($p) => $p instanceof Platform ? $p : Platform::tryFrom((string) $p))- ->filter()- ->unique(fn (Platform $p) => $p->value)- ->values()- ->all();-- return PlatformRulesRegistry::forMany($platforms);- }-- /**- * @return array<int, array{slug: string, label: string}>- */- private function connectedPlatformLabels(): array- {- return $this->workspace->socialAccounts()- ->active()- ->get()- ->map(fn ($account) => [- 'slug' => $account->platform->value,- 'label' => $account->platform->label(),- ])- ->unique('slug')- ->values()- ->all();- }-- /**- * @return iterable<Message>- */- public function messages(): iterable- {- if (! $this->post) {- return [];- }-- return AiMessage::query()- ->where('post_id', $this->post->id)- ->whereIn('role', ['user', 'assistant'])- ->oldest()- ->orderBy('id')- ->limit(20)- ->get()- ->map(fn (AiMessage $m) => new Message($m->role, $this->enrichContent($m)))- ->all();- }-- public function provider(): Lab- {- return match (config('ai.default')) {- 'openai' => Lab::OpenAI,- default => Lab::Gemini,- };- }-- public function middleware(): array- {- return [- new DebugGeminiRequest,- ];- }-- public function schema(JsonSchema $schema): array- {- return [- 'message' => $schema->string()- ->description('Your response. 1-2 sentences max. No emojis. No brand pitching.')- ->required(),- 'quick_actions' => $schema->array()- ->items($schema->object(fn ($s) => [- 'label' => $s->string()->description('Button text, no emojis, max 20 chars.')->required(),- 'value' => $s->string()->description('Same as label.')->required(),- ]))- ->description('Buttons for FINITE choices only (format, platform, confirm). Empty array for open-ended questions. Max 4 items.')- ->required(),- ];- }-- /**- * @return iterable<Tool>- */- public function tools(): iterable- {- return [- new GenerateImage(- workspace: $this->workspace,- post: $this->post,- userId: $this->userId,- ),- new GenerateVideo(- workspace: $this->workspace,- post: $this->post,- userId: $this->userId,- ),- ];- }-- private function enrichContent(AiMessage $m): string- {- $content = $m->content;-- if ($m->role === 'assistant' && ! empty($m->attachments)) {- $counts = collect($m->attachments)- ->groupBy('type')- ->map(fn ($group, $type) => count($group).' '.Str::plural((string) $type, count($group)))- ->implode(', ');-- $content .= "\n\n[This assistant message attached: {$counts}]";- }-- return $content;- }-}diff --git a/app/Ai/Tools/AttachmentCollector.php b/app/Ai/Tools/AttachmentCollector.phpdeleted file mode 100644index b86f91e26..000000000--- a/app/Ai/Tools/AttachmentCollector.php+++ /dev/null@@ -1,44 +0,0 @@-<?php--declare(strict_types=1);--namespace App\Ai\Tools;--/**- * Request-scoped side-channel for tools to surface structured attachments.- *- * Laravel AI SDK tools return Stringable|string to the LLM, so they can't- * pass structured data back to the controller directly. This collector is- * registered as a scoped singleton — the controller clears it before the- * agent prompt, tools push attachments into it during execution, and the- * controller reads $collector->all() after the agent finishes to persist- * them onto the resulting AiMessage.- */-class AttachmentCollector-{- /**- * @var array<int, array<string, mixed>>- */- private array $attachments = [];-- /**- * @param array<string, mixed> $attachment- */- public function push(array $attachment): void- {- $this->attachments[] = $attachment;- }-- /**- * @return array<int, array<string, mixed>>- */- public function all(): array- {- return $this->attachments;- }-- public function clear(): void- {- $this->attachments = [];- }-}diff --git a/app/Ai/Tools/GenerateAudio.php b/app/Ai/Tools/GenerateAudio.phpdeleted file mode 100644index 685e78057..000000000--- a/app/Ai/Tools/GenerateAudio.php+++ /dev/null@@ -1,103 +0,0 @@-<?php--declare(strict_types=1);--namespace App\Ai\Tools;--use App\Enums\Ai\UsageType;-use App\Features\AiVideosLimit;-use App\Models\AiUsageLog;-use App\Models\Post;-use App\Models\Workspace;-use Illuminate\Contracts\JsonSchema\JsonSchema;-use Illuminate\Support\Facades\Storage;-use Illuminate\Support\Str;-use Laravel\Ai\Audio;-use Laravel\Ai\Contracts\Tool;-use Laravel\Ai\Tools\Request;-use Laravel\Pennant\Feature;-use Stringable;--class GenerateAudio implements Tool-{- public function __construct(- public Workspace $workspace,- public ?Post $post = null,- public ?string $userId = null,- public ?AttachmentCollector $collector = null,- ) {- $this->collector ??= app(AttachmentCollector::class);- }-- public function description(): Stringable|string- {- return <<<'TXT'-Generate an AI voiceover or narration audio from text.--Call this when the user asks for a voiceover, narration, TTS, podcast clip,-or any voice content. The output language will match the language of the-input text — so pass the text in the target language.--Audio is generated via ElevenLabs with the configured default voice.-TXT;- }-- public function handle(Request $request): Stringable|string- {- // Audio generation counts against the monthly video quota by design.- $limit = (int) Feature::for($this->workspace->account)->value(AiVideosLimit::class);- $used = AiUsageLog::monthlyCount($this->workspace->account_id, UsageType::Video)- + AiUsageLog::monthlyCount($this->workspace->account_id, UsageType::Audio);-- if ($used >= $limit) {- return "Audio and video share a monthly quota that is exhausted ({$used} of {$limit} used). Ask the user to upgrade their plan or wait until next month.";- }-- $text = (string) data_get($request, 'text', '');- $voice = config('services.elevenlabs.default_voice', 'EXAVITQu4vr4xnSDxMaL');-- $response = Audio::of($text)->voice($voice)->generate();-- $storedPath = $response->store('medias', 'public');-- $media = $this->workspace->media()->create([- 'group_id' => Str::uuid()->toString(),- 'collection' => 'assets',- 'type' => 'video',- 'path' => $storedPath,- 'original_filename' => 'ai-generated.mp3',- 'mime_type' => 'audio/mpeg',- 'size' => Storage::disk('public')->size($storedPath),- 'order' => 0,- 'meta' => ['ai_generated' => true, 'text' => Str::limit($text, 200)],- ]);-- AiUsageLog::create([- 'account_id' => $this->workspace->account_id,- 'workspace_id' => $this->workspace->id,- 'user_id' => $this->userId,- 'post_id' => $this->post?->id,- 'type' => UsageType::Audio,- 'provider' => 'elevenlabs',- ]);-- $this->collector->push([- 'id' => $media->id,- 'path' => $media->path,- 'url' => $media->url,- 'mime_type' => 'audio/mpeg',- 'type' => 'audio',- ]);-- return "Generated audio (id: {$media->id}) and attached it to the post.";- }-- public function schema(JsonSchema $schema): array- {- return [- 'text' => $schema->string()- ->description('The text to convert into speech. Write it in the target language — the output voice language will match.')- ->required(),- ];- }-}diff --git a/app/Ai/Tools/GenerateImage.php b/app/Ai/Tools/GenerateImage.phpdeleted file mode 100644index 312bc1913..000000000--- a/app/Ai/Tools/GenerateImage.php+++ /dev/null@@ -1,89 +0,0 @@-<?php--declare(strict_types=1);--namespace App\Ai\Tools;--use App\Actions\Ai\GenerateImage as GenerateImageAction;-use App\Enums\Ai\Orientation;-use App\Enums\Media\Type as MediaType;-use App\Exceptions\Ai\QuotaExhaustedException;-use App\Models\Post;-use App\Models\Workspace;-use Illuminate\Contracts\JsonSchema\JsonSchema;-use Laravel\Ai\Contracts\Tool;-use Laravel\Ai\Tools\Request;-use Stringable;--class GenerateImage implements Tool-{- public function __construct(- public Workspace $workspace,- public ?Post $post = null,- public ?string $userId = null,- public ?AttachmentCollector $collector = null,- ) {- $this->collector ??= app(AttachmentCollector::class);- }-- public function description(): Stringable|string- {- return <<<'TXT'-Generate an AI image and attach it to the current post.--Call this when the user asks for an image, photo, carousel slide, or any visual content.-Pass a detailed visual prompt describing what to generate, and an orientation:-- "square" (1:1) for LinkedIn, Facebook, or when user wants square-- "portrait" (4:5) for Instagram Feed, Threads-- "vertical" (9:16) for Instagram Reel/Story, Pinterest Pin, TikTok-- "horizontal" (16:9) for X/Twitter, YouTube thumbnail--Choose the orientation that best matches the target platform.--The image is generated, stored, registered in the workspace's media library,-logged in monthly usage tracking, and attached to the assistant's response message.-TXT;- }-- public function handle(Request $request): Stringable|string- {- $prompt = (string) data_get($request, 'prompt', '');- $orientationString = (string) data_get($request, 'orientation', 'vertical');- $orientation = Orientation::tryFrom($orientationString) ?? Orientation::Portrait;-- try {- $media = GenerateImageAction::execute(- workspace: $this->workspace,- prompt: $prompt,- orientation: $orientation,- userId: $this->userId,- postId: $this->post?->id,- );- } catch (QuotaExhaustedException $e) {- return "Image quota exhausted this month ({$e->used} of {$e->limit} used). Ask the user to upgrade their plan or wait until next month.";- }-- $this->collector->push([- 'id' => $media->id,- 'path' => $media->path,- 'url' => $media->url,- 'mime_type' => 'image/png',- 'type' => MediaType::Image->value,- ]);-- return "Generated a {$orientationString} image (id: {$media->id}) and attached it to the post.";- }-- public function schema(JsonSchema $schema): array- {- return [- 'prompt' => $schema->string()- ->description('A detailed visual description of the image to generate. Include subject, style, composition, mood, and any text that should appear in the image.')- ->required(),- 'orientation' => $schema->string()- ->enum(['square', 'portrait', 'vertical', 'horizontal'])- ->description('"square" (1:1) for LinkedIn, Facebook. "portrait" (4:5) for Instagram Feed, Threads. "vertical" (9:16) for Instagram Reel/Story, Pinterest, TikTok. "horizontal" (16:9) for X/Twitter.')- ->required(),- ];- }-}diff --git a/app/Ai/Tools/GenerateVideo.php b/app/Ai/Tools/GenerateVideo.phpdeleted file mode 100644index 07acd2139..000000000--- a/app/Ai/Tools/GenerateVideo.php+++ /dev/null@@ -1,86 +0,0 @@-<?php--declare(strict_types=1);--namespace App\Ai\Tools;--use App\Actions\Ai\GenerateVideo as GenerateVideoAction;-use App\Enums\Ai\Orientation;-use App\Enums\Media\Type as MediaType;-use App\Exceptions\Ai\QuotaExhaustedException;-use App\Models\Post;-use App\Models\Workspace;-use Illuminate\Contracts\JsonSchema\JsonSchema;-use Laravel\Ai\Contracts\Tool;-use Laravel\Ai\Tools\Request;-use Stringable;--class GenerateVideo implements Tool-{- public function __construct(- public Workspace $workspace,- public ?Post $post = null,- public ?string $userId = null,- public ?AttachmentCollector $collector = null,- ) {- $this->collector ??= app(AttachmentCollector::class);- }-- public function description(): Stringable|string- {- return <<<'TXT'-Generate a short AI video and attach it to the current post.--Call this when the user asks for a video, Reel, TikTok, YouTube Short,-Facebook Reel, or any motion content. Pass a detailed visual description-and an orientation:-- "vertical" (9:16) for TikTok, Instagram Reel, YouTube Shorts, Facebook Reel, Pinterest Video Pin-- "horizontal" (16:9) for X/Twitter video, LinkedIn video--Videos are generated via Veo 3.1 (not yet supported by the SDK's Image/Audio-entry points), which this tool wraps internally.-TXT;- }-- public function handle(Request $request): Stringable|string- {- $prompt = (string) data_get($request, 'prompt', '');- $orientationString = (string) data_get($request, 'orientation', 'vertical');- $orientation = Orientation::tryFrom($orientationString) ?? Orientation::Vertical;-- try {- $media = GenerateVideoAction::execute(- workspace: $this->workspace,- prompt: $prompt,- orientation: $orientation,- userId: $this->userId,- postId: $this->post?->id,- );- } catch (QuotaExhaustedException $e) {- return "Video quota exhausted this month ({$e->used} of {$e->limit} used). Ask the user to upgrade their plan or wait until next month.";- }-- $this->collector->push([- 'id' => $media->id,- 'path' => $media->path,- 'url' => $media->url,- 'mime_type' => 'video/mp4',- 'type' => MediaType::Video->value,- ]);-- return "Generated a {$orientationString} video (id: {$media->id}) and attached it to the post.";- }-- public function schema(JsonSchema $schema): array- {- return [- 'prompt' => $schema->string()- ->description('A detailed visual description of the video to generate. Include subject, motion, style, mood, and any key moments.')- ->required(),- 'orientation' => $schema->string()- ->enum(['vertical', 'horizontal'])- ->description('"vertical" for 9:16 (TikTok, Reels, Shorts, Stories). "horizontal" for 16:9 (X, LinkedIn, Facebook).')- ->required(),- ];- }-}diff --git a/app/Broadcasting/UserAiCreationChannel.php b/app/Broadcasting/UserAiCreationChannel.phpnew file mode 100644index 000000000..145f8d7dc--- /dev/null+++ b/app/Broadcasting/UserAiCreationChannel.php@@ -0,0 +1,15 @@+<?php++declare(strict_types=1);++namespace App\Broadcasting;++use App\Models\User;++class UserAiCreationChannel+{+ public function join(User $user, string $userId, string $creationId): bool+ {+ return $user->id === $userId;+ }+}diff --git a/app/Broadcasting/UserAiGenerationChannel.php b/app/Broadcasting/UserAiGenerationChannel.phpnew file mode 100644index 000000000..46b83b22d--- /dev/null+++ b/app/Broadcasting/UserAiGenerationChannel.php@@ -0,0 +1,15 @@+<?php++declare(strict_types=1);++namespace App\Broadcasting;++use App\Models\User;++class UserAiGenerationChannel+{+ public function join(User $user, string $userId, string $generationId): bool+ {+ return $user->id === $userId;+ }+}diff --git a/app/Console/Commands/AiTestRender.php b/app/Console/Commands/AiTestRender.phpnew file mode 100644index 000000000..df201a5e2--- /dev/null+++ b/app/Console/Commands/AiTestRender.php@@ -0,0 +1,232 @@+<?php++declare(strict_types=1);++namespace App\Console\Commands;++use App\Enums\Media\Type;+use App\Models\Media;+use App\Models\Post;+use App\Models\SocialAccount;+use App\Models\Workspace;+use App\Services\Image\TemplateImageGenerator;+use Illuminate\Console\Command;+use Illuminate\Support\Facades\Storage;++/**+ * Debug helper to iterate on the AI image template visuals without going through+ * the full wizard + AI flow.+ *+ * php artisan ai:test-render --template=A --title="Some title" --body="Some body" --keywords="kitchen,team"+ * php artisan ai:test-render --post=019deae5-... --template=A+ *+ * Outputs the storage path so you can open the file directly.+ */+class AiTestRender extends Command+{+ protected $signature = 'ai:test-render+ {--template=A : Template to render (A or B)}+ {--title= : Slide title}+ {--body= : Slide body}+ {--keywords= : Comma-separated Unsplash keywords}+ {--post= : Post UUID to re-render images for (replaces Post.media in place)}+ {--workspace= : Workspace UUID (defaults to first)}+ {--account= : Social account UUID (defaults to first connected on workspace)}+ {--width=1080 : Canvas width in pixels}+ {--height=1350 : Canvas height in pixels}';++ protected $description = 'Render an AI image template with custom inputs (debug).';++ public function handle(TemplateImageGenerator $generator): int+ {+ $workspace = $this->resolveWorkspace();+ if (! $workspace) {+ $this->error('No workspace found. Use --workspace=<uuid>.');++ return self::FAILURE;+ }++ $socialAccount = $this->resolveSocialAccount($workspace);+ if (! $socialAccount) {+ $this->error('No social account on workspace. Use --account=<uuid> or connect one.');++ return self::FAILURE;+ }++ if ($this->option('post')) {+ return $this->rerenderPost($generator, $workspace, $socialAccount);+ }++ return $this->renderSingle($generator, $workspace, $socialAccount);+ }++ private function renderSingle(TemplateImageGenerator $generator, Workspace $workspace, SocialAccount $socialAccount): int+ {+ $template = strtoupper((string) $this->option('template'));+ $title = (string) ($this->option('title') ?: 'Hello world');+ $body = (string) ($this->option('body') ?: 'A short body that gives more context about the slide.');+ $keywords = array_values(array_filter(array_map('trim', explode(',', (string) $this->option('keywords'))))) ?: ['business'];++ $this->info("Rendering Template {$template}...");+ $this->line(" title: {$title}");+ $this->line(" body: {$body}");+ $this->line(' keywords: '.implode(', ', $keywords));++ $path = $generator->render(+ template: $template,+ workspace: $workspace,+ socialAccount: $socialAccount,+ title: $title,+ body: $body,+ imageKeywords: $keywords,+ width: (int) $this->option('width'),+ height: (int) $this->option('height'),+ );++ if (! $path) {+ $this->error('Render failed. Check Unsplash key + recent logs.');++ return self::FAILURE;+ }++ $this->info('OK');+ $this->line('storage path: '.$path);+ $this->line('absolute: '.Storage::path($path));+ $this->line('public url: '.Storage::url($path));++ return self::SUCCESS;+ }++ private function rerenderPost(TemplateImageGenerator $generator, Workspace $workspace, SocialAccount $socialAccount): int+ {+ $postId = (string) $this->option('post');+ $post = Post::query()->where('id', $postId)->first();+ if (! $post) {+ $this->error("Post {$postId} not found.");++ return self::FAILURE;+ }+ if ($post->workspace_id !== $workspace->id) {+ $this->error("Post {$postId} belongs to a different workspace.");++ return self::FAILURE;+ }++ $template = strtoupper((string) ($this->option('template') ?: 'A'));+ $media = $post->media ?? [];+ if (empty($media)) {+ $this->error('Post has no media items. Use direct mode (--title/--body/--keywords) instead.');++ return self::FAILURE;+ }++ $this->info("Re-rendering {$template} for ".count($media).' slide(s)...');++ $rendered = [];+ $newMedia = [];+ foreach ($media as $i => $item) {+ $isClosing = (bool) data_get($item, 'meta.is_closing', false);++ $width = (int) $this->option('width');+ $height = (int) $this->option('height');++ if ($isClosing) {+ $this->line(" [{$i}] template=C (closing)");+ $path = $generator->renderClosing(+ workspace: $workspace,+ socialAccount: $socialAccount,+ width: $width,+ height: $height,+ );+ } else {+ $title = data_get($item, 'meta.slide_title') ?? 'Slide '.($i + 1);+ $body = data_get($item, 'meta.slide_body') ?? ($post->content ?? '');+ $keywords = data_get($item, 'meta.slide_keywords') ?: ['business'];+ // First slide is always Template A; subsequent slides alternate.+ $slotTemplate = $i === 0 ? 'A' : ($i % 2 === 0 ? 'A' : 'B');++ $this->line(" [{$i}] template={$slotTemplate} title={$title}");++ $path = $generator->render(+ template: $slotTemplate,+ workspace: $workspace,+ socialAccount: $socialAccount,+ title: $title,+ body: $body,+ imageKeywords: $keywords,+ width: $width,+ height: $height,+ );+ }++ if ($path) {+ $rendered[] = $path;+ $this->line(' → '.$path);+ $newMedia[] = $this->replaceMediaItem($workspace, $item, $path);+ } else {+ $this->warn(' → (failed)');+ $newMedia[] = $item;+ }+ }++ $post->media = $newMedia;+ $post->save();++ $this->info('Done. '.count($rendered).' image(s) replaced in post.');+ foreach ($rendered as $p) {+ $this->line(' '.Storage::url($p));+ }++ return self::SUCCESS;+ }++ /**+ * Persist a new Media row pointing at $path and return a media-array shape+ * matching the existing $original entry (preserves meta.slide_*).+ *+ * @param array<string, mixed> $original+ * @return array<string, mixed>+ */+ private function replaceMediaItem(Workspace $workspace, array $original, string $path): array+ {+ $media = new Media([+ 'collection' => 'ai-generated',+ 'type' => Type::Image,+ 'path' => $path,+ 'original_filename' => basename($path),+ 'mime_type' => 'image/webp',+ 'size' => Storage::size($path),+ 'order' => 0,+ ]);+ $media->mediable_type = Workspace::class;+ $media->mediable_id = $workspace->id;+ $media->save();++ return [+ 'id' => $media->id,+ 'path' => $media->path,+ 'url' => $media->url,+ 'type' => 'image',+ 'mime_type' => 'image/webp',+ 'meta' => data_get($original, 'meta', []),+ ];+ }++ private function resolveWorkspace(): ?Workspace+ {+ if ($id = $this->option('workspace')) {+ return Workspace::query()->where('id', $id)->first();+ }++ return Workspace::query()->first();+ }++ private function resolveSocialAccount(Workspace $workspace): ?SocialAccount+ {+ if ($id = $this->option('account')) {+ return $workspace->socialAccounts()->where('id', $id)->first();+ }++ return $workspace->socialAccounts()->first();+ }+}diff --git a/app/Enums/Ai/Intent.php b/app/Enums/Ai/Intent.phpdeleted file mode 100644index f5b783063..000000000--- a/app/Enums/Ai/Intent.php+++ /dev/null@@ -1,14 +0,0 @@-<?php--declare(strict_types=1);--namespace App\Enums\Ai;--enum Intent: string-{- case Text = 'text';- case Image = 'image';- case Audio = 'audio';- case Video = 'video';- case Blocked = 'blocked';-}diff --git a/app/Enums/AiMessage/Status.php b/app/Enums/AiMessage/Status.phpdeleted file mode 100644index 06e1484be..000000000--- a/app/Enums/AiMessage/Status.php+++ /dev/null@@ -1,13 +0,0 @@-<?php--declare(strict_types=1);--namespace App\Enums\AiMessage;--enum Status: string-{- case Pending = 'pending';- case Generating = 'generating';- case Completed = 'completed';- case Failed = 'failed';-}diff --git a/app/Enums/PostPlatform/ContentType.php b/app/Enums/PostPlatform/ContentType.phpindex 0a0728e22..091240292 100644--- a/app/Enums/PostPlatform/ContentType.php+++ b/app/Enums/PostPlatform/ContentType.php@@ -10,6 +10,7 @@ enum ContentType: string{case InstagramFeed = 'instagram_feed';+ case InstagramCarousel = 'instagram_carousel';case InstagramReel = 'instagram_reel';case InstagramStory = 'instagram_story';@@ -53,6 +54,7 @@ enum ContentType: string{return match ($this) {self::InstagramFeed => 'Feed Post',+ self::InstagramCarousel => 'Carousel',self::InstagramReel => 'Reel',self::InstagramStory => 'Story',self::LinkedInPost, self::LinkedInPagePost => 'Post',@@ -76,6 +78,7 @@ enum ContentType: string{return match ($this) {self::InstagramFeed => 'Appears in your feed and profile',+ self::InstagramCarousel => 'Multi-slide swipeable post (2-10 images)',self::InstagramReel => 'Short video up to 90 seconds',self::InstagramStory => 'Disappears after 24 hours',self::LinkedInPost, self::LinkedInPagePost => 'Standard post with text and media',@@ -98,7 +101,7 @@ enum ContentType: stringpublic function platform(): SocialPlatform{return match ($this) {- self::InstagramFeed, self::InstagramReel, self::InstagramStory => SocialPlatform::Instagram,+ self::InstagramFeed, self::InstagramCarousel, self::InstagramReel, self::InstagramStory => SocialPlatform::Instagram,self::LinkedInPost, self::LinkedInCarousel => SocialPlatform::LinkedIn,self::LinkedInPagePost, self::LinkedInPageCarousel => SocialPlatform::LinkedInPage,self::FacebookPost, self::FacebookReel, self::FacebookStory => SocialPlatform::Facebook,@@ -112,10 +115,44 @@ enum ContentType: string};}+ /**+ * Image dimensions used by the AI generator for this format.+ * Single source of truth — `TemplateImageGenerator` reads from here.+ *+ * @return array{width: int, height: int}+ */+ public function aiImageDimensions(): array+ {+ return match ($this) {+ // Vertical 4:5 (Instagram preferred portrait, Threads mirrors it)+ self::InstagramFeed,+ self::InstagramCarousel,+ self::ThreadsPost => ['width' => 1080, 'height' => 1350],++ // Square 1:1 (LinkedIn, X, Facebook, Bluesky, Mastodon)+ self::LinkedInPost,+ self::LinkedInPagePost,+ self::FacebookPost,+ self::XPost,+ self::BlueskyPost,+ self::MastodonPost => ['width' => 1080, 'height' => 1080],++ // Stories 9:16 (Instagram + Facebook)+ self::InstagramStory,+ self::FacebookStory => ['width' => 1080, 'height' => 1920],++ // Pinterest pin 2:3+ self::PinterestPin => ['width' => 1000, 'height' => 1500],++ // Default: 4:5 portrait (used for any other case)+ default => ['width' => 1080, 'height' => 1350],+ };+ }+public function aspectRatio(): ?string{return match ($this) {- self::InstagramFeed => '1:1',+ self::InstagramFeed, self::InstagramCarousel => '4:5',self::InstagramReel, self::InstagramStory => '9:16',self::FacebookReel, self::FacebookStory => '9:16',self::TikTokVideo, self::YouTubeShort => '9:16',@@ -128,7 +165,8 @@ enum ContentType: stringpublic function maxMediaCount(): int{return match ($this) {- self::InstagramFeed => 10,+ self::InstagramFeed => 1,+ self::InstagramCarousel => 10,self::InstagramReel, self::InstagramStory => 1,self::LinkedInPost, self::LinkedInPagePost => 1,self::LinkedInCarousel, self::LinkedInPageCarousel => 20,@@ -149,6 +187,7 @@ enum ContentType: string{return match ($this) {self::InstagramFeed, self::InstagramReel, self::InstagramStory => true,+ self::InstagramCarousel => false,self::LinkedInPost, self::LinkedInPagePost => true,self::LinkedInCarousel, self::LinkedInPageCarousel => false,self::FacebookPost, self::FacebookReel, self::FacebookStory => true,@@ -178,15 +217,39 @@ enum ContentType: string{return match ($this) {self::LinkedInPost, self::LinkedInPagePost => false,- self::FacebookPost => false,self::XPost => false,self::ThreadsPost => false,self::BlueskyPost => false,self::MastodonPost => false,+ self::InstagramFeed => false,default => true,};}+ /**+ * Content types that the AI generator currently supports. Reels/stories/+ * videos are excluded because the AI flow only produces text + images.+ *+ * @return array<self>+ */+ public static function aiSupported(): array+ {+ return [+ self::InstagramFeed,+ self::InstagramCarousel,+ self::InstagramStory,+ self::LinkedInPost,+ self::LinkedInPagePost,+ self::XPost,+ self::ThreadsPost,+ self::BlueskyPost,+ self::MastodonPost,+ self::FacebookPost,+ self::FacebookStory,+ self::PinterestPin,+ ];+ }+/*** Get all content types for a specific platform.*diff --git a/app/Enums/Workspace/BrandFont.php b/app/Enums/Workspace/BrandFont.phpnew file mode 100644index 000000000..3c0998faa--- /dev/null+++ b/app/Enums/Workspace/BrandFont.php@@ -0,0 +1,74 @@+<?php++declare(strict_types=1);++namespace App\Enums\Workspace;++/**+ * Curated list of the most popular Google Fonts a workspace can pick as its+ * brand font. The string value matches the Google Fonts API family name so+ * the frontend can load it directly via the Fonts CSS endpoint.+ */+enum BrandFont: string+{+ case Inter = 'Inter';+ case Roboto = 'Roboto';+ case OpenSans = 'Open Sans';+ case NotoSans = 'Noto Sans';+ case Montserrat = 'Montserrat';+ case Poppins = 'Poppins';+ case Lato = 'Lato';+ case SourceSans3 = 'Source Sans 3';+ case RobotoCondensed = 'Roboto Condensed';+ case Oswald = 'Oswald';+ case Raleway = 'Raleway';+ case RobotoMono = 'Roboto Mono';+ case Nunito = 'Nunito';+ case Ubuntu = 'Ubuntu';+ case RobotoSlab = 'Roboto Slab';+ case Merriweather = 'Merriweather';+ case PlayfairDisplay = 'Playfair Display';+ case Rubik = 'Rubik';+ case PtSans = 'PT Sans';+ case WorkSans = 'Work Sans';+ case Mukta = 'Mukta';+ case NotoSerif = 'Noto Serif';+ case Lora = 'Lora';+ case Quicksand = 'Quicksand';+ case Kanit = 'Kanit';+ case Inconsolata = 'Inconsolata';+ case Heebo = 'Heebo';+ case DmSans = 'DM Sans';+ case Barlow = 'Barlow';+ case Karla = 'Karla';+ case Manrope = 'Manrope';+ case Mulish = 'Mulish';+ case BebasNeue = 'Bebas Neue';+ case Cabin = 'Cabin';+ case PublicSans = 'Public Sans';+ case FiraSans = 'Fira Sans';+ case Dosis = 'Dosis';+ case PlusJakartaSans = 'Plus Jakarta Sans';+ case Outfit = 'Outfit';+ case CormorantGaramond = 'Cormorant Garamond';+ case SourceSerif4 = 'Source Serif 4';+ case CrimsonPro = 'Crimson Pro';+ case LibreBaskerville = 'Libre Baskerville';+ case EbGaramond = 'EB Garamond';+ case Anton = 'Anton';+ case IbmPlexSans = 'IBM Plex Sans';+ case JetBrainsMono = 'JetBrains Mono';+ case Hind = 'Hind';+ case ArchivoNarrow = 'Archivo Narrow';+ case Archivo = 'Archivo';++ public const DEFAULT = self::Inter;++ /**+ * @return array<int, string>+ */+ public static function values(): array+ {+ return array_map(fn (self $f) => $f->value, self::cases());+ }+}diff --git a/app/Events/Ai/AssistantMessageUpdated.php b/app/Events/Ai/AssistantMessageUpdated.phpdeleted file mode 100644index 3f7608162..000000000--- a/app/Events/Ai/AssistantMessageUpdated.php+++ /dev/null@@ -1,52 +0,0 @@-<?php--declare(strict_types=1);--namespace App\Events\Ai;--use App\Models\AiMessage;-use Illuminate\Broadcasting\InteractsWithSockets;-use Illuminate\Broadcasting\PrivateChannel;-use Illuminate\Contracts\Broadcasting\ShouldBroadcastNow;-use Illuminate\Foundation\Events\Dispatchable;-use Illuminate\Queue\SerializesModels;--class AssistantMessageUpdated implements ShouldBroadcastNow-{- use Dispatchable, InteractsWithSockets, SerializesModels;-- public function __construct(public AiMessage $message) {}-- public function broadcastAs(): string- {- return 'AssistantMessageUpdated';- }-- public function broadcastOn(): array- {- return [- new PrivateChannel('post.'.$this->message->post_id),- ];- }-- public function broadcastWith(): array- {- $this->message->refresh();-- return [- 'message' => [- 'id' => $this->message->id,- 'post_id' => $this->message->post_id,- 'role' => $this->message->role,- 'content' => $this->message->content,- 'content_html' => $this->message->content_html,- 'attachments' => $this->message->attachments,- 'status' => $this->message->status->value,- 'error_message' => $this->message->error_message,- 'metadata' => $this->message->metadata,- 'created_at' => $this->message->created_at->toISOString(),- 'updated_at' => $this->message->updated_at->toISOString(),- ],- ];- }-}diff --git a/app/Events/Ai/PostCreationReady.php b/app/Events/Ai/PostCreationReady.phpnew file mode 100644index 000000000..686f49863--- /dev/null+++ b/app/Events/Ai/PostCreationReady.php@@ -0,0 +1,45 @@+<?php++declare(strict_types=1);++namespace App\Events\Ai;++use Illuminate\Broadcasting\InteractsWithSockets;+use Illuminate\Broadcasting\PrivateChannel;+use Illuminate\Contracts\Broadcasting\ShouldBroadcastNow;+use Illuminate\Foundation\Events\Dispatchable;+use Illuminate\Queue\SerializesModels;++class PostCreationReady implements ShouldBroadcastNow+{+ use Dispatchable, InteractsWithSockets, SerializesModels;++ public function __construct(+ public string $userId,+ public string $creationId,+ public ?string $content,+ public ?string $error = null,+ ) {}++ public function broadcastOn(): PrivateChannel+ {+ return new PrivateChannel("users.{$this->userId}.ai-creation.{$this->creationId}");+ }++ public function broadcastAs(): string+ {+ return 'PostCreationReady';+ }++ /**+ * @return array<string, mixed>+ */+ public function broadcastWith(): array+ {+ return [+ 'creation_id' => $this->creationId,+ 'content' => $this->content,+ 'error' => $this->error,+ ];+ }+}diff --git a/app/Http/Controllers/App/PostAiCreateController.php b/app/Http/Controllers/App/PostAiCreateController.phpnew file mode 100644index 000000000..70b7ddde7--- /dev/null+++ b/app/Http/Controllers/App/PostAiCreateController.php@@ -0,0 +1,193 @@+<?php++declare(strict_types=1);++namespace App\Http\Controllers\App;++use App\Actions\Post\CreatePost;+use App\Enums\Media\Type as MediaType;+use App\Enums\PostPlatform\ContentType;+use App\Http\Requests\App\Ai\StartPostCreationRequest;+use App\Jobs\Ai\StreamPostCreation;+use App\Models\Media;+use App\Models\SocialAccount;+use App\Models\Workspace;+use Illuminate\Http\JsonResponse;+use Illuminate\Http\Request;+use Illuminate\Support\Facades\Cache;+use Illuminate\Support\Facades\Storage;+use Illuminate\Support\Str;+use Symfony\Component\HttpFoundation\Response;++class PostAiCreateController extends Controller+{+ public function start(StartPostCreationRequest $request): JsonResponse+ {+ $workspace = $request->user()->currentWorkspace;++ $this->authorize('createPost', $workspace);++ $socialAccountId = $request->input('social_account_id');++ if ($socialAccountId) {+ $owned = SocialAccount::where('id', $socialAccountId)+ ->where('workspace_id', $workspace->id)+ ->exists();++ if (! $owned) {+ abort(Response::HTTP_FORBIDDEN);+ }+ }++ $creationId = (string) Str::uuid();++ StreamPostCreation::dispatch(+ userId: $request->user()->id,+ creationId: $creationId,+ workspaceId: $workspace->id,+ format: $request->string('format')->toString(),+ socialAccountId: $socialAccountId,+ imageCount: (int) $request->input('image_count', 0),+ prompt: $request->string('prompt')->toString(),+ );++ return response()->json([+ 'creation_id' => $creationId,+ 'channel' => "users.{$request->user()->id}.ai-creation.{$creationId}",+ ], Response::HTTP_ACCEPTED);+ }++ public function finalize(Request $request, string $creationId): JsonResponse+ {+ $workspace = $request->user()->currentWorkspace;++ $this->authorize('createPost', $workspace);++ $state = Cache::get("ai-creation:{$creationId}");++ if (! $state || data_get($state, 'user_id') !== $request->user()->id) {+ abort(Response::HTTP_NOT_FOUND);+ }++ $media = $this->buildMediaArray($workspace, $state);++ $post = CreatePost::execute($workspace, $request->user(), [+ 'content' => data_get($state, 'content', ''),+ 'media' => $media,+ ]);++ // Set the platform's aspect_ratio meta from the same enum that drives+ // image generation, so the preview matches the rendered image exactly.+ $format = data_get($state, 'format');+ $socialAccountId = data_get($state, 'social_account_id');+ $contentType = $format ? ContentType::tryFrom($format) : null;+ if ($contentType && $socialAccountId) {+ $aspectRatio = $this->aspectRatioFor($contentType);++ $post->postPlatforms()+ ->where('social_account_id', $socialAccountId)+ ->each(function ($platform) use ($aspectRatio): void {+ $meta = $platform->meta ?? [];+ if ($aspectRatio !== null) {+ $meta['aspect_ratio'] = $aspectRatio;+ }+ $platform->meta = $meta;+ $platform->enabled = true;+ $platform->save();+ });+ }++ Cache::forget("ai-creation:{$creationId}");++ return response()->json([+ 'post_id' => $post->id,+ 'redirect_url' => route('app.posts.edit', $post),+ ]);+ }++ /**+ * Build the media array for post creation from the AI creation state.+ *+ * @param array<string, mixed> $state+ * @return array<int, array<string, mixed>>+ */+ /**+ * Map the AI image dimensions to the aspect_ratio string the editor's+ * preview understands. Returns null when the size doesn't match a known+ * preview ratio (Instagram preview supports 1:1, 4:5, 16:9, original).+ */+ private function aspectRatioFor(ContentType $type): ?string+ {+ $dims = $type->aiImageDimensions();+ $ratio = $dims['width'] / $dims['height'];++ return match (true) {+ abs($ratio - 1.0) < 0.01 => '1:1',+ abs($ratio - 4 / 5) < 0.01 => '4:5',+ abs($ratio - 16 / 9) < 0.01 => '16:9',+ default => null,+ };+ }++ private function buildMediaArray(Workspace $workspace, array $state): array+ {+ $media = [];++ if (data_get($state, 'format') === 'instagram_carousel') {+ foreach (data_get($state, 'slides', []) as $slide) {+ $path = data_get($slide, 'image_path');+ if ($path) {+ $media[] = $this->createMediaItem($workspace, $path, [+ 'slide_title' => data_get($slide, 'title'),+ 'slide_body' => data_get($slide, 'body'),+ 'slide_keywords' => data_get($slide, 'image_keywords', []),+ 'is_closing' => (bool) data_get($slide, 'is_closing', false),+ ]);+ }+ }+ } else {+ $path = data_get($state, 'image_path');+ if ($path) {+ $media[] = $this->createMediaItem($workspace, $path, [+ 'slide_title' => data_get($state, 'image_title'),+ 'slide_body' => data_get($state, 'image_body'),+ 'slide_keywords' => data_get($state, 'image_keywords', []),+ ]);+ }+ }++ return $media;+ }++ /**+ * Create a Media record for an AI-generated image and return it as an array.+ *+ * @param array<string, mixed> $meta+ * @return array<string, mixed>+ */+ private function createMediaItem(Workspace $workspace, string $path, array $meta = []): array+ {+ $media = new Media([+ 'collection' => 'ai-generated',+ 'type' => MediaType::Image,+ 'path' => $path,+ 'original_filename' => basename($path),+ 'mime_type' => 'image/webp',+ 'size' => Storage::size($path),+ 'order' => 0,+ ]);++ $media->mediable_type = Workspace::class;+ $media->mediable_id = $workspace->id;+ $media->save();++ return [+ 'id' => $media->id,+ 'path' => $media->path,+ 'url' => $media->url,+ 'type' => 'image',+ 'mime_type' => 'image/webp',+ 'meta' => $meta,+ ];+ }+}diff --git a/app/Http/Controllers/App/PostAiGenerateController.php b/app/Http/Controllers/App/PostAiGenerateController.phpnew file mode 100644index 000000000..cf691c61f--- /dev/null+++ b/app/Http/Controllers/App/PostAiGenerateController.php@@ -0,0 +1,39 @@+<?php++declare(strict_types=1);++namespace App\Http\Controllers\App;++use App\Http\Requests\App\Ai\GeneratePostContentRequest;+use App\Jobs\Ai\StreamPostContent;+use App\Models\Post;+use Illuminate\Http\JsonResponse;+use Illuminate\Support\Str;+use Symfony\Component\HttpFoundation\Response;++class PostAiGenerateController extends Controller+{+ public function generate(GeneratePostContentRequest $request, Post $post): JsonResponse+ {+ $workspace = $request->user()->currentWorkspace;++ if ($post->workspace_id !== $workspace->id) {+ abort(Response::HTTP_FORBIDDEN);+ }++ $generationId = (string) Str::uuid();++ StreamPostContent::dispatch(+ workspaceId: $workspace->id,+ userId: $request->user()->id,+ generationId: $generationId,+ prompt: $request->string('prompt')->toString(),+ currentContent: $request->input('current_content'),+ );++ return response()->json([+ 'generation_id' => $generationId,+ 'channel' => "users.{$request->user()->id}.ai-gen.{$generationId}",+ ], Response::HTTP_ACCEPTED);+ }+}diff --git a/app/Http/Controllers/App/PostAiReviewController.php b/app/Http/Controllers/App/PostAiReviewController.phpnew file mode 100644index 000000000..7ea238941--- /dev/null+++ b/app/Http/Controllers/App/PostAiReviewController.php@@ -0,0 +1,30 @@+<?php++declare(strict_types=1);++namespace App\Http\Controllers\App;++use App\Ai\Agents\PostContentReviewer;+use App\Http\Requests\App\Ai\ReviewPostContentRequest;+use App\Models\Post;+use Illuminate\Http\JsonResponse;+use Symfony\Component\HttpFoundation\Response;++class PostAiReviewController extends Controller+{+ public function review(ReviewPostContentRequest $request, Post $post): JsonResponse+ {+ $workspace = $request->user()->currentWorkspace;++ if ($post->workspace_id !== $workspace->id) {+ abort(Response::HTTP_FORBIDDEN);+ }++ $agent = new PostContentReviewer(workspace: $workspace);+ $result = $agent->prompt($request->string('content')->toString());++ return response()->json([+ 'suggestions' => data_get($result, 'suggestions', []),+ ]);+ }+}diff --git a/app/Http/Controllers/App/PostAssistantController.php b/app/Http/Controllers/App/PostAssistantController.phpdeleted file mode 100644index f09a1e052..000000000--- a/app/Http/Controllers/App/PostAssistantController.php+++ /dev/null@@ -1,102 +0,0 @@-<?php--declare(strict_types=1);--namespace App\Http\Controllers\App;--use App\Enums\Ai\Intent;-use App\Enums\AiMessage\Status;-use App\Http\Requests\App\Assistant\StoreAssistantMessageRequest;-use App\Jobs\Ai\GenerateAssistantResponse;-use App\Models\Post;-use App\Services\Ai\IntentDetector;-use Illuminate\Http\JsonResponse;-use Illuminate\Http\Request;-use Symfony\Component\HttpFoundation\Response;--class PostAssistantController extends Controller-{- public function index(Request $request, Post $post): JsonResponse- {- $workspace = $request->user()->currentWorkspace;-- if ($post->workspace_id !== $workspace->id) {- abort(Response::HTTP_FORBIDDEN);- }-- $messages = $post->aiMessages()- ->with('user')- ->oldest()- ->orderBy('id')- ->get();-- return response()->json(['messages' => $messages]);- }-- public function store(- StoreAssistantMessageRequest $request,- Post $post,- IntentDetector $intentDetector,- ): JsonResponse {- $workspace = $request->user()->currentWorkspace;-- if ($post->workspace_id !== $workspace->id) {- abort(Response::HTTP_FORBIDDEN);- }-- $validated = $request->validated();-- $prompt = data_get($validated, 'body');-- $userMessage = $post->aiMessages()->create([- 'user_id' => $request->user()->id,- 'role' => 'user',- 'content' => $prompt,- 'status' => Status::Completed,- ]);-- if ($request->hasFile('image')) {- $media = $workspace->addMedia($request->file('image'), 'assets');-- $userMessage->update([- 'attachments' => [['id' => $media->id, 'path' => $media->path, 'url' => $media->url, 'type' => 'image', 'mime_type' => $media->mime_type]],- ]);- }-- $userMessage->load('user');-- $intent = $intentDetector->detect($prompt);-- if ($intent === Intent::Blocked) {- $assistantMessage = $post->aiMessages()->create([- 'role' => 'assistant',- 'content' => __('assistant.content_blocked'),- 'status' => Status::Completed,- 'metadata' => ['intent' => $intent->value, 'error' => true],- ]);-- return response()->json([- 'user_message' => $userMessage,- 'assistant_message' => $assistantMessage,- ], Response::HTTP_CREATED);- }-- $assistantMessage = $post->aiMessages()->create([- 'role' => 'assistant',- 'content' => '',- 'status' => Status::Pending,- 'metadata' => ['intent' => $intent->value],- ]);-- GenerateAssistantResponse::dispatch(- assistantMessage: $assistantMessage,- prompt: $prompt,- intent: $intent->value,- );-- return response()->json([- 'user_message' => $userMessage,- 'assistant_message' => $assistantMessage,- ], Response::HTTP_ACCEPTED);- }-}diff --git a/app/Http/Controllers/App/PostController.php b/app/Http/Controllers/App/PostController.phpindex c607fdf88..965c103bc 100644--- a/app/Http/Controllers/App/PostController.php+++ b/app/Http/Controllers/App/PostController.php@@ -13,6 +13,7 @@ use App\Enums\Post\Status as PostStatus;use App\Enums\SocialAccount\Platform;use App\Http\Requests\App\Post\UpdatePostRequest;use App\Http\Resources\App\PlatformConfigResource;+use App\Http\Resources\App\SocialAccountResource;use App\Models\Post;use App\Models\PostPlatform;use App\Services\Social\BlueskyAnalytics;@@ -128,6 +129,20 @@ class PostController extends Controller]);}+ public function create(Request $request): Response+ {+ $workspace = $request->user()->currentWorkspace;++ $this->authorize('createPost', $workspace);++ return Inertia::render('posts/Create', [+ 'date' => $request->query('date'),+ 'socialAccounts' => SocialAccountResource::collection(+ $workspace->socialAccounts()->active()->get()+ ),+ ]);+ }+public function store(Request $request): RedirectResponse|\Symfony\Component\HttpFoundation\Response{$workspace = $request->user()->currentWorkspace;diff --git a/app/Http/Controllers/App/PostTemplateController.php b/app/Http/Controllers/App/PostTemplateController.phpnew file mode 100644index 000000000..121b9fb76--- /dev/null+++ b/app/Http/Controllers/App/PostTemplateController.php@@ -0,0 +1,148 @@+<?php++declare(strict_types=1);++namespace App\Http\Controllers\App;++use App\Actions\Post\CreatePost;+use App\Enums\Media\Type as MediaType;+use App\Http\Resources\App\PostTemplateResource;+use App\Models\Media;+use App\Models\PostTemplate;+use App\Models\SocialAccount;+use App\Models\Workspace;+use App\Services\Image\TemplateImageGenerator;+use Illuminate\Http\JsonResponse;+use Illuminate\Http\Request;+use Illuminate\Support\Facades\Storage;+use Inertia\Inertia;+use Inertia\Response as InertiaResponse;+use Symfony\Component\HttpFoundation\Response;++class PostTemplateController extends Controller+{+ public function index(Request $request): InertiaResponse+ {+ $request->validate([+ 'platform' => ['nullable', 'string'],+ 'search' => ['nullable', 'string', 'max:120'],+ ]);++ $templates = PostTemplate::query()+ ->when($request->input('platform'), fn ($q, $p) => $q->where('platform', $p))+ ->when($request->input('search'), function ($q, $search) {+ $q->where(function ($inner) use ($search): void {+ $inner->where('name', 'ilike', "%{$search}%")+ ->orWhere('description', 'ilike', "%{$search}%");+ });+ })+ ->orderBy('category')+ ->orderBy('name')+ ->paginate(config('app.pagination.default'));++ return Inertia::render('posts/templates/Index', [+ 'templates' => Inertia::scroll(fn () => PostTemplateResource::collection($templates)),+ 'filters' => [+ 'search' => $request->input('search', ''),+ 'platform' => $request->input('platform', ''),+ ],+ ]);+ }++ public function apply(Request $request, PostTemplate $template, TemplateImageGenerator $generator): JsonResponse+ {+ $workspace = $request->user()->currentWorkspace;++ $this->authorize('createPost', $workspace);++ $request->validate([+ 'social_account_id' => ['nullable', 'uuid'],+ ]);++ $socialAccountId = $request->input('social_account_id');+ $socialAccount = null;++ if ($socialAccountId) {+ $socialAccount = SocialAccount::where('id', $socialAccountId)+ ->where('workspace_id', $workspace->id)+ ->first();++ if (! $socialAccount) {+ abort(Response::HTTP_FORBIDDEN);+ }+ }++ $content = $this->interpolate($template->content, $workspace);++ $media = [];++ if ($socialAccount && $template->slides) {+ foreach ($template->slides as $i => $slide) {+ // First slide is always Template A (full-bleed cover); subsequent slides+ // alternate so even-indexed are A and odd-indexed are B.+ $tmpl = $i === 0 ? 'A' : ($i % 2 === 0 ? 'A' : 'B');+ $path = $generator->render(+ template: $tmpl,+ workspace: $workspace,+ socialAccount: $socialAccount,+ title: $this->interpolate(data_get($slide, 'title', ''), $workspace),+ body: $this->interpolate(data_get($slide, 'body', ''), $workspace),+ imageKeywords: data_get($slide, 'image_keywords', []),+ );++ if ($path) {+ $mediaItem = $this->createMediaItem($workspace, $path);+ $media[] = $mediaItem;+ }+ }+ }++ $post = CreatePost::execute($workspace, $request->user(), [+ 'content' => $content,+ 'media' => $media,+ ]);++ return response()->json([+ 'post_id' => $post->id,+ 'redirect_url' => route('app.posts.edit', $post),+ ]);+ }++ private function interpolate(string $text, Workspace $workspace): string+ {+ return strtr($text, [+ '{{brand_name}}' => $workspace->name ?? '',+ '{{brand_description}}' => $workspace->brand_description ?? '',+ ]);+ }++ /**+ * Create a Media record for a generated image and return it as an array.+ *+ * @return array<string, mixed>+ */+ private function createMediaItem(Workspace $workspace, string $path): array+ {+ $media = new Media([+ 'collection' => 'ai-generated',+ 'type' => MediaType::Image,+ 'path' => $path,+ 'original_filename' => basename($path),+ 'mime_type' => 'image/webp',+ 'size' => Storage::size($path),+ 'order' => 0,+ ]);++ $media->mediable_type = Workspace::class;+ $media->mediable_id = $workspace->id;+ $media->save();++ return [+ 'id' => $media->id,+ 'path' => $media->path,+ 'url' => $media->url,+ 'type' => 'image',+ 'mime_type' => 'image/webp',+ ];+ }+}diff --git a/app/Http/Controllers/App/WorkspaceController.php b/app/Http/Controllers/App/WorkspaceController.phpindex 25cb24fbd..769fd3842 100644--- a/app/Http/Controllers/App/WorkspaceController.php+++ b/app/Http/Controllers/App/WorkspaceController.php@@ -7,6 +7,7 @@ namespace App\Http\Controllers\App;use App\Actions\Ai\AutofillBrand;use App\Actions\Workspace\CreateWorkspace;use App\Actions\Workspace\DeleteWorkspace;+use App\Enums\Workspace\BrandFont;use App\Http\Requests\App\Workspace\StoreWorkspaceRequest;use App\Http\Requests\App\Workspace\UpdateWorkspaceRequest;use App\Http\Resources\App\WorkspaceMemberResource;@@ -158,6 +159,7 @@ class WorkspaceController extends Controllerreturn Inertia::render('settings/Brand', ['workspace' => $workspace,+ 'availableFonts' => BrandFont::values(),]);}diff --git a/app/Http/Requests/App/Ai/GeneratePostContentRequest.php b/app/Http/Requests/App/Ai/GeneratePostContentRequest.phpnew file mode 100644index 000000000..c8e1c8543--- /dev/null+++ b/app/Http/Requests/App/Ai/GeneratePostContentRequest.php@@ -0,0 +1,26 @@+<?php++declare(strict_types=1);++namespace App\Http\Requests\App\Ai;++use Illuminate\Foundation\Http\FormRequest;++class GeneratePostContentRequest extends FormRequest+{+ public function authorize(): bool+ {+ return true;+ }++ /**+ * @return array<string, array<int, string>>+ */+ public function rules(): array+ {+ return [+ 'prompt' => ['required', 'string', 'max:2000'],+ 'current_content' => ['nullable', 'string', 'max:10000'],+ ];+ }+}diff --git a/app/Http/Requests/App/Ai/ReviewPostContentRequest.php b/app/Http/Requests/App/Ai/ReviewPostContentRequest.phpnew file mode 100644index 000000000..7d6aace00--- /dev/null+++ b/app/Http/Requests/App/Ai/ReviewPostContentRequest.php@@ -0,0 +1,25 @@+<?php++declare(strict_types=1);++namespace App\Http\Requests\App\Ai;++use Illuminate\Foundation\Http\FormRequest;++class ReviewPostContentRequest extends FormRequest+{+ public function authorize(): bool+ {+ return true;+ }++ /**+ * @return array<string, array<int, string>>+ */+ public function rules(): array+ {+ return [+ 'content' => ['required', 'string', 'max:10000'],+ ];+ }+}diff --git a/app/Http/Requests/App/Ai/StartPostCreationRequest.php b/app/Http/Requests/App/Ai/StartPostCreationRequest.phpnew file mode 100644index 000000000..debf38163--- /dev/null+++ b/app/Http/Requests/App/Ai/StartPostCreationRequest.php@@ -0,0 +1,35 @@+<?php++declare(strict_types=1);++namespace App\Http\Requests\App\Ai;++use App\Enums\PostPlatform\ContentType;+use Illuminate\Foundation\Http\FormRequest;+use Illuminate\Validation\Rule;++class StartPostCreationRequest extends FormRequest+{+ public function authorize(): bool+ {+ return true;+ }++ /**+ * @return array<string, mixed>+ */+ public function rules(): array+ {+ return [+ 'format' => [+ 'required',+ 'string',+ Rule::in(array_map(fn (ContentType $t) => $t->value, ContentType::aiSupported())),+ ],+ 'social_account_id' => ['nullable', 'uuid'],+ 'image_count' => ['nullable', 'integer', 'min:0', 'max:10'],+ // Stories accept 1 image, no carousel — the wizard handles this client-side too.+ 'prompt' => ['required', 'string', 'max:2000'],+ ];+ }+}diff --git a/app/Http/Requests/App/Assistant/StoreAssistantMessageRequest.php b/app/Http/Requests/App/Assistant/StoreAssistantMessageRequest.phpdeleted file mode 100644index 264049ed9..000000000--- a/app/Http/Requests/App/Assistant/StoreAssistantMessageRequest.php+++ /dev/null@@ -1,23 +0,0 @@-<?php--declare(strict_types=1);--namespace App\Http\Requests\App\Assistant;--use Illuminate\Foundation\Http\FormRequest;--class StoreAssistantMessageRequest extends FormRequest-{- public function authorize(): bool- {- return true;- }-- public function rules(): array- {- return [- 'body' => ['required', 'string', 'max:2000'],- 'image' => ['nullable', 'file', 'max:10240', 'mimetypes:image/jpeg,image/png,image/gif,image/webp'],- ];- }-}diff --git a/app/Http/Requests/App/Workspace/StoreWorkspaceRequest.php b/app/Http/Requests/App/Workspace/StoreWorkspaceRequest.phpindex 24b33764a..6a4e074af 100644--- a/app/Http/Requests/App/Workspace/StoreWorkspaceRequest.php+++ b/app/Http/Requests/App/Workspace/StoreWorkspaceRequest.php@@ -4,7 +4,9 @@ declare(strict_types=1);namespace App\Http\Requests\App\Workspace;+use App\Enums\Workspace\BrandFont;use Illuminate\Foundation\Http\FormRequest;+use Illuminate\Validation\Rule;class StoreWorkspaceRequest extends FormRequest{@@ -26,6 +28,7 @@ class StoreWorkspaceRequest extends FormRequest'brand_color' => $hex,'background_color' => $hex,'text_color' => $hex,+ 'brand_font' => ['sometimes', 'string', Rule::in(BrandFont::values())],'content_language' => ['nullable', 'string', 'in:en,pt-BR,es'],'logo_url' => ['nullable', 'url', 'max:1024'],];diff --git a/app/Http/Requests/App/Workspace/UpdateWorkspaceRequest.php b/app/Http/Requests/App/Workspace/UpdateWorkspaceRequest.phpindex a1ea17867..253ede756 100644--- a/app/Http/Requests/App/Workspace/UpdateWorkspaceRequest.php+++ b/app/Http/Requests/App/Workspace/UpdateWorkspaceRequest.php@@ -4,7 +4,9 @@ declare(strict_types=1);namespace App\Http\Requests\App\Workspace;+use App\Enums\Workspace\BrandFont;use Illuminate\Foundation\Http\FormRequest;+use Illuminate\Validation\Rule;class UpdateWorkspaceRequest extends FormRequest{@@ -26,6 +28,7 @@ class UpdateWorkspaceRequest extends FormRequest'brand_color' => $hex,'background_color' => $hex,'text_color' => $hex,+ 'brand_font' => ['required', 'string', Rule::in(BrandFont::values())],'content_language' => ['sometimes', 'string', 'in:en,pt-BR,es'],];}diff --git a/app/Http/Resources/App/PostTemplateResource.php b/app/Http/Resources/App/PostTemplateResource.phpnew file mode 100644index 000000000..b85e41d6c--- /dev/null+++ b/app/Http/Resources/App/PostTemplateResource.php@@ -0,0 +1,27 @@+<?php++declare(strict_types=1);++namespace App\Http\Resources\App;++use Illuminate\Http\Request;+use Illuminate\Http\Resources\Json\JsonResource;++class PostTemplateResource extends JsonResource+{+ /** @return array<string, mixed> */+ public function toArray(Request $request): array+ {+ return [+ 'id' => $this->id,+ 'name' => $this->name,+ 'description' => $this->description,+ 'category' => $this->category,+ 'platform' => $this->platform,+ 'content' => $this->content,+ 'slides' => $this->slides,+ 'image_count' => $this->image_count,+ 'image_keywords' => $this->image_keywords,+ ];+ }+}diff --git a/app/Jobs/Ai/GenerateAssistantResponse.php b/app/Jobs/Ai/GenerateAssistantResponse.phpdeleted file mode 100644index e3e6b4b62..000000000--- a/app/Jobs/Ai/GenerateAssistantResponse.php+++ /dev/null@@ -1,151 +0,0 @@-<?php--declare(strict_types=1);--namespace App\Jobs\Ai;--use App\Ai\Agents\SocialMediaAssistant;-use App\Ai\Tools\AttachmentCollector;-use App\Enums\Ai\Intent;-use App\Enums\Ai\UsageType;-use App\Enums\AiMessage\Status;-use App\Events\Ai\AssistantMessageUpdated;-use App\Features\AiImagesLimit;-use App\Features\AiVideosLimit;-use App\Models\AiMessage;-use App\Models\AiUsageLog;-use App\Services\Ai\HumanizerService;-use App\Services\Ai\IntentDetector;-use Illuminate\Contracts\Queue\ShouldQueue;-use Illuminate\Foundation\Queue\Queueable;-use Illuminate\Support\Facades\Log;-use Laravel\Pennant\Feature;-use RuntimeException;-use Throwable;--class GenerateAssistantResponse implements ShouldQueue-{- use Queueable;-- public int $tries = 1;-- public int $timeout = 900;-- public function __construct(- public AiMessage $assistantMessage,- public string $prompt,- public string $intent,- ) {- $this->onQueue('ai');- }-- public function handle(IntentDetector $intentDetector, AttachmentCollector $collector, HumanizerService $humanizer): void- {- $this->assistantMessage->update(['status' => Status::Generating]);-- AssistantMessageUpdated::dispatch($this->assistantMessage);-- $post = $this->assistantMessage->post()->with('postPlatforms')->firstOrFail();- $workspace = $post->workspace;-- $intent = Intent::tryFrom($this->intent) ?? Intent::Text;-- $assistantMessages = $post->aiMessages()- ->where('role', 'assistant')- ->where('id', '!=', $this->assistantMessage->id)- ->get();-- $imagesInThread = $assistantMessages->sum(- fn ($m) => collect($m->attachments ?? [])->where('type', 'image')->count()- );-- $videosInThread = $assistantMessages->sum(- fn ($m) => collect($m->attachments ?? [])->where('type', 'video')->count()- );-- $imageLimit = (int) Feature::for($workspace->account)->value(AiImagesLimit::class);- $imageUsed = AiUsageLog::monthlyCount($workspace->account_id, UsageType::Image);- $imageRemaining = max(0, $imageLimit - $imageUsed);-- $videoLimit = (int) Feature::for($workspace->account)->value(AiVideosLimit::class);- $videoUsed = AiUsageLog::monthlyCount($workspace->account_id, UsageType::Video);- $videoRemaining = max(0, $videoLimit - $videoUsed);-- $stateContext = sprintf(- "[Session state — use this to track progress and respect quotas]\n".- "- Images already generated in this conversation: %d\n".- "- Videos already generated in this conversation: %d\n".- "- Monthly quota remaining: %d images, %d videos\n",- $imagesInThread,- $videosInThread,- $imageRemaining,- $videoRemaining,- );-- $promptWithState = "{$stateContext}\n{$this->prompt}";-- $collector->clear();-- $response = (new SocialMediaAssistant(- workspace: $workspace,- post: $post,- userId: $this->assistantMessage->user_id,- ))->prompt($promptWithState);-- $responseContent = (string) ($response['message'] ?? $response->text ?? '');- $quickActions = $response['quick_actions'] ?? [];-- $attachments = $collector->all();-- // Only humanize actual post captions (turns that generated media).- // Conversational turns (greetings, questions, plan summaries) skip- // the humanizer to preserve the agent's natural short responses.- if (! empty($attachments)) {- $responseContent = $humanizer->humanize($responseContent, $workspace);- }-- $generatedIntent = $intent->value;- foreach ($attachments as $attachment) {- if (isset($attachment['type'])) {- $generatedIntent = $attachment['type'];- break;- }- }-- $this->assistantMessage->update([- 'content' => $responseContent,- 'attachments' => $attachments,- 'status' => Status::Completed,- 'metadata' => array_merge(- $this->assistantMessage->metadata ?? [],- ['intent' => $generatedIntent, 'quick_actions' => $quickActions],- ),- ]);-- AssistantMessageUpdated::dispatch($this->assistantMessage);- }-- public function failed(?Throwable $exception): void- {- Log::error('GenerateAssistantResponse job failed', [- 'assistant_message_id' => $this->assistantMessage->id,- 'error' => $exception?->getMessage(),- ]);-- $errorMessage = $exception instanceof RuntimeException- ? $exception->getMessage()- : __('assistant.error');-- $this->assistantMessage->update([- 'content' => $errorMessage,- 'status' => Status::Failed,- 'error_message' => $exception?->getMessage(),- 'metadata' => array_merge(- $this->assistantMessage->metadata ?? [],- ['error' => true],- ),- ]);-- AssistantMessageUpdated::dispatch($this->assistantMessage);- }-}diff --git a/app/Jobs/Ai/StreamPostContent.php b/app/Jobs/Ai/StreamPostContent.phpnew file mode 100644index 000000000..7a7f2ff83--- /dev/null+++ b/app/Jobs/Ai/StreamPostContent.php@@ -0,0 +1,52 @@+<?php++declare(strict_types=1);++namespace App\Jobs\Ai;++use App\Ai\Agents\PostContentStreamer;+use App\Models\Workspace;+use Illuminate\Broadcasting\PrivateChannel;+use Illuminate\Bus\Queueable;+use Illuminate\Contracts\Queue\ShouldQueue;+use Illuminate\Foundation\Bus\Dispatchable;+use Illuminate\Queue\InteractsWithQueue;+use Illuminate\Queue\SerializesModels;+use Illuminate\Support\Facades\Log;++class StreamPostContent implements ShouldQueue+{+ use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;++ public function __construct(+ public string $workspaceId,+ public string $userId,+ public string $generationId,+ public string $prompt,+ public ?string $currentContent,+ ) {+ $this->onQueue('ai');+ }++ public function handle(): void+ {+ $workspace = Workspace::findOrFail($this->workspaceId);++ $agent = new PostContentStreamer(+ workspace: $workspace,+ currentContent: $this->currentContent,+ );++ $channel = new PrivateChannel("users.{$this->userId}.ai-gen.{$this->generationId}");++ try {+ $agent->broadcast($this->prompt, $channel, now: true);+ } catch (\Throwable $e) {+ Log::error('PostContentGenerator stream failed', [+ 'generation_id' => $this->generationId,+ 'error' => $e->getMessage(),+ ]);+ throw $e;+ }+ }+}diff --git a/app/Jobs/Ai/StreamPostCreation.php b/app/Jobs/Ai/StreamPostCreation.phpnew file mode 100644index 000000000..77e003e3e--- /dev/null+++ b/app/Jobs/Ai/StreamPostCreation.php@@ -0,0 +1,283 @@+<?php++declare(strict_types=1);++namespace App\Jobs\Ai;++use App\Ai\Agents\PostContentGenerator;+use App\Ai\Agents\PostContentHumanizer;+use App\Enums\PostPlatform\ContentType;+use App\Events\Ai\PostCreationReady;+use App\Models\SocialAccount;+use App\Models\Workspace;+use App\Services\Image\BrandColorMapper;+use App\Services\Image\TemplateImageGenerator;+use App\Services\Unsplash\UnsplashClient;+use Illuminate\Bus\Queueable;+use Illuminate\Contracts\Queue\ShouldQueue;+use Illuminate\Foundation\Bus\Dispatchable;+use Illuminate\Queue\InteractsWithQueue;+use Illuminate\Queue\SerializesModels;+use Illuminate\Support\Facades\Cache;+use Illuminate\Support\Facades\Log;++class StreamPostCreation implements ShouldQueue+{+ use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;++ public function __construct(+ public string $userId,+ public string $creationId,+ public string $workspaceId,+ public string $format,+ public ?string $socialAccountId,+ public int $imageCount,+ public string $prompt,+ ) {+ $this->onQueue('ai');+ }++ public function handle(): void+ {+ $workspace = Workspace::findOrFail($this->workspaceId);+ $socialAccount = $this->socialAccountId ? SocialAccount::find($this->socialAccountId) : null;++ $isCarousel = $this->format === 'instagram_carousel';+ $agentFormat = $isCarousel ? 'carousel' : 'single';+ $slideCount = $isCarousel && $this->imageCount > 0 ? $this->imageCount : 1;++ $agent = new PostContentGenerator(+ workspace: $workspace,+ format: $agentFormat,+ slideCount: $slideCount,+ platformContext: $this->format,+ );++ try {+ $response = $agent->prompt($this->prompt);++ // StructuredAgentResponse implements ArrayAccess: access via $response['key']+ $structured = $response->structured ?? [];++ // Second pass: rewrite human-readable text to remove AI-tells. Image+ // keywords pass through untouched (they need to stay in English).+ $structured = $this->humanize($workspace, $structured, $isCarousel ? 'carousel' : 'single');++ if ($isCarousel) {+ $this->handleCarousel($workspace, $socialAccount, $structured);+ } else {+ $this->handleSingle($workspace, $socialAccount, $structured);+ }+ } catch (\Throwable $e) {+ Log::error('StreamPostCreation failed', [+ 'creation_id' => $this->creationId,+ 'error' => $e->getMessage(),+ ]);++ PostCreationReady::dispatch($this->userId, $this->creationId, null, $e->getMessage());++ throw $e;+ }+ }++ /**+ * Run the structured generator output through the humanizer pass and merge+ * the humanized text fields back over the original structure (preserving+ * image_keywords and slide order/count). Failures are logged and the+ * original structure is returned so generation never breaks because of the+ * polish step.+ *+ * @param array<string, mixed> $structured+ * @return array<string, mixed>+ */+ /**+ * Look up the AI image dimensions for the current format. Falls back to+ * the generator's defaults (4:5 portrait) if the format string isn't a+ * known ContentType case.+ *+ * @return array{width: int, height: int}+ */+ private function dimensionsForFormat(): array+ {+ $type = ContentType::tryFrom($this->format);++ return $type+ ? $type->aiImageDimensions()+ : ['width' => TemplateImageGenerator::DEFAULT_WIDTH, 'height' => TemplateImageGenerator::DEFAULT_HEIGHT];+ }++ private function humanize(Workspace $workspace, array $structured, string $format): array+ {+ try {+ $input = $format === 'carousel'+ ? [+ 'caption' => data_get($structured, 'caption', ''),+ 'slides' => array_map(+ fn ($s) => [+ 'title' => data_get($s, 'title', ''),+ 'body' => data_get($s, 'body', ''),+ ],+ data_get($structured, 'slides', []),+ ),+ ]+ : [+ 'content' => data_get($structured, 'content', ''),+ 'image_title' => data_get($structured, 'image_title', ''),+ 'image_body' => data_get($structured, 'image_body', ''),+ ];++ $humanizer = new PostContentHumanizer($workspace, $format);+ $response = $humanizer->prompt(json_encode($input, JSON_UNESCAPED_UNICODE));+ $humanized = $response->structured ?? [];+ } catch (\Throwable $e) {+ Log::warning('PostContentHumanizer failed, using generator output as-is', [+ 'creation_id' => $this->creationId,+ 'error' => $e->getMessage(),+ ]);++ return $structured;+ }++ if ($format === 'carousel') {+ $structured['caption'] = data_get($humanized, 'caption', $structured['caption'] ?? '');+ $originalSlides = $structured['slides'] ?? [];+ $humanizedSlides = data_get($humanized, 'slides', []);++ foreach ($originalSlides as $i => $slide) {+ if (isset($humanizedSlides[$i])) {+ $originalSlides[$i]['title'] = data_get($humanizedSlides[$i], 'title', $slide['title'] ?? '');+ $originalSlides[$i]['body'] = data_get($humanizedSlides[$i], 'body', $slide['body'] ?? '');+ }+ }++ $structured['slides'] = $originalSlides;+ } else {+ $structured['content'] = data_get($humanized, 'content', $structured['content'] ?? '');+ $structured['image_title'] = data_get($humanized, 'image_title', $structured['image_title'] ?? '');+ $structured['image_body'] = data_get($humanized, 'image_body', $structured['image_body'] ?? '');+ }++ return $structured;+ }++ /**+ * @param array<string, mixed> $structured+ */+ private function handleCarousel(Workspace $workspace, ?SocialAccount $socialAccount, array $structured): void+ {+ $caption = data_get($structured, 'caption', '');+ $slides = data_get($structured, 'slides', []);++ $renderedSlides = [];++ if ($socialAccount) {+ $generator = new TemplateImageGenerator(new UnsplashClient, new BrandColorMapper);+ ['width' => $width, 'height' => $height] = $this->dimensionsForFormat();++ foreach ($slides as $i => $slide) {+ // First slide is always Template A (full-bleed cover); subsequent slides+ // alternate so even-indexed are A and odd-indexed are B.+ $template = $i === 0 ? 'A' : ($i % 2 === 0 ? 'A' : 'B');++ $path = $generator->render(+ template: $template,+ workspace: $workspace,+ socialAccount: $socialAccount,+ title: data_get($slide, 'title', ''),+ body: data_get($slide, 'body', ''),+ imageKeywords: data_get($slide, 'image_keywords', []),+ width: $width,+ height: $height,+ );++ $renderedSlides[] = [+ 'title' => data_get($slide, 'title', ''),+ 'body' => data_get($slide, 'body', ''),+ 'image_path' => $path,+ ];+ }++ // Auto-append closing slide (Template C) at the end of the carousel.+ $closingPath = $generator->renderClosing(+ workspace: $workspace,+ socialAccount: $socialAccount,+ width: $width,+ height: $height,+ );++ if ($closingPath) {+ $renderedSlides[] = [+ 'title' => null,+ 'body' => null,+ 'image_path' => $closingPath,+ 'is_closing' => true,+ ];+ }+ } else {+ foreach ($slides as $slide) {+ $renderedSlides[] = [+ 'title' => data_get($slide, 'title', ''),+ 'body' => data_get($slide, 'body', ''),+ 'image_path' => null,+ ];+ }+ }++ Cache::put("ai-creation:{$this->creationId}", [+ 'workspace_id' => $this->workspaceId,+ 'user_id' => $this->userId,+ 'format' => $this->format,+ 'social_account_id' => $this->socialAccountId,+ 'content' => $caption,+ 'slides' => $renderedSlides,+ 'created_at' => now()->toIso8601String(),+ ], now()->addMinutes(30));++ PostCreationReady::dispatch($this->userId, $this->creationId, $caption);+ }++ /**+ * @param array<string, mixed> $structured+ */+ private function handleSingle(Workspace $workspace, ?SocialAccount $socialAccount, array $structured): void+ {+ $content = data_get($structured, 'content', data_get($structured, 'text', ''));+ $imageTitle = data_get($structured, 'image_title', '');+ $imageBody = data_get($structured, 'image_body', '');+ $keywords = data_get($structured, 'image_keywords', []);++ $imagePath = null;++ if ($this->imageCount > 0 && $socialAccount) {+ $generator = new TemplateImageGenerator(new UnsplashClient, new BrandColorMapper);+ ['width' => $width, 'height' => $height] = $this->dimensionsForFormat();++ $imagePath = $generator->render(+ template: 'A',+ workspace: $workspace,+ socialAccount: $socialAccount,+ title: $imageTitle,+ body: $imageBody,+ imageKeywords: $keywords,+ width: $width,+ height: $height,+ );+ }++ Cache::put("ai-creation:{$this->creationId}", [+ 'workspace_id' => $this->workspaceId,+ 'user_id' => $this->userId,+ 'format' => $this->format,+ 'social_account_id' => $this->socialAccountId,+ 'image_count' => $this->imageCount,+ 'content' => $content,+ 'image_title' => $imageTitle,+ 'image_body' => $imageBody,+ 'image_keywords' => $keywords,+ 'image_path' => $imagePath,+ 'created_at' => now()->toIso8601String(),+ ], now()->addMinutes(30));++ PostCreationReady::dispatch($this->userId, $this->creationId, $content);+ }+}diff --git a/app/Models/AiMessage.php b/app/Models/AiMessage.phpdeleted file mode 100644index 90779b57b..000000000--- a/app/Models/AiMessage.php+++ /dev/null@@ -1,63 +0,0 @@-<?php--declare(strict_types=1);--namespace App\Models;--use App\Enums\AiMessage\Status;-use Database\Factories\AiMessageFactory;-use Illuminate\Database\Eloquent\Casts\Attribute;-use Illuminate\Database\Eloquent\Concerns\HasUuids;-use Illuminate\Database\Eloquent\Factories\HasFactory;-use Illuminate\Database\Eloquent\Model;-use Illuminate\Database\Eloquent\Relations\BelongsTo;-use Illuminate\Support\Str;--class AiMessage extends Model-{- /** @use HasFactory<AiMessageFactory> */- use HasFactory, HasUuids;-- protected $fillable = [- 'post_id',- 'user_id',- 'role',- 'content',- 'attachments',- 'status',- 'error_message',- 'metadata',- ];-- protected function casts(): array- {- return [- 'attachments' => 'array',- 'metadata' => 'array',- 'status' => Status::class,- ];- }-- /**- * @return array<int, string>- */- protected $appends = ['content_html'];-- protected function contentHtml(): Attribute- {- return Attribute::get(fn () => $this->role === 'assistant' && $this->content- ? Str::markdown($this->content)- : null- );- }-- public function post(): BelongsTo- {- return $this->belongsTo(Post::class);- }-- public function user(): BelongsTo- {- return $this->belongsTo(User::class);- }-}diff --git a/app/Models/Post.php b/app/Models/Post.phpindex 9663c3de2..30aeb4efc 100644--- a/app/Models/Post.php+++ b/app/Models/Post.php@@ -69,11 +69,6 @@ class Post extends Modelreturn $this->hasMany(PostPlatform::class)->orderBy('id');}- public function aiMessages(): HasMany- {- return $this->hasMany(AiMessage::class);- }-public function comments(): HasMany{return $this->hasMany(PostComment::class);diff --git a/app/Models/PostTemplate.php b/app/Models/PostTemplate.phpnew file mode 100644index 000000000..e6bea10fc--- /dev/null+++ b/app/Models/PostTemplate.php@@ -0,0 +1,36 @@+<?php++declare(strict_types=1);++namespace App\Models;++use Database\Factories\PostTemplateFactory;+use Illuminate\Database\Eloquent\Concerns\HasUuids;+use Illuminate\Database\Eloquent\Factories\HasFactory;+use Illuminate\Database\Eloquent\Model;++class PostTemplate extends Model+{+ /** @use HasFactory<PostTemplateFactory> */+ use HasFactory, HasUuids;++ protected $fillable = [+ 'name',+ 'description',+ 'category',+ 'platform',+ 'content',+ 'slides',+ 'image_count',+ 'image_keywords',+ ];++ protected function casts(): array+ {+ return [+ 'slides' => 'array',+ 'image_keywords' => 'array',+ 'image_count' => 'integer',+ ];+ }+}diff --git a/app/Models/Workspace.php b/app/Models/Workspace.phpindex 1e6ea5abc..1720e1a9f 100644--- a/app/Models/Workspace.php+++ b/app/Models/Workspace.php@@ -30,6 +30,7 @@ class Workspace extends Model'brand_color','background_color','text_color',+ 'brand_font','content_language',];diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.phpindex 880e9ebd5..2192df739 100644--- a/app/Providers/AppServiceProvider.php+++ b/app/Providers/AppServiceProvider.php@@ -16,11 +16,9 @@ use App\Ai\PlatformRules\TikTokRules;use App\Ai\PlatformRules\XRules;use App\Ai\PlatformRules\YouTubeRules;use App\Ai\Providers\ExtendedGeminiProvider;-use App\Ai\Tools\AttachmentCollector;use App\Enums\SocialAccount\Platform;use App\Listeners\StripeEventListener;use App\Models\Account;-use App\Models\AiMessage;use App\Models\AiUsageLog;use App\Models\Invite;use App\Models\Media;@@ -82,8 +80,6 @@ class AppServiceProvider extends ServiceProvider$this->app->register(\Laravel\Telescope\TelescopeServiceProvider::class);$this->app->register(TelescopeServiceProvider::class);}-- $this->app->scoped(AttachmentCollector::class);}/**@@ -149,7 +145,6 @@ class AppServiceProvider extends ServiceProvider{Relation::enforceMorphMap(['account' => Account::class,- 'aiMessage' => AiMessage::class,'aiUsageLog' => AiUsageLog::class,'invite' => Invite::class,'media' => Media::class,diff --git a/app/Services/Ai/HumanizerService.php b/app/Services/Ai/HumanizerService.phpdeleted file mode 100644index 5cfc3503d..000000000--- a/app/Services/Ai/HumanizerService.php+++ /dev/null@@ -1,42 +0,0 @@-<?php--declare(strict_types=1);--namespace App\Services\Ai;--use App\Ai\Agents\Humanizer;-use App\Models\Workspace;-use Illuminate\Support\Facades\Log;-use Throwable;--class HumanizerService-{- public function humanize(string $text, Workspace $workspace): string- {- if (trim($text) === '') {- return $text;- }-- $instructions = view('prompts.assistant.humanize', [- 'brand_name' => $workspace->name,- 'brand_tone' => $workspace->brand_tone,- 'brand_voice_notes' => $workspace->brand_voice_notes,- 'content_language' => $workspace->content_language,- ])->render();-- try {- $response = (new Humanizer($instructions))->prompt($text);-- $rewritten = trim((string) $response->text);-- return $rewritten !== '' ? $rewritten : $text;- } catch (Throwable $e) {- Log::warning('Humanizer pass failed; returning original text.', [- 'workspace_id' => $workspace->id,- 'error' => $e->getMessage(),- ]);-- return $text;- }- }-}diff --git a/app/Services/Ai/IntentDetector.php b/app/Services/Ai/IntentDetector.phpdeleted file mode 100644index 804b28ba1..000000000--- a/app/Services/Ai/IntentDetector.php+++ /dev/null@@ -1,64 +0,0 @@-<?php--declare(strict_types=1);--namespace App\Services\Ai;--use App\Enums\Ai\Intent;--class IntentDetector-{- public function detect(string $prompt): Intent- {- $lower = mb_strtolower($prompt);-- if ($this->isProhibited($lower)) {- return Intent::Blocked;- }-- $videoKeywords = ['video', 'clip', 'reel', 'animation', 'animate', 'footage'];- $imageKeywords = ['image', 'photo', 'picture', 'illustration', 'draw', 'design', 'visual', 'graphic'];- $audioKeywords = ['audio', 'voice', 'narrate', 'speak', 'tts', 'voiceover', 'text to speech'];-- foreach ($videoKeywords as $keyword) {- if (str_contains($lower, $keyword)) {- return Intent::Video;- }- }-- foreach ($imageKeywords as $keyword) {- if (str_contains($lower, $keyword)) {- return Intent::Image;- }- }-- foreach ($audioKeywords as $keyword) {- if (str_contains($lower, $keyword)) {- return Intent::Audio;- }- }-- return Intent::Text;- }-- private function isProhibited(string $lower): bool- {- $prohibited = [- 'porn', 'xxx', 'nude', 'naked', 'hentai', 'nsfw',- 'cocaine', 'heroin', 'meth',- 'murder', 'suicide', 'self-harm', 'self harm',- 'pedophil', 'child porn', 'underage',- 'terrorist', 'terrorism',- 'racist', 'racism', 'nazi', 'white supremac',- 'gore', 'torture', 'dismember',- ];-- foreach ($prohibited as $word) {- if (preg_match('/\b'.preg_quote($word, '/').'/i', $lower)) {- return true;- }- }-- return false;- }-}diff --git a/app/Services/Ai/TemplateContextResolver.php b/app/Services/Ai/TemplateContextResolver.phpnew file mode 100644index 000000000..95ab3b597--- /dev/null+++ b/app/Services/Ai/TemplateContextResolver.php@@ -0,0 +1,25 @@+<?php++declare(strict_types=1);++namespace App\Services\Ai;++use App\Models\PostTemplate;+use Illuminate\Database\Eloquent\Collection;++class TemplateContextResolver+{+ /**+ * Pick up to N templates relevant to the platform.+ *+ * @return Collection<int, PostTemplate>+ */+ public function relevantFor(?string $platform, int $limit = 3): Collection+ {+ return PostTemplate::query()+ ->when($platform, fn ($q, $p) => $q->where('platform', $p))+ ->inRandomOrder()+ ->limit($limit)+ ->get();+ }+}diff --git a/app/Services/Image/BrandColorMapper.php b/app/Services/Image/BrandColorMapper.phpnew file mode 100644index 000000000..0017c402f--- /dev/null+++ b/app/Services/Image/BrandColorMapper.php@@ -0,0 +1,90 @@+<?php++declare(strict_types=1);++namespace App\Services\Image;++use App\Models\Workspace;++class BrandColorMapper+{+ /**+ * Convert a workspace's brand color (hex) to an Unsplash color bucket.+ * Falls back to background_color, then null. Null = no color filter.+ */+ public function fromWorkspace(Workspace $workspace): ?string+ {+ $hex = $workspace->brand_color ?: $workspace->background_color;++ return $hex ? $this->fromHex($hex) : null;+ }++ public function fromHex(string $hex): ?string+ {+ $hex = ltrim($hex, '#');+ if (strlen($hex) !== 6 || ! ctype_xdigit($hex)) {+ return null;+ }++ [$r, $g, $b] = [+ hexdec(substr($hex, 0, 2)),+ hexdec(substr($hex, 2, 2)),+ hexdec(substr($hex, 4, 2)),+ ];++ [$h, $s, $l] = $this->rgbToHsl($r, $g, $b);++ // Grayscale handling+ if ($s < 0.10) {+ if ($l < 0.30) {+ return 'black';+ }+ if ($l > 0.70) {+ return 'white';+ }++ return 'black_and_white';+ }++ $hueDeg = $h * 360;++ return match (true) {+ $hueDeg >= 345 || $hueDeg < 15 => 'red',+ $hueDeg < 45 => 'orange',+ $hueDeg < 65 => 'yellow',+ $hueDeg < 150 => 'green',+ $hueDeg < 200 => 'teal',+ $hueDeg < 260 => 'blue',+ $hueDeg < 300 => 'purple',+ $hueDeg < 345 => 'magenta',+ default => null,+ };+ }++ /** @return array{0: float, 1: float, 2: float} */+ private function rgbToHsl(int $r, int $g, int $b): array+ {+ $r /= 255;+ $g /= 255;+ $b /= 255;+ $max = max($r, $g, $b);+ $min = min($r, $g, $b);+ $l = ($max + $min) / 2;++ if ($max === $min) {+ return [0, 0, $l];+ }++ $d = $max - $min;+ $s = $l > 0.5 ? $d / (2 - $max - $min) : $d / ($max + $min);++ $h = match ($max) {+ $r => ($g - $b) / $d + ($g < $b ? 6 : 0),+ $g => ($b - $r) / $d + 2,+ default => ($r - $g) / $d + 4,+ };+ $h /= 6;++ return [$h, $s, $l];+ }+}diff --git a/app/Services/Image/TemplateImageGenerator.php b/app/Services/Image/TemplateImageGenerator.phpnew file mode 100644index 000000000..c9abdcd92--- /dev/null+++ b/app/Services/Image/TemplateImageGenerator.php@@ -0,0 +1,687 @@+<?php++declare(strict_types=1);++namespace App\Services\Image;++use App\Models\SocialAccount;+use App\Models\Workspace;+use App\Services\Unsplash\UnsplashClient;+use Illuminate\Support\Facades\Log;+use Illuminate\Support\Facades\Storage;+use Intervention\Image\Drivers\Gd\Driver;+use Intervention\Image\Encoders\WebpEncoder;+use Intervention\Image\ImageManager;+use Intervention\Image\Interfaces\ImageInterface;+use Intervention\Image\Typography\FontFactory;++class TemplateImageGenerator+{+ public const DEFAULT_WIDTH = 1080;++ public const DEFAULT_HEIGHT = 1350;++ /** Active canvas width. Set per render call so templates can scale. */+ private int $width = self::DEFAULT_WIDTH;++ /** Active canvas height. Set per render call so templates can scale. */+ private int $height = self::DEFAULT_HEIGHT;++ public function __construct(+ private UnsplashClient $unsplash,+ private BrandColorMapper $colorMapper,+ ) {}++ /**+ * Render a slide using Template A (full bleed) or Template B (photo card).+ *+ * @param array<int, string> $imageKeywords+ * @return string|null The storage path, or null on failure.+ */+ /**+ * Render a closing/CTA slide (Template C) for the end of a carousel.+ * Solid brand-colored background with centered avatar + display name ++ * short divider + @handle.+ */+ public function renderClosing(+ Workspace $workspace,+ SocialAccount $socialAccount,+ int $width = self::DEFAULT_WIDTH,+ int $height = self::DEFAULT_HEIGHT,+ ): ?string {+ $this->width = $width;+ $this->height = $height;++ $bgColor = $workspace->background_color ?? '#0F172A';+ $brandColor = $workspace->brand_color ?? '#D4AF37';+ $textColor = $workspace->text_color ?? '#FFFFFF';++ $manager = new ImageManager(Driver::class);+ $canvas = $manager->createImage($this->width, $this->height)->fill($bgColor);+ $core = $canvas->core()->native();++ $fontBold = $this->fontPath('Inter-Bold.ttf');+ $fontMedium = $this->fontPath('Inter-Medium.ttf');++ // Centered avatar — size scales with the smaller canvas dimension.+ $avatarSize = (int) round(min($this->width, $this->height) * 0.14);+ $avatarX = (int) (($this->width - $avatarSize) / 2);+ $avatarY = (int) ($this->height / 2 - $avatarSize - 10);++ $avatarBinary = $this->fetchAvatarBinary($socialAccount);+ if ($avatarBinary) {+ $this->drawCircularAvatar($canvas, $avatarBinary, $avatarX, $avatarY, $avatarSize);+ }++ // Display name (bold uppercase, letter-spaced, centered).+ $name = strtoupper((string) ($socialAccount->display_name ?? ''));+ $nameSize = (int) round(min($this->width, $this->height) * 0.037);+ $nameBaselineY = $avatarY + $avatarSize + 60 + (int) round($nameSize * 0.82);++ if ($fontBold && $name !== '') {+ $nameWidth = $this->measureLetterSpacedWidth($name, $fontBold, $nameSize, 6);+ $nameX = (int) (($this->width - $nameWidth) / 2);+ $this->drawTextAt($core, $name, $fontBold, $nameSize, $textColor, $nameX, $nameBaselineY, letterSpacing: 6);+ }++ // Short divider line under the name.+ $smallDividerY = $nameBaselineY + 30;+ $smallDividerWidth = 80;+ $smallDividerX = (int) (($this->width - $smallDividerWidth) / 2);+ $this->drawHorizontalLine($core, $smallDividerX, $smallDividerX + $smallDividerWidth, $smallDividerY, $brandColor, 1.0);++ // @handle (lighter weight, lighter color, centered).+ $handle = $socialAccount->username ? '@'.$socialAccount->username : '';+ $handleSize = (int) round($nameSize * 0.65);+ $handleBaselineY = $smallDividerY + 30 + (int) round($handleSize * 0.82);++ if ($fontMedium && $handle !== '') {+ // Handle at 0.8 opacity over bg — slightly muted accent.+ $handleColor = $this->blendHex($brandColor, $bgColor, 0.8);+ $handleWidth = $this->measureLetterSpacedWidth($handle, $fontMedium, $handleSize, 1);+ $handleX = (int) (($this->width - $handleWidth) / 2);+ $this->drawTextAt($core, $handle, $fontMedium, $handleSize, $handleColor, $handleX, $handleBaselineY, letterSpacing: 1);+ }++ $filename = 'ai-images/'.uniqid('slide_', true).'.webp';+ Storage::put($filename, (string) $canvas->encode(new WebpEncoder(quality: 85)));++ return $filename;+ }++ public function render(+ string $template,+ Workspace $workspace,+ SocialAccount $socialAccount,+ string $title,+ string $body,+ array $imageKeywords,+ int $width = self::DEFAULT_WIDTH,+ int $height = self::DEFAULT_HEIGHT,+ ): ?string {+ $this->width = $width;+ $this->height = $height;++ $colorBucket = $this->colorMapper->fromWorkspace($workspace);+ $orientation = $this->unsplashOrientation();+ $photo = $this->unsplash->searchPhoto($imageKeywords, $orientation, $colorBucket);++ if (! $photo) {+ return null;+ }++ $imageData = @file_get_contents($photo['url']);+ if (! $imageData) {+ Log::warning('TemplateImageGenerator: failed to download Unsplash photo', ['url' => $photo['url']]);++ return null;+ }++ $manager = new ImageManager(Driver::class);++ $canvas = $template === 'A'+ ? $this->renderTemplateA($manager, $imageData, $title, $body)+ : $this->renderTemplateB($manager, $imageData, $title, $body, $workspace);++ $canvas = $this->renderFooter($canvas, $socialAccount, $template, $workspace);++ $filename = 'ai-images/'.uniqid('slide_', true).'.webp';+ Storage::put($filename, (string) $canvas->encode(new WebpEncoder(quality: 85)));++ return $filename;+ }++ /**+ * Pick the closest Unsplash orientation for the active canvas. Avoids+ * stretching/cropping a portrait photo into a landscape canvas.+ */+ private function unsplashOrientation(): string+ {+ $ratio = $this->width / $this->height;+ if ($ratio > 1.1) {+ return 'landscape';+ }+ if ($ratio < 0.9) {+ return 'portrait';+ }++ return 'squarish';+ }++ private function renderTemplateA(ImageManager $manager, string $imageData, string $title, string $body): ImageInterface+ {+ // Cover-fit Unsplash image to active canvas size.+ $image = $manager->decodeBinary($imageData)->cover($this->width, $this->height);++ // Smooth gradient mask: covers full image height, peaks at 0.9 alpha (linear).+ $this->applyBottomGradient($image, 1.0, 0.9, 1.0);++ $fontBold = $this->fontPath('Inter-Bold.ttf');+ $fontMedium = $this->fontPath('Inter-Medium.ttf');++ // Layout (bottom-up): footer area → body → title. All text rendered via raw GD+ // for pixel-precise positioning. Same wrap+measure helper used for layout math.+ $titleSize = 56;+ $bodySize = 28;+ $titleLineHeight = 1.25;+ $bodyLineHeight = 1.55;+ $footerReserved = 150;+ $bodyMargin = 16;+ $titleMargin = 36;+ $padding = 60;+ $maxWidth = $this->width - 2 * $padding;++ $bodyLines = $fontMedium ? $this->wrapText($body, $fontMedium, $bodySize, $maxWidth) : [];+ $titleLines = $fontBold ? $this->wrapText($title, $fontBold, $titleSize, $maxWidth) : [];++ $bodyHeight = $this->measureBlockHeight($bodyLines, $bodySize, $bodyLineHeight);+ $titleHeight = $this->measureBlockHeight($titleLines, $titleSize, $titleLineHeight);++ $bodyTopY = $this->height - $footerReserved - $bodyMargin - $bodyHeight;+ $titleTopY = $bodyTopY - $titleMargin - $titleHeight;++ $core = $image->core()->native();++ if ($fontBold && $titleLines) {+ $this->renderTextLines($core, $titleLines, $fontBold, $titleSize, $titleLineHeight, '#ffffff', $padding, $titleTopY);+ }+ if ($fontMedium && $bodyLines) {+ $this->renderTextLines($core, $bodyLines, $fontMedium, $bodySize, $bodyLineHeight, '#f5f5f5', $padding, $bodyTopY);+ }++ return $image;+ }++ /**+ * Wrap text into lines that fit within $maxWidth using the given font.+ * Respects explicit \n line breaks. Returns an array of line strings.+ *+ * @return array<int, string>+ */+ private function wrapText(string $text, string $fontPath, int $fontSize, int $maxWidth): array+ {+ $lines = [];+ foreach (explode("\n", $text) as $paragraph) {+ $words = preg_split('/\s+/', trim($paragraph)) ?: [];+ if (empty($words)) {+ $lines[] = '';++ continue;+ }+ $current = '';+ foreach ($words as $word) {+ $candidate = $current === '' ? $word : $current.' '.$word;+ $box = imagettfbbox($fontSize, 0, $fontPath, $candidate);+ $width = abs($box[2] - $box[0]);+ if ($width > $maxWidth && $current !== '') {+ $lines[] = $current;+ $current = $word;+ } else {+ $current = $candidate;+ }+ }+ if ($current !== '') {+ $lines[] = $current;+ }+ }++ return $lines;+ }++ /**+ * Compute total visual height of a wrapped text block. We rely on the actual+ * font ascent (from imagettfbbox of an x-height-tall sample) plus+ * (n-1) * line_spacing for a tight fit.+ *+ * @param array<int, string> $lines+ */+ private function measureBlockHeight(array $lines, int $fontSize, float $lineHeight): int+ {+ if (empty($lines)) {+ return 0;+ }+ $lineSpacing = (int) round($fontSize * $lineHeight);++ return $lineSpacing * count($lines);+ }++ /**+ * Render an array of lines line-by-line via imagettftext at explicit y positions.+ * $topY is where the first line's bounding box starts (top of first glyph row).+ *+ * @param array<int, string> $lines+ */+ private function renderTextLines($core, array $lines, string $fontPath, int $fontSize, float $lineHeight, string $hexColor, int $x, int $topY): void+ {+ $color = $this->allocateColor($core, $hexColor);+ $lineSpacing = (int) round($fontSize * $lineHeight);+ // imagettftext positions the text at the BASELINE. The font's ascent for our+ // body line height is roughly fontSize * 0.78 — we use that as the offset+ // from $topY to the first baseline.+ $ascent = (int) round($fontSize * 0.82);+ $baselineY = $topY + $ascent;++ foreach ($lines as $line) {+ imagettftext($core, $fontSize, 0, $x, $baselineY, $color, $fontPath, $line);+ $baselineY += $lineSpacing;+ }+ }++ /**+ * Same as renderTextLines but each line is horizontally centered within the+ * canvas based on its measured glyph width.+ */+ private function renderTextLinesCentered($core, array $lines, string $fontPath, int $fontSize, float $lineHeight, string $hexColor, int $topY): void+ {+ $color = $this->allocateColor($core, $hexColor);+ $lineSpacing = (int) round($fontSize * $lineHeight);+ $ascent = (int) round($fontSize * 0.82);+ $baselineY = $topY + $ascent;++ foreach ($lines as $line) {+ $bbox = imagettfbbox($fontSize, 0, $fontPath, $line);+ $lineWidth = abs($bbox[2] - $bbox[0]);+ $x = (int) round(($this->width - $lineWidth) / 2);+ imagettftext($core, $fontSize, 0, $x, $baselineY, $color, $fontPath, $line);+ $baselineY += $lineSpacing;+ }+ }++ /**+ * Allocate a GD color from a hex string (#rrggbb).+ *+ * @return int Color identifier suitable for GD draw functions.+ */+ private function allocateColor($core, string $hex): int+ {+ [$r, $g, $b] = $this->hexToRgb($hex);++ $color = imagecolorallocate($core, $r, $g, $b);++ return $color === false ? imagecolorallocate($core, 255, 255, 255) : $color;+ }++ /**+ * Linearly blend two hex colors. $weight is the share of $foreground in the+ * mix (0.0 = pure background, 1.0 = pure foreground).+ */+ private function blendHex(string $foreground, string $background, float $weight): string+ {+ [$fr, $fg, $fb] = $this->hexToRgb($foreground);+ [$br, $bg, $bb] = $this->hexToRgb($background);+ $w = max(0.0, min(1.0, $weight));++ $r = (int) round($fr * $w + $br * (1 - $w));+ $g = (int) round($fg * $w + $bg * (1 - $w));+ $b = (int) round($fb * $w + $bb * (1 - $w));++ return sprintf('#%02x%02x%02x', $r, $g, $b);+ }++ /**+ * @return array{0: int, 1: int, 2: int}+ */+ private function hexToRgb(string $hex): array+ {+ $hex = ltrim($hex, '#');+ if (strlen($hex) === 3) {+ $hex = $hex[0].$hex[0].$hex[1].$hex[1].$hex[2].$hex[2];+ }++ return [+ hexdec(substr($hex, 0, 2)),+ hexdec(substr($hex, 2, 2)),+ hexdec(substr($hex, 4, 2)),+ ];+ }++ /**+ * Paint a smooth black-to-transparent gradient over the bottom of the image+ * directly on the GD resource. Avoids visible bands from stacked rectangles.+ *+ * @param float $easingPower 1.0 = linear, 2.0 = quadratic (slow start),+ * <1.0 = ramps up faster at the top.+ */+ private function applyBottomGradient(ImageInterface $image, float $heightFraction, float $maxAlpha, float $easingPower = 2.0): void+ {+ $maskHeight = (int) ($this->height * $heightFraction);+ $maskStart = $this->height - $maskHeight;++ $core = $image->core()->native(); // GD resource+ imagealphablending($core, true);++ for ($y = 0; $y < $maskHeight; $y++) {+ $progress = $y / max(1, $maskHeight - 1);+ $alphaFraction = (float) (pow($progress, $easingPower) * $maxAlpha);+ // GD alpha is inverted: 0=opaque, 127=transparent.+ $gdAlpha = (int) round(127 * (1 - $alphaFraction));+ $color = imagecolorallocatealpha($core, 0, 0, 0, $gdAlpha);+ imagefilledrectangle($core, 0, $maskStart + $y, $this->width - 1, $maskStart + $y, $color);+ imagecolordeallocate($core, $color);+ }+ }++ /**+ * Punch transparent corners into the image's alpha channel so it renders as+ * a rounded rectangle when copied onto another canvas.+ */+ private function roundCorners(ImageInterface $image, int $radius): void+ {+ $core = $image->core()->native();+ $w = imagesx($core);+ $h = imagesy($core);++ imagealphablending($core, false);+ imagesavealpha($core, true);+ $transparent = imagecolorallocatealpha($core, 0, 0, 0, 127);++ $corners = [+ ['x0' => 0, 'y0' => 0, 'cx' => $radius, 'cy' => $radius],+ ['x0' => $w - $radius, 'y0' => 0, 'cx' => $w - $radius - 1, 'cy' => $radius],+ ['x0' => 0, 'y0' => $h - $radius, 'cx' => $radius, 'cy' => $h - $radius - 1],+ ['x0' => $w - $radius, 'y0' => $h - $radius, 'cx' => $w - $radius - 1, 'cy' => $h - $radius - 1],+ ];++ foreach ($corners as $c) {+ for ($y = $c['y0']; $y < $c['y0'] + $radius; $y++) {+ for ($x = $c['x0']; $x < $c['x0'] + $radius; $x++) {+ $dx = $x - $c['cx'];+ $dy = $y - $c['cy'];+ if ($dx * $dx + $dy * $dy > $radius * $radius) {+ imagesetpixel($core, $x, $y, $transparent);+ }+ }+ }+ }++ imagealphablending($core, true);+ }++ private function renderTemplateB(ImageManager $manager, string $imageData, string $title, string $body, Workspace $workspace): ImageInterface+ {+ $bgColor = $workspace->background_color ?? '#F0F4F0';+ $brandColor = $workspace->brand_color ?? '#0F4C2A';+ $textColor = $workspace->text_color ?? '#0F172A';++ // Solid background canvas at active dimensions.+ $canvas = $manager->createImage($this->width, $this->height)->fill($bgColor);++ $fontBold = $this->fontPath('Inter-Bold.ttf');+ $fontMedium = $this->fontPath('Inter-Medium.ttf');++ $titleSize = 56;+ $bodySize = 28;+ $titleLineHeight = 1.25;+ $bodyLineHeight = 1.55;+ $padding = 60;+ $maxWidth = $this->width - 2 * $padding;+ $photoWidth = $this->width - 2 * $padding;+ // Photo card height scales with the canvas: ~37% of total height. This+ // keeps a comfortable text/photo balance across 1:1, 4:5 and 9:16 sizes.+ $photoHeight = (int) round($this->height * 0.37);+ $titleTopY = (int) round($this->height * 0.09);+ $gapTitleToPhoto = 60;+ $gapPhotoToBody = 60;++ $core = $canvas->core()->native();++ $titleLines = ($fontBold && file_exists($fontBold)) ? $this->wrapText($title, $fontBold, $titleSize, $maxWidth) : [];+ $bodyLines = ($fontMedium && file_exists($fontMedium)) ? $this->wrapText($body, $fontMedium, $bodySize, $maxWidth) : [];++ $titleHeight = $this->measureBlockHeight($titleLines, $titleSize, $titleLineHeight);+ $photoY = $titleTopY + $titleHeight + $gapTitleToPhoto;+ $bodyTopY = $photoY + $photoHeight + $gapPhotoToBody;+ $photoX = (int) (($this->width - $photoWidth) / 2);++ if ($titleLines) {+ $this->renderTextLines($core, $titleLines, $fontBold, $titleSize, $titleLineHeight, $brandColor, $padding, $titleTopY);+ }++ // Photo card with rounded corners, horizontally centered.+ $photo = $manager->decodeBinary($imageData)->cover($photoWidth, $photoHeight);+ $this->roundCorners($photo, 20);+ $canvas->insert($photo, $photoX, $photoY);++ if ($bodyLines) {+ $this->renderTextLines($core, $bodyLines, $fontMedium, $bodySize, $bodyLineHeight, $textColor, $padding, $bodyTopY);+ }++ return $canvas;+ }++ private function renderFooter(ImageInterface $canvas, SocialAccount $socialAccount, string $template, Workspace $workspace): ImageInterface+ {+ // Footer uses Inter Light (300) in a muted color for both @handle and display_name.+ // Template A: hardcoded slate (always on dark gradient).+ // Template B: blend the brand's text color with its background so the footer is+ // always legibly muted regardless of which palette the workspace picked.+ $footerColor = $template === 'A'+ ? '#9ca3af'+ : $this->blendHex($workspace->text_color ?? '#0F172A', $workspace->background_color ?? '#F0F4F0', 0.45);++ $username = $socialAccount->username ?? '';+ $displayName = $socialAccount->display_name ?? '';++ // Footer row anchored from the bottom: avatar + handle + displayName+ // share the same vertical center so they line up cleanly.+ $avatarSize = 48;+ $avatarX = 60;+ $rowCenterY = $this->height - 100; // 100px from the bottom edge++ $avatarY = $rowCenterY - (int) ($avatarSize / 2);++ $textX = $avatarX + $avatarSize + 16;+ // intervention/image's `align('left', 'top')` positions text at its EM-box+ // top. Inter's visual glyph midpoint sits roughly at top + size * 0.42, so+ // we shift textY up by that amount to land its center on rowCenterY.+ $textY = $rowCenterY - (int) round(24 * 0.42);++ // Avatar (circular)+ $avatarBinary = $this->fetchAvatarBinary($socialAccount);+ if ($avatarBinary !== null) {+ $this->drawCircularAvatar($canvas, $avatarBinary, $avatarX, $avatarY, $avatarSize);+ }++ $fontLight = $this->fontPath('Inter-Light.ttf');+ if (! $fontLight || ! file_exists($fontLight)) {+ return $canvas;+ }++ if ($username) {+ $canvas->text('@'.$username, $textX, $textY, function (FontFactory $font) use ($fontLight, $footerColor) {+ $font->filename($fontLight);+ $font->size(24);+ $font->color($footerColor);+ $font->align('left', 'top');+ });+ }++ if ($displayName) {+ $canvas->text($displayName, $this->width - 60, $textY, function (FontFactory $font) use ($fontLight, $footerColor) {+ $font->filename($fontLight);+ $font->size(24);+ $font->color($footerColor);+ $font->align('right', 'top');+ });+ }++ return $canvas;+ }++ /**+ * Fetches the avatar binary via Storage (works with local, R2, S3 — whatever+ * `filesystems.default` is). Returns null when there's no avatar or the read fails.+ */+ private function fetchAvatarBinary(SocialAccount $socialAccount): ?string+ {+ $rawPath = $socialAccount->getRawOriginal('avatar_url');+ if (! $rawPath) {+ return null;+ }++ try {+ if (! Storage::exists($rawPath)) {+ return null;+ }+ $contents = Storage::get($rawPath);++ return $contents ?: null;+ } catch (\Throwable $e) {+ Log::warning('TemplateImageGenerator: avatar fetch failed', [+ 'account' => $socialAccount->id,+ 'error' => $e->getMessage(),+ ]);++ return null;+ }+ }++ /**+ * Draws a circular avatar by overlaying a per-pixel alpha-masked GD truecolor+ * onto the canvas. Pixels outside the inscribed circle become fully transparent.+ */+ private function drawCircularAvatar(ImageInterface $canvas, string $avatarBinary, int $x, int $y, int $size): void+ {+ $core = $canvas->core()->native(); // GD resource++ $src = @imagecreatefromstring($avatarBinary);+ if (! $src) {+ return;+ }++ // Square-crop center, then resize to $size x $size.+ $sw = imagesx($src);+ $sh = imagesy($src);+ $crop = min($sw, $sh);+ $cx = (int) (($sw - $crop) / 2);+ $cy = (int) (($sh - $crop) / 2);+ $resized = imagecreatetruecolor($size, $size);+ imagealphablending($resized, false);+ imagesavealpha($resized, true);+ $transparent = imagecolorallocatealpha($resized, 0, 0, 0, 127);+ imagefill($resized, 0, 0, $transparent);+ imagecopyresampled($resized, $src, 0, 0, $cx, $cy, $size, $size, $crop, $crop);+ imagedestroy($src);++ // Apply circular alpha mask.+ $cx = $size / 2;+ $cy = $size / 2;+ $r = $size / 2;+ for ($py = 0; $py < $size; $py++) {+ for ($px = 0; $px < $size; $px++) {+ $dx = $px + 0.5 - $cx;+ $dy = $py + 0.5 - $cy;+ $dist = sqrt($dx * $dx + $dy * $dy);+ if ($dist > $r) {+ imagesetpixel($resized, $px, $py, $transparent);+ }+ }+ }++ // Composite onto the main canvas (alpha-aware).+ imagealphablending($core, true);+ imagecopy($core, $resized, $x, $y, 0, 0, $size, $size);+ imagedestroy($resized);+ }++ /**+ * Render text at a precise (x, baselineY) position with optional letter spacing.+ * Letter spacing > 0 renders each character individually with extra pixels between glyphs.+ */+ private function drawTextAt($core, string $text, string $fontPath, int $fontSize, string $hexColor, int $x, int $baselineY, int $letterSpacing = 0): void+ {+ $color = $this->allocateColor($core, $hexColor);++ if ($letterSpacing <= 0) {+ imagettftext($core, $fontSize, 0, $x, $baselineY, $color, $fontPath, $text);++ return;+ }++ $cursor = $x;+ $chars = mb_str_split($text);+ foreach ($chars as $char) {+ imagettftext($core, $fontSize, 0, $cursor, $baselineY, $color, $fontPath, $char);+ $bbox = imagettfbbox($fontSize, 0, $fontPath, $char);+ $cursor += abs($bbox[2] - $bbox[0]) + $letterSpacing;+ }+ }++ /**+ * Measure the on-screen width of a string when rendered with extra letter spacing.+ */+ private function measureLetterSpacedWidth(string $text, string $fontPath, int $fontSize, int $letterSpacing): int+ {+ if ($letterSpacing <= 0) {+ $bbox = imagettfbbox($fontSize, 0, $fontPath, $text);++ return abs($bbox[2] - $bbox[0]);+ }++ $width = 0;+ $chars = mb_str_split($text);+ $count = count($chars);+ foreach ($chars as $i => $char) {+ $bbox = imagettfbbox($fontSize, 0, $fontPath, $char);+ $width += abs($bbox[2] - $bbox[0]);+ if ($i < $count - 1) {+ $width += $letterSpacing;+ }+ }++ return $width;+ }++ /**+ * Draw a 1px horizontal line on the GD resource with optional alpha (0..1).+ */+ private function drawHorizontalLine($core, int $x1, int $x2, int $y, string $hexColor, float $alpha = 1.0): void+ {+ [$r, $g, $b] = $this->hexToRgb($hexColor);+ // GD alpha: 0 opaque, 127 transparent.+ $gdAlpha = (int) round(127 * (1 - max(0.0, min(1.0, $alpha))));+ imagealphablending($core, true);+ $color = imagecolorallocatealpha($core, $r, $g, $b, $gdAlpha);+ imageline($core, $x1, $y, $x2, $y, $color);+ imagecolordeallocate($core, $color);+ }++ /**+ * Localized "Follow me" CTA based on the workspace's content_language.+ */+ private function followCta(Workspace $workspace): string+ {+ return match ($workspace->content_language) {+ 'pt-BR' => 'ME SIGA',+ 'es' => 'SÍGUEME',+ default => 'FOLLOW ME',+ };+ }++ private function fontPath(string $filename): ?string+ {+ $path = base_path('resources/fonts/'.$filename);++ return file_exists($path) ? $path : null;+ }+}diff --git a/app/Services/Unsplash/UnsplashClient.php b/app/Services/Unsplash/UnsplashClient.phpnew file mode 100644index 000000000..d069dff8a--- /dev/null+++ b/app/Services/Unsplash/UnsplashClient.php@@ -0,0 +1,152 @@+<?php++declare(strict_types=1);++namespace App\Services\Unsplash;++use Illuminate\Support\Facades\Cache;+use Illuminate\Support\Facades\Http;+use Illuminate\Support\Facades\Log;++class UnsplashClient+{+ /**+ * Generic, always-available fallback keywords. We try these last so a slide+ * never ends up without a photo.+ */+ private const array FALLBACK_KEYWORDS = ['business', 'workspace', 'abstract', 'background'];++ /**+ * Search a single photo with progressive fallbacks so a slide never returns+ * without a photo:+ * 1. all keywords + color filter+ * 2. all keywords, no color+ * 3. only the first keyword, no color+ * 4. each generic fallback keyword in turn+ *+ * @param array<int, string> $keywords+ * @return array{id: string, url: string, alt_description: ?string}|null+ */+ public function searchPhoto(array $keywords, string $orientation = 'portrait', ?string $colorBucket = null): ?array+ {+ $key = config('services.unsplash.access_key');+ if (! $key) {+ Log::warning('Unsplash access key not configured');++ return null;+ }++ $cleanKeywords = array_values(array_filter(array_map('trim', $keywords)));++ if (empty($cleanKeywords)) {+ return $this->tryFallbacks([], $orientation, $key);+ }++ $query = implode(' ', $cleanKeywords);++ // 1. all keywords + color+ $photo = $this->fetchOne($key, $query, $orientation, $colorBucket);+ if ($photo) {+ return $photo;+ }++ // 2. all keywords, no color+ if ($colorBucket !== null) {+ $photo = $this->fetchOne($key, $query, $orientation, null);+ if ($photo) {+ return $photo;+ }+ }++ // 3. only the first keyword+ if (count($cleanKeywords) > 1) {+ $photo = $this->fetchOne($key, $cleanKeywords[0], $orientation, null);+ if ($photo) {+ return $photo;+ }+ }++ // 4. generic fallbacks+ return $this->tryFallbacks($cleanKeywords, $orientation, $key);+ }++ /**+ * @return array{id: string, url: string, alt_description: ?string}|null+ */+ private function fetchOne(string $key, string $query, string $orientation, ?string $colorBucket): ?array+ {+ if ($query === '') {+ return null;+ }++ $params = [+ 'query' => $query,+ 'orientation' => $orientation,+ 'per_page' => 1,+ ];+ if ($colorBucket) {+ $params['color'] = $colorBucket;+ }++ $cacheKey = 'unsplash:'.md5(json_encode($params));++ $result = Cache::get($cacheKey);++ if ($result === null) {+ $response = Http::withHeaders(['Authorization' => 'Client-ID '.$key])+ ->timeout(10)+ ->get('https://api.unsplash.com/search/photos', $params);++ if (! $response->successful()) {+ Log::warning('Unsplash search failed', ['status' => $response->status(), 'query' => $query]);++ return null;+ }++ $result = $response->json();++ // Only cache successful responses that actually returned results, so+ // a transient empty hit doesn't get pinned for an hour.+ if (! empty(data_get($result, 'results'))) {+ Cache::put($cacheKey, $result, now()->addHour());+ }+ }++ $first = data_get($result, 'results.0');+ if (! $first) {+ return null;+ }++ return [+ 'id' => data_get($first, 'id'),+ 'url' => data_get($first, 'urls.regular'),+ 'alt_description' => data_get($first, 'alt_description'),+ ];+ }++ /**+ * Try each generic fallback keyword in turn.+ *+ * @param array<int, string> $skip fallback keywords to skip (already tried)+ * @return array{id: string, url: string, alt_description: ?string}|null+ */+ private function tryFallbacks(array $skip, string $orientation, string $key): ?array+ {+ foreach (self::FALLBACK_KEYWORDS as $keyword) {+ if (in_array($keyword, $skip, true)) {+ continue;+ }++ $photo = $this->fetchOne($key, $keyword, $orientation, null);+ if ($photo) {+ Log::info('Unsplash fell back to generic keyword', ['keyword' => $keyword]);++ return $photo;+ }+ }++ Log::warning('Unsplash exhausted all fallbacks');++ return null;+ }+}diff --git a/database/factories/AiMessageFactory.php b/database/factories/AiMessageFactory.phpdeleted file mode 100644index d3515373e..000000000--- a/database/factories/AiMessageFactory.php+++ /dev/null@@ -1,33 +0,0 @@-<?php--declare(strict_types=1);--namespace Database\Factories;--use App\Models\AiMessage;-use App\Models\Post;-use App\Models\User;-use Illuminate\Database\Eloquent\Factories\Factory;--/** @extends Factory<AiMessage> */-class AiMessageFactory extends Factory-{- public function definition(): array- {- return [- 'post_id' => Post::factory(),- 'user_id' => User::factory(),- 'role' => 'user',- 'content' => $this->faker->sentence(),- 'attachments' => [],- ];- }-- public function assistant(): static- {- return $this->state(fn () => [- 'role' => 'assistant',- 'user_id' => null,- ]);- }-}diff --git a/database/factories/PostTemplateFactory.php b/database/factories/PostTemplateFactory.phpnew file mode 100644index 000000000..89240e3fd--- /dev/null+++ b/database/factories/PostTemplateFactory.php@@ -0,0 +1,30 @@+<?php++declare(strict_types=1);++namespace Database\Factories;++use App\Models\PostTemplate;+use Illuminate\Database\Eloquent\Factories\Factory;++/**+ * @extends Factory<PostTemplate>+ */+class PostTemplateFactory extends Factory+{+ protected $model = PostTemplate::class;++ public function definition(): array+ {+ return [+ 'name' => fake()->sentence(3),+ 'description' => fake()->sentence(),+ 'category' => 'product_launch',+ 'platform' => 'instagram_carousel',+ 'content' => fake()->paragraph(),+ 'slides' => null,+ 'image_count' => 0,+ 'image_keywords' => null,+ ];+ }+}diff --git a/database/migrations/2026_01_14_232315_create_workspaces_table.php b/database/migrations/2026_01_14_232315_create_workspaces_table.phpindex 757b3c6a1..638a20b93 100644--- a/database/migrations/2026_01_14_232315_create_workspaces_table.php+++ b/database/migrations/2026_01_14_232315_create_workspaces_table.php@@ -25,6 +25,7 @@ return new class extends Migration$table->string('brand_color', 9)->nullable();$table->string('background_color', 9)->nullable();$table->string('text_color', 9)->nullable();+ $table->string('brand_font')->default('Inter');$table->string('content_language', 10)->default('en');$table->timestamps();diff --git a/database/migrations/2026_04_15_000002_create_ai_messages_table.php b/database/migrations/2026_04_15_000002_create_ai_messages_table.phpdeleted file mode 100644index 51654b661..000000000--- a/database/migrations/2026_04_15_000002_create_ai_messages_table.php+++ /dev/null@@ -1,33 +0,0 @@-<?php--declare(strict_types=1);--use Illuminate\Database\Migrations\Migration;-use Illuminate\Database\Schema\Blueprint;-use Illuminate\Support\Facades\Schema;--return new class extends Migration-{- public function up(): void- {- Schema::create('ai_messages', function (Blueprint $table) {- $table->uuid('id')->primary();- $table->uuid('post_id');- $table->uuid('user_id')->nullable();- $table->string('role');- $table->text('content');- $table->json('attachments')->default('[]');- $table->json('metadata')->nullable();- $table->timestamps();-- $table->foreign('post_id')->references('id')->on('posts')->cascadeOnDelete();- $table->foreign('user_id')->references('id')->on('users')->nullOnDelete();- $table->index(['post_id', 'created_at']);- });- }-- public function down(): void- {- Schema::dropIfExists('ai_messages');- }-};diff --git a/database/migrations/2026_04_16_155126_add_status_to_ai_messages_table.php b/database/migrations/2026_04_16_155126_add_status_to_ai_messages_table.phpdeleted file mode 100644index 0a6aee2c6..000000000--- a/database/migrations/2026_04_16_155126_add_status_to_ai_messages_table.php+++ /dev/null@@ -1,25 +0,0 @@-<?php--declare(strict_types=1);--use Illuminate\Database\Migrations\Migration;-use Illuminate\Database\Schema\Blueprint;-use Illuminate\Support\Facades\Schema;--return new class extends Migration-{- public function up(): void- {- Schema::table('ai_messages', function (Blueprint $table) {- $table->string('status')->default('completed')->after('attachments');- $table->text('error_message')->nullable()->after('status');- });- }-- public function down(): void- {- Schema::table('ai_messages', function (Blueprint $table) {- $table->dropColumn(['status', 'error_message']);- });- }-};diff --git a/database/migrations/2026_05_02_220913_create_post_templates_table.php b/database/migrations/2026_05_02_220913_create_post_templates_table.phpnew file mode 100644index 000000000..d5cd57a80--- /dev/null+++ b/database/migrations/2026_05_02_220913_create_post_templates_table.php@@ -0,0 +1,33 @@+<?php++declare(strict_types=1);++use Illuminate\Database\Migrations\Migration;+use Illuminate\Database\Schema\Blueprint;+use Illuminate\Support\Facades\Schema;++return new class extends Migration+{+ public function up(): void+ {+ Schema::create('post_templates', function (Blueprint $table) {+ $table->uuid('id')->primary();+ $table->string('name');+ $table->text('description')->nullable();+ $table->string('category');+ $table->string('platform');+ $table->text('content');+ $table->json('slides')->nullable();+ $table->integer('image_count')->default(0);+ $table->json('image_keywords')->nullable();+ $table->timestamps();++ $table->index(['platform', 'category']);+ });+ }++ public function down(): void+ {+ Schema::dropIfExists('post_templates');+ }+};diff --git a/database/seeders/DatabaseSeeder.php b/database/seeders/DatabaseSeeder.phpindex 05862e2ea..b10f4799f 100644--- a/database/seeders/DatabaseSeeder.php+++ b/database/seeders/DatabaseSeeder.php@@ -4,7 +4,6 @@ declare(strict_types=1);namespace Database\Seeders;-// use Illuminate\Database\Console\Seeds\WithoutModelEvents;use Illuminate\Database\Seeder;class DatabaseSeeder extends Seederdiff --git a/database/seeders/PostTemplateSeeder.php b/database/seeders/PostTemplateSeeder.phpnew file mode 100644index 000000000..dc1a7f427--- /dev/null+++ b/database/seeders/PostTemplateSeeder.php@@ -0,0 +1,219 @@+<?php++declare(strict_types=1);++namespace Database\Seeders;++use App\Models\PostTemplate;+use Illuminate\Database\Seeder;++class PostTemplateSeeder extends Seeder+{+ public function run(): void+ {+ $templates = [+ // --- product_launch ---+ [+ 'name' => 'Feature launch — carousel',+ 'description' => 'Announce a new product feature with a 5-slide story.',+ 'category' => 'product_launch',+ 'platform' => 'instagram_carousel',+ 'content' => "{{brand_name}} just launched something we're excited about. Swipe to see what's new.",+ 'slides' => [+ ['title' => "What's new", 'body' => 'A quick look at the latest update.', 'image_keywords' => ['product', 'launch']],+ ['title' => 'How it works', 'body' => 'Three steps and you are running.', 'image_keywords' => ['workflow']],+ ['title' => 'Why it matters', 'body' => 'Faster, simpler, fewer clicks.', 'image_keywords' => ['speed']],+ ['title' => 'Who is it for', 'body' => 'Built for teams who ship.', 'image_keywords' => ['team']],+ ['title' => 'Try it now', 'body' => 'Available today. Link in bio.', 'image_keywords' => ['phone', 'app']],+ ],+ 'image_count' => 5,+ 'image_keywords' => null,+ ],+ [+ 'name' => 'Product launch announcement',+ 'description' => 'Short LinkedIn post announcing a new product.',+ 'category' => 'product_launch',+ 'platform' => 'linkedin_post',+ 'content' => "Excited to share: {{brand_name}} just launched [Product Name].\n\nHere's why this matters for [your audience]:\n→ [Benefit 1]\n→ [Benefit 2]\n→ [Benefit 3]\n\nLearn more at [link]. We'd love your feedback.",+ 'slides' => null,+ 'image_count' => 0,+ 'image_keywords' => null,+ ],+ // --- promotion ---+ [+ 'name' => 'Limited-time offer — feed',+ 'description' => 'Promote a time-sensitive deal on Instagram Feed.',+ 'category' => 'promotion',+ 'platform' => 'instagram_feed',+ 'content' => "⏰ Don't miss it. {{brand_name}} is offering [discount]% off [product/service] — today only.\n\nTap the link in bio to grab yours before it's gone.",+ 'slides' => null,+ 'image_count' => 1,+ 'image_keywords' => ['sale', 'offer', 'shopping'],+ ],+ [+ 'name' => 'Flash sale — X post',+ 'description' => 'Short X post for a flash sale with urgency.',+ 'category' => 'promotion',+ 'platform' => 'x_post',+ 'content' => "🔥 Flash sale at {{brand_name}}!\n\n[Discount]% off [product/service] — ends in 24 hours.\n\nNo code needed → [link]",+ 'slides' => null,+ 'image_count' => 0,+ 'image_keywords' => null,+ ],+ // --- educational ---+ [+ 'name' => '5 tips carousel',+ 'description' => 'Share five actionable tips in a swipeable carousel.',+ 'category' => 'educational',+ 'platform' => 'instagram_carousel',+ 'content' => '5 things I wish I knew about [topic] sooner. Save this for later. 👇',+ 'slides' => [+ ['title' => 'Tip #1', 'body' => '[First tip — be specific and actionable.]', 'image_keywords' => ['idea', 'lightbulb']],+ ['title' => 'Tip #2', 'body' => '[Second tip — use a real example if you can.]', 'image_keywords' => ['notebook']],+ ['title' => 'Tip #3', 'body' => '[Third tip — keep it short.]', 'image_keywords' => ['focus']],+ ['title' => 'Tip #4', 'body' => '[Fourth tip — something surprising or counterintuitive.]', 'image_keywords' => ['surprise']],+ ['title' => 'Tip #5', 'body' => '[Fifth tip — finish strong with a takeaway.]', 'image_keywords' => ['success']],+ ],+ 'image_count' => 5,+ 'image_keywords' => null,+ ],+ [+ 'name' => 'How-to guide — LinkedIn',+ 'description' => 'Step-by-step educational post for LinkedIn.',+ 'category' => 'educational',+ 'platform' => 'linkedin_post',+ 'content' => "How to [achieve X] in [timeframe] — a step-by-step guide.\n\nStep 1: [Action]\nStep 2: [Action]\nStep 3: [Action]\nStep 4: [Action]\n\nThe key insight most people miss: [insight].\n\nWhich step do you find most challenging? Drop a comment below.",+ 'slides' => null,+ 'image_count' => 0,+ 'image_keywords' => null,+ ],+ // --- behind_the_scenes ---+ [+ 'name' => 'Team behind the scenes — feed',+ 'description' => 'Humanize your brand by showing the team at work.',+ 'category' => 'behind_the_scenes',+ 'platform' => 'instagram_feed',+ 'content' => "This is what a typical day at {{brand_name}} looks like. 👀\n\nWe believe great work happens when people feel at home. Here's a peek behind the curtain.\n\n#{{brand_name}} #BehindTheScenes",+ 'slides' => null,+ 'image_count' => 1,+ 'image_keywords' => ['office', 'team', 'workspace'],+ ],+ [+ 'name' => 'Process reveal — carousel',+ 'description' => 'Walk followers through how you create your product or service.',+ 'category' => 'behind_the_scenes',+ 'platform' => 'instagram_carousel',+ 'content' => 'Ever wondered how [product/service] is made? Swipe to see every step. ✨',+ 'slides' => [+ ['title' => 'It starts with research', 'body' => 'Every project begins with understanding the problem deeply.', 'image_keywords' => ['research', 'desk']],+ ['title' => 'Design & iteration', 'body' => 'We prototype fast and test often.', 'image_keywords' => ['design', 'sketch']],+ ['title' => 'Building the real thing', 'body' => 'Craft and precision in every detail.', 'image_keywords' => ['craft', 'build']],+ ['title' => 'The final result', 'body' => 'Quality you can feel the moment you use it.', 'image_keywords' => ['product', 'final']],+ ],+ 'image_count' => 4,+ 'image_keywords' => null,+ ],+ // --- testimonial ---+ [+ 'name' => 'Customer quote — LinkedIn',+ 'description' => 'Share a compelling customer testimonial on LinkedIn.',+ 'category' => 'testimonial',+ 'platform' => 'linkedin_post',+ 'content' => "\"[Customer quote about the result they achieved with your product or service.]\"\n— [Customer Name], [Role] at [Company]\n\nThis is exactly why we built {{brand_name}}. Real results for real teams.\n\nRead the full story → [link]",+ 'slides' => null,+ 'image_count' => 0,+ 'image_keywords' => null,+ ],+ [+ 'name' => 'Success story — X post',+ 'description' => 'Brief success-story format for X.',+ 'category' => 'testimonial',+ 'platform' => 'x_post',+ 'content' => "\"[Short customer quote.]\"\n— @[handle]\n\nThis is why we do what we do at {{brand_name}}. 🙌",+ 'slides' => null,+ 'image_count' => 0,+ 'image_keywords' => null,+ ],+ // --- industry_tip ---+ [+ 'name' => 'Industry insight — LinkedIn',+ 'description' => 'Share a timely insight or hot take relevant to your industry.',+ 'category' => 'industry_tip',+ 'platform' => 'linkedin_post',+ 'content' => "Here's something most people in [industry] get wrong:\n\n[Counterintuitive statement or hot take]\n\nWhy? Because [reason].\n\nThe smarter approach: [better way to do it].\n\nAt {{brand_name}}, we've seen this play out with hundreds of [customers/teams]. The data is clear.\n\nWhat's your take?",+ 'slides' => null,+ 'image_count' => 0,+ 'image_keywords' => null,+ ],+ [+ 'name' => 'Quick stat carousel',+ 'description' => 'Present industry stats in a visual carousel format.',+ 'category' => 'industry_tip',+ 'platform' => 'instagram_carousel',+ 'content' => "The [industry] numbers that should be on every marketer's radar this year. 📊",+ 'slides' => [+ ['title' => 'Stat #1', 'body' => '[X]% of [audience] say [finding]. Source: [source]', 'image_keywords' => ['chart', 'data']],+ ['title' => 'Stat #2', 'body' => '[Y]% increase in [metric] year over year.', 'image_keywords' => ['growth', 'graph']],+ ['title' => 'Stat #3', 'body' => 'By [year], [projection].', 'image_keywords' => ['future', 'trend']],+ ['title' => 'What this means for you', 'body' => '[Actionable takeaway based on the stats above.]', 'image_keywords' => ['action', 'plan']],+ ],+ 'image_count' => 4,+ 'image_keywords' => null,+ ],+ // --- event ---+ [+ 'name' => 'Event announcement — LinkedIn',+ 'description' => 'Announce an upcoming webinar or live event.',+ 'category' => 'event',+ 'platform' => 'linkedin_post',+ 'content' => "📅 Save the date: {{brand_name}} is hosting [Event Name] on [Date] at [Time].\n\nWhat to expect:\n✔ [Topic 1]\n✔ [Topic 2]\n✔ [Topic 3]\n\nSpots are limited. Register now → [link]",+ 'slides' => null,+ 'image_count' => 0,+ 'image_keywords' => null,+ ],+ [+ 'name' => 'Event recap — carousel',+ 'description' => 'Recap highlights from a recent event or conference.',+ 'category' => 'event',+ 'platform' => 'instagram_carousel',+ 'content' => 'We just wrapped [Event Name] and it was incredible. Here are the highlights. 🙌',+ 'slides' => [+ ['title' => 'It all started with…', 'body' => '[Opening moment or keynote highlight.]', 'image_keywords' => ['conference', 'stage']],+ ['title' => 'The session everyone talked about', 'body' => '[Key insight from the standout talk.]', 'image_keywords' => ['presentation', 'crowd']],+ ['title' => 'Connecting with the community', 'body' => '[Highlight networking or attendee moments.]', 'image_keywords' => ['networking', 'people']],+ ['title' => 'See you next time', 'body' => 'Follow {{brand_name}} for updates on our next event.', 'image_keywords' => ['celebration']],+ ],+ 'image_count' => 4,+ 'image_keywords' => null,+ ],+ // --- engagement ---+ [+ 'name' => 'This or that — X poll',+ 'description' => 'Drive engagement with a simple binary choice question.',+ 'category' => 'engagement',+ 'platform' => 'x_post',+ 'content' => "Quick question for the {{brand_name}} community:\n\n[Option A] or [Option B]?\n\nReply with your pick and why 👇",+ 'slides' => null,+ 'image_count' => 0,+ 'image_keywords' => null,+ ],+ [+ 'name' => 'Community question — LinkedIn',+ 'description' => 'Spark discussion with an open-ended question to your network.',+ 'category' => 'engagement',+ 'platform' => 'linkedin_post',+ 'content' => "If you could give one piece of advice to someone just starting out in [industry/role], what would it be?\n\nMine: [your answer — be honest and specific]\n\nDrop yours in the comments. Let's build a thread worth bookmarking.",+ 'slides' => null,+ 'image_count' => 0,+ 'image_keywords' => null,+ ],+ ];++ foreach ($templates as $t) {+ PostTemplate::query()->updateOrCreate(+ ['name' => $t['name'], 'platform' => $t['platform']],+ $t,+ );+ }+ }+}diff --git a/lang/en/assistant.php b/lang/en/assistant.phpdeleted file mode 100644index 039848b37..000000000--- a/lang/en/assistant.php+++ /dev/null@@ -1,17 +0,0 @@-<?php--return [- 'placeholder' => 'Ask me to write a caption, generate an image or video...',- 'thinking' => 'Thinking...',- 'add_to_post' => 'Add to post',- 'added' => 'Added',- 'error' => 'Something went wrong. Please try again.',- 'retry' => 'Try again',- 'image_generated' => 'Here is the generated image:',- 'video_generated' => 'Here is the generated video:',- 'audio_generated' => 'Here is the generated audio:',- 'empty' => 'Ask me anything. I can write captions, generate images, and produce videos.',- 'limit_reached_images' => 'You have reached your monthly image generation limit.',- 'limit_reached_videos' => 'You have reached your monthly video generation limit.',- 'content_blocked' => "I can't help with that type of content. I'm here to help you create safe, engaging social media content.",-];diff --git a/lang/en/posts.php b/lang/en/posts.phpindex 1f4eb979c..edcdf734b 100644--- a/lang/en/posts.php+++ b/lang/en/posts.php@@ -165,6 +165,33 @@ return ['published' => 'Posts already published',],+ 'ai' => [+ 'generate' => [+ 'button_tooltip' => 'Generate with AI',+ 'title' => 'Generate post with AI',+ 'description' => 'Describe what the post should be about. The AI will use your brand context to write it.',+ 'prompt_label' => 'What is this post about?',+ 'prompt_placeholder' => 'e.g. Announce our new image-generation feature for carousels',+ 'preview_label' => 'Preview',+ 'start' => 'Generate',+ 'apply' => 'Use this content',+ 'retry' => 'Try again',+ 'cancel' => 'Cancel',+ ],+ 'review' => [+ 'button_tooltip' => 'Review with AI',+ 'title' => 'Review post with AI',+ 'description' => 'AI scans for grammar, spelling, and clarity issues. Apply suggestions one by one.',+ 'loading' => 'Reviewing your text...',+ 'no_issues' => 'No issues found. Looks good.',+ 'original' => 'Original',+ 'suggestion' => 'Suggestion',+ 'apply' => 'Apply',+ 'applied' => 'Applied',+ 'close' => 'Close',+ ],+ ],+'show' => ['title' => 'Post Details','edit' => 'Edit',@@ -247,8 +274,6 @@ return ['schedule' => 'Schedule','comments' => 'Comments','comments_empty' => 'No comments yet.',- 'writing_assistant' => 'AI Assistant',- 'writing_assistant_empty' => 'AI writing assistant coming soon.',],'media_picker' => [@@ -433,4 +458,82 @@ return ['account_disconnected' => 'Social account is disconnected','account_inactive' => 'Social account is deactivated',],++ 'create' => [+ 'title' => 'Create a new post',+ 'description' => 'Choose how you want to start.',+ 'scratch_title' => 'Start from scratch',+ 'scratch_description' => 'Open a blank post and write everything yourself.',+ 'ai_title' => 'Generate with AI',+ 'ai_description' => 'Describe what you want and AI generates the content for you.',+ 'ai_configure_description' => 'Pick a format and describe the post you want to create.',+ 'template_title' => 'Use a template',+ 'template_description' => 'Pick from our curated templates and customize.',+ 'coming_soon' => 'Coming soon',++ 'steps' => [+ 'format_title' => 'Choose a format',+ 'format_description' => 'Select the type of post you want to create.',+ 'account_title' => 'Choose an account',+ 'account_description' => 'Select the social account to publish to.',+ 'media_title' => 'Media options',+ 'media_carousel' => 'How many slides?',+ 'media_optional' => 'Include images?',+ 'media_optional_label' => 'How many images?',+ 'media_none' => 'None',+ 'media_count_label' => 'Number of images',+ 'prompt_title' => 'Describe your post',+ 'prompt_label' => 'What is this post about?',+ 'prompt_placeholder' => 'e.g. Announce our new carousel feature for Instagram',+ 'preview_title' => 'Preview',+ 'preview_loading' => 'Generating your content…',+ 'preview_error' => 'Something went wrong. Please try again.',+ 'create' => 'Create post',+ 'back' => 'Back',+ 'next' => 'Continue',+ 'cancel' => 'Cancel',+ 'discard' => 'Discard',+ 'retry' => 'Try again',+ 'no_platforms' => 'No connected accounts',+ 'connect_first' => 'Connect at least one social account to use AI generation.',++ 'format' => [+ 'instagram_feed' => 'Instagram Feed Post',+ 'instagram_carousel' => 'Instagram Carousel',+ 'linkedin_post' => 'LinkedIn Post',+ 'linkedin_page_post' => 'LinkedIn Page Post',+ 'x_post' => 'X Post',+ 'bluesky_post' => 'Bluesky Post',+ 'threads_post' => 'Threads Post',+ 'mastodon_post' => 'Mastodon Post',+ 'facebook_post' => 'Facebook Post',+ 'pinterest_pin' => 'Pinterest Pin',+ 'instagram_story' => 'Instagram Story',+ 'facebook_story' => 'Facebook Story',+ ],+ ],+ ],++ 'templates' => [+ 'browser_title' => 'Choose a template',+ 'browser_description' => 'Start from a curated template and adapt it.',+ 'search_placeholder' => 'Search templates…',+ 'no_search_results' => 'No templates match your search',+ 'try_different_search' => 'Try a different keyword or clear the search.',+ 'slides_count' => '{count} slide|{count} slides',+ 'all_platforms' => 'All platforms',+ 'use_this' => 'Use this template',+ 'no_templates' => 'No templates available.',+ 'applying' => 'Applying template…',+ 'category' => [+ 'product_launch' => 'Product launch',+ 'promotion' => 'Promotion',+ 'educational' => 'Educational',+ 'behind_the_scenes' => 'Behind the scenes',+ 'testimonial' => 'Testimonial',+ 'industry_tip' => 'Industry tip',+ 'event' => 'Event',+ 'engagement' => 'Engagement',+ ],+ ],];diff --git a/lang/en/settings.php b/lang/en/settings.phpindex 1402de4f0..2d7980f96 100644--- a/lang/en/settings.php+++ b/lang/en/settings.php@@ -109,6 +109,7 @@ return ['brand_color' => 'Brand color','background_color' => 'Background color','text_color' => 'Text color',+ 'font' => 'Font','content_language' => 'Content language','content_language_description' => 'Language used for AI-generated captions, hashtags, and any text inside generated images or videos.',],diff --git a/lang/en/workspaces.php b/lang/en/workspaces.phpindex 98a653da1..c15d0a5bf 100644--- a/lang/en/workspaces.php+++ b/lang/en/workspaces.php@@ -13,7 +13,7 @@ return ['create' => ['page_title' => 'Create your workspace','title' => 'Set up your workspace',- 'description' => 'Tell us about your brand. We\'ll use this to tailor AI-generated posts to your voice.',+ 'description' => 'Tell us a bit about you or your project. We\'ll use it to tailor AI-generated posts to your voice.','website' => 'Website','website_placeholder' => 'https://yourbrand.com','autofill' => 'Autofill from website',diff --git a/lang/es/assistant.php b/lang/es/assistant.phpdeleted file mode 100644index d1fed14aa..000000000--- a/lang/es/assistant.php+++ /dev/null@@ -1,19 +0,0 @@-<?php--declare(strict_types=1);--return [- 'placeholder' => 'Pídeme escribir una descripción, generar una imagen o video...',- 'thinking' => 'Pensando...',- 'add_to_post' => 'Añadir al post',- 'added' => 'Añadido',- 'error' => 'Algo salió mal. Inténtalo de nuevo.',- 'retry' => 'Intentar de nuevo',- 'image_generated' => 'Aquí está la imagen generada:',- 'video_generated' => 'Aquí está el video generado:',- 'audio_generated' => 'Aquí está el audio generado:',- 'empty' => 'Pregúntame lo que quieras. Puedo escribir descripciones, generar imágenes y producir videos.',- 'limit_reached_images' => 'Has alcanzado el límite mensual de generación de imágenes.',- 'limit_reached_videos' => 'Has alcanzado el límite mensual de generación de videos.',- 'content_blocked' => 'No puedo ayudar con ese tipo de contenido. Estoy aquí para ayudarte a crear contenido seguro y atractivo para redes sociales.',-];diff --git a/lang/es/posts.php b/lang/es/posts.phpindex 6848a0fd1..69ee6b93c 100644--- a/lang/es/posts.php+++ b/lang/es/posts.php@@ -165,6 +165,33 @@ return ['published' => 'Posts ya publicados',],+ 'ai' => [+ 'generate' => [+ 'button_tooltip' => 'Generar con IA',+ 'title' => 'Generar post con IA',+ 'description' => 'Describe sobre qué debe ser el post. La IA usará el contexto de tu marca para escribirlo.',+ 'prompt_label' => '¿De qué trata este post?',+ 'prompt_placeholder' => 'ej: anunciar nuestra nueva función de generación de imágenes para carruseles',+ 'preview_label' => 'Vista previa',+ 'start' => 'Generar',+ 'apply' => 'Usar este contenido',+ 'retry' => 'Intentar de nuevo',+ 'cancel' => 'Cancelar',+ ],+ 'review' => [+ 'button_tooltip' => 'Revisar con IA',+ 'title' => 'Revisar post con IA',+ 'description' => 'La IA busca errores de gramática, ortografía y claridad. Aplica las sugerencias una a una.',+ 'loading' => 'Revisando tu texto...',+ 'no_issues' => 'No se encontraron problemas. Todo bien.',+ 'original' => 'Original',+ 'suggestion' => 'Sugerencia',+ 'apply' => 'Aplicar',+ 'applied' => 'Aplicado',+ 'close' => 'Cerrar',+ ],+ ],+'show' => ['title' => 'Detalles del post','edit' => 'Editar',@@ -255,8 +282,6 @@ return ['schedule' => 'Programación','comments' => 'Comentarios','comments_empty' => 'Todavía no hay comentarios.',- 'writing_assistant' => 'Asistente IA',- 'writing_assistant_empty' => 'Asistente de escritura próximamente.',],'media_picker' => [@@ -446,4 +471,82 @@ return ['account_disconnected' => 'Cuenta social desconectada','account_inactive' => 'Cuenta social desactivada',],++ 'create' => [+ 'title' => 'Crear nuevo post',+ 'description' => 'Elige cómo quieres empezar.',+ 'scratch_title' => 'Empezar desde cero',+ 'scratch_description' => 'Abre un post en blanco para escribirlo todo.',+ 'ai_title' => 'Generar con IA',+ 'ai_description' => 'Describe lo que quieres y la IA genera el contenido por ti.',+ 'ai_configure_description' => 'Elige un formato y describe el post que quieres crear.',+ 'template_title' => 'Usar una plantilla',+ 'template_description' => 'Elige una de nuestras plantillas y personalízala.',+ 'coming_soon' => 'Próximamente',++ 'steps' => [+ 'format_title' => 'Elige un formato',+ 'format_description' => 'Selecciona el tipo de post que quieres crear.',+ 'account_title' => 'Elige una cuenta',+ 'account_description' => 'Selecciona la cuenta social donde publicar.',+ 'media_title' => 'Opciones de medios',+ 'media_carousel' => '¿Cuántas diapositivas?',+ 'media_optional' => '¿Incluir imágenes?',+ 'media_optional_label' => '¿Cuántas imágenes?',+ 'media_none' => 'Ninguna',+ 'media_count_label' => 'Número de imágenes',+ 'prompt_title' => 'Describe tu post',+ 'prompt_label' => '¿De qué trata este post?',+ 'prompt_placeholder' => 'Ej. Anuncia nuestra nueva función de carrusel para Instagram',+ 'preview_title' => 'Vista previa',+ 'preview_loading' => 'Generando tu contenido…',+ 'preview_error' => 'Algo salió mal. Por favor, inténtalo de nuevo.',+ 'create' => 'Crear post',+ 'back' => 'Atrás',+ 'next' => 'Continuar',+ 'cancel' => 'Cancelar',+ 'discard' => 'Descartar',+ 'retry' => 'Intentar de nuevo',+ 'no_platforms' => 'Sin cuentas conectadas',+ 'connect_first' => 'Conecta al menos una cuenta social para usar la generación con IA.',++ 'format' => [+ 'instagram_feed' => 'Post de Feed de Instagram',+ 'instagram_carousel' => 'Carrusel de Instagram',+ 'linkedin_post' => 'Post de LinkedIn',+ 'linkedin_page_post' => 'Post de Página de LinkedIn',+ 'x_post' => 'Post en X',+ 'bluesky_post' => 'Post en Bluesky',+ 'threads_post' => 'Post en Threads',+ 'mastodon_post' => 'Post en Mastodon',+ 'facebook_post' => 'Post en Facebook',+ 'pinterest_pin' => 'Pin de Pinterest',+ 'instagram_story' => 'Story de Instagram',+ 'facebook_story' => 'Story de Facebook',+ ],+ ],+ ],++ 'templates' => [+ 'browser_title' => 'Elige una plantilla',+ 'browser_description' => 'Comienza con una plantilla curada y adáptala.',+ 'search_placeholder' => 'Buscar plantillas…',+ 'no_search_results' => 'Ninguna plantilla coincide con tu búsqueda',+ 'try_different_search' => 'Prueba otra palabra clave o limpia la búsqueda.',+ 'slides_count' => '{count} slide|{count} slides',+ 'all_platforms' => 'Todas las plataformas',+ 'use_this' => 'Usar esta plantilla',+ 'no_templates' => 'No hay plantillas disponibles.',+ 'applying' => 'Aplicando plantilla…',+ 'category' => [+ 'product_launch' => 'Lanzamiento de producto',+ 'promotion' => 'Promoción',+ 'educational' => 'Educativo',+ 'behind_the_scenes' => 'Detrás de cámaras',+ 'testimonial' => 'Testimonio',+ 'industry_tip' => 'Consejo del sector',+ 'event' => 'Evento',+ 'engagement' => 'Interacción',+ ],+ ],];diff --git a/lang/es/settings.php b/lang/es/settings.phpindex 843e24a05..0eddb3aa5 100644--- a/lang/es/settings.php+++ b/lang/es/settings.php@@ -109,6 +109,7 @@ return ['brand_color' => 'Color de marca','background_color' => 'Color de fondo','text_color' => 'Color de texto',+ 'font' => 'Fuente','content_language' => 'Idioma del contenido','content_language_description' => 'Idioma usado en los subtítulos, hashtags y cualquier texto dentro de imágenes o videos generados por IA.',],diff --git a/lang/es/workspaces.php b/lang/es/workspaces.phpindex 505774348..9128dea18 100644--- a/lang/es/workspaces.php+++ b/lang/es/workspaces.php@@ -13,7 +13,7 @@ return ['create' => ['page_title' => 'Crea tu workspace','title' => 'Configura tu workspace',- 'description' => 'Cuéntanos sobre tu marca. Lo usaremos para personalizar las publicaciones generadas por IA con tu voz.',+ 'description' => 'Cuéntanos un poco sobre ti o tu proyecto. Lo usaremos para personalizar las publicaciones generadas por IA con tu voz.','website' => 'Sitio web','website_placeholder' => 'https://tumarca.com','autofill' => 'Autocompletar desde el sitio',diff --git a/lang/php_en.json b/lang/php_en.jsonindex 8ac2b7aef..5bf5dd5b9 100644--- a/lang/php_en.json+++ b/lang/php_en.json@@ -1 +1 @@-{"auth.failed":"These credentials do not match our records.","auth.password":"The provided password is incorrect.","auth.throttle":"Too many login attempts. Please try again in :seconds seconds.","pagination.previous":"« Previous","pagination.next":"Next »","passwords.reset":"Your password has been reset.","passwords.sent":"We have emailed your password reset link.","passwords.throttled":"Please wait before retrying.","passwords.token":"This password reset token is invalid.","passwords.user":"We can't find a user with that email address.","validation.accepted":"The :attribute field must be accepted.","validation.accepted_if":"The :attribute field must be accepted when :other is :value.","validation.active_url":"The :attribute field must be a valid URL.","validation.after":"The :attribute field must be a date after :date.","validation.after_or_equal":"The :attribute field must be a date after or equal to :date.","validation.alpha":"The :attribute field must only contain letters.","validation.alpha_dash":"The :attribute field must only contain letters, numbers, dashes, and underscores.","validation.alpha_num":"The :attribute field must only contain letters and numbers.","validation.any_of":"The :attribute field is invalid.","validation.array":"The :attribute field must be an array.","validation.ascii":"The :attribute field must only contain single-byte alphanumeric characters and symbols.","validation.before":"The :attribute field must be a date before :date.","validation.before_or_equal":"The :attribute field must be a date before or equal to :date.","validation.between.array":"The :attribute field must have between :min and :max items.","validation.between.file":"The :attribute field must be between :min and :max kilobytes.","validation.between.numeric":"The :attribute field must be between :min and :max.","validation.between.string":"The :attribute field must be between :min and :max characters.","validation.boolean":"The :attribute field must be true or false.","validation.can":"The :attribute field contains an unauthorized value.","validation.confirmed":"The :attribute field confirmation does not match.","validation.contains":"The :attribute field is missing a required value.","validation.current_password":"The password is incorrect.","validation.date":"The :attribute field must be a valid date.","validation.date_equals":"The :attribute field must be a date equal to :date.","validation.date_format":"The :attribute field must match the format :format.","validation.decimal":"The :attribute field must have :decimal decimal places.","validation.declined":"The :attribute field must be declined.","validation.declined_if":"The :attribute field must be declined when :other is :value.","validation.different":"The :attribute field and :other must be different.","validation.digits":"The :attribute field must be :digits digits.","validation.digits_between":"The :attribute field must be between :min and :max digits.","validation.dimensions":"The :attribute field has invalid image dimensions.","validation.distinct":"The :attribute field has a duplicate value.","validation.doesnt_contain":"The :attribute field must not contain any of the following: :values.","validation.doesnt_end_with":"The :attribute field must not end with one of the following: :values.","validation.doesnt_start_with":"The :attribute field must not start with one of the following: :values.","validation.email":"The :attribute field must be a valid email address.","validation.encoding":"The :attribute field must be encoded in :encoding.","validation.ends_with":"The :attribute field must end with one of the following: :values.","validation.enum":"The selected :attribute is invalid.","validation.exists":"The selected :attribute is invalid.","validation.extensions":"The :attribute field must have one of the following extensions: :values.","validation.file":"The :attribute field must be a file.","validation.filled":"The :attribute field must have a value.","validation.gt.array":"The :attribute field must have more than :value items.","validation.gt.file":"The :attribute field must be greater than :value kilobytes.","validation.gt.numeric":"The :attribute field must be greater than :value.","validation.gt.string":"The :attribute field must be greater than :value characters.","validation.gte.array":"The :attribute field must have :value items or more.","validation.gte.file":"The :attribute field must be greater than or equal to :value kilobytes.","validation.gte.numeric":"The :attribute field must be greater than or equal to :value.","validation.gte.string":"The :attribute field must be greater than or equal to :value characters.","validation.hex_color":"The :attribute field must be a valid hexadecimal color.","validation.image":"The :attribute field must be an image.","validation.in":"The selected :attribute is invalid.","validation.in_array":"The :attribute field must exist in :other.","validation.in_array_keys":"The :attribute field must contain at least one of the following keys: :values.","validation.integer":"The :attribute field must be an integer.","validation.ip":"The :attribute field must be a valid IP address.","validation.ipv4":"The :attribute field must be a valid IPv4 address.","validation.ipv6":"The :attribute field must be a valid IPv6 address.","validation.json":"The :attribute field must be a valid JSON string.","validation.list":"The :attribute field must be a list.","validation.lowercase":"The :attribute field must be lowercase.","validation.lt.array":"The :attribute field must have less than :value items.","validation.lt.file":"The :attribute field must be less than :value kilobytes.","validation.lt.numeric":"The :attribute field must be less than :value.","validation.lt.string":"The :attribute field must be less than :value characters.","validation.lte.array":"The :attribute field must not have more than :value items.","validation.lte.file":"The :attribute field must be less than or equal to :value kilobytes.","validation.lte.numeric":"The :attribute field must be less than or equal to :value.","validation.lte.string":"The :attribute field must be less than or equal to :value characters.","validation.mac_address":"The :attribute field must be a valid MAC address.","validation.max.array":"The :attribute field must not have more than :max items.","validation.max.file":"The :attribute field must not be greater than :max kilobytes.","validation.max.numeric":"The :attribute field must not be greater than :max.","validation.max.string":"The :attribute field must not be greater than :max characters.","validation.max_digits":"The :attribute field must not have more than :max digits.","validation.mimes":"The :attribute field must be a file of type: :values.","validation.mimetypes":"The :attribute field must be a file of type: :values.","validation.min.array":"The :attribute field must have at least :min items.","validation.min.file":"The :attribute field must be at least :min kilobytes.","validation.min.numeric":"The :attribute field must be at least :min.","validation.min.string":"The :attribute field must be at least :min characters.","validation.min_digits":"The :attribute field must have at least :min digits.","validation.missing":"The :attribute field must be missing.","validation.missing_if":"The :attribute field must be missing when :other is :value.","validation.missing_unless":"The :attribute field must be missing unless :other is :value.","validation.missing_with":"The :attribute field must be missing when :values is present.","validation.missing_with_all":"The :attribute field must be missing when :values are present.","validation.multiple_of":"The :attribute field must be a multiple of :value.","validation.not_in":"The selected :attribute is invalid.","validation.not_regex":"The :attribute field format is invalid.","validation.numeric":"The :attribute field must be a number.","validation.password.letters":"The :attribute field must contain at least one letter.","validation.password.mixed":"The :attribute field must contain at least one uppercase and one lowercase letter.","validation.password.numbers":"The :attribute field must contain at least one number.","validation.password.symbols":"The :attribute field must contain at least one symbol.","validation.password.uncompromised":"The given :attribute has appeared in a data leak. Please choose a different :attribute.","validation.present":"The :attribute field must be present.","validation.present_if":"The :attribute field must be present when :other is :value.","validation.present_unless":"The :attribute field must be present unless :other is :value.","validation.present_with":"The :attribute field must be present when :values is present.","validation.present_with_all":"The :attribute field must be present when :values are present.","validation.prohibited":"The :attribute field is prohibited.","validation.prohibited_if":"The :attribute field is prohibited when :other is :value.","validation.prohibited_if_accepted":"The :attribute field is prohibited when :other is accepted.","validation.prohibited_if_declined":"The :attribute field is prohibited when :other is declined.","validation.prohibited_unless":"The :attribute field is prohibited unless :other is in :values.","validation.prohibits":"The :attribute field prohibits :other from being present.","validation.regex":"The :attribute field format is invalid.","validation.required":"The :attribute field is required.","validation.required_array_keys":"The :attribute field must contain entries for: :values.","validation.required_if":"The :attribute field is required when :other is :value.","validation.required_if_accepted":"The :attribute field is required when :other is accepted.","validation.required_if_declined":"The :attribute field is required when :other is declined.","validation.required_unless":"The :attribute field is required unless :other is in :values.","validation.required_with":"The :attribute field is required when :values is present.","validation.required_with_all":"The :attribute field is required when :values are present.","validation.required_without":"The :attribute field is required when :values is not present.","validation.required_without_all":"The :attribute field is required when none of :values are present.","validation.same":"The :attribute field must match :other.","validation.size.array":"The :attribute field must contain :size items.","validation.size.file":"The :attribute field must be :size kilobytes.","validation.size.numeric":"The :attribute field must be :size.","validation.size.string":"The :attribute field must be :size characters.","validation.starts_with":"The :attribute field must start with one of the following: :values.","validation.string":"The :attribute field must be a string.","validation.timezone":"The :attribute field must be a valid timezone.","validation.unique":"The :attribute has already been taken.","validation.uploaded":"The :attribute failed to upload.","validation.uppercase":"The :attribute field must be uppercase.","validation.url":"The :attribute field must be a valid URL.","validation.ulid":"The :attribute field must be a valid ULID.","validation.uuid":"The :attribute field must be a valid UUID.","validation.custom.attribute-name.rule-name":"custom-message","accounts.title":"Connections","accounts.page_title":"Social Accounts","accounts.description":"Overview of all your connected social accounts","accounts.add_social":"Add Social","accounts.add_social_title":"Connect a Social Account","accounts.add_social_description":"Connect a social account to TryPost to start posting","accounts.no_accounts":"No accounts connected yet","accounts.no_accounts_description":"Connect your social networks to start scheduling and publishing posts","accounts.no_search_results":"No accounts match your search","accounts.try_different_search":"Try a different keyword or clear the search.","accounts.search":"Search accounts...","accounts.added":"Added :date","accounts.limit_reached":"You have reached your plan limit for social accounts.","accounts.not_connected":"Not connected","accounts.connect":"Connect","accounts.connection_lost":"Connection lost","accounts.reconnect_account":"Reconnect account","accounts.view_profile":"View profile","accounts.disconnect":"Disconnect","accounts.table.account":"Account","accounts.table.platform":"Platform","accounts.table.status":"Status","accounts.table.last_used":"Last used","accounts.table.added":"Added","accounts.table.active":"Active","accounts.never_used":"Never used","accounts.status.connected":"Connected","accounts.status.disconnected":"Disconnected","accounts.descriptions.linkedin":"Connect your LinkedIn personal profile","accounts.descriptions.linkedin-page":"Connect a LinkedIn company page","accounts.descriptions.x":"Connect your X (Twitter) account","accounts.descriptions.tiktok":"Connect your TikTok account","accounts.descriptions.youtube":"Connect a YouTube channel","accounts.descriptions.facebook":"Connect a Facebook page","accounts.descriptions.instagram":"Connect an Instagram professional account","accounts.descriptions.instagram-facebook":"Connect Instagram via Facebook page","accounts.descriptions.threads":"Connect your Threads account","accounts.descriptions.pinterest":"Connect your Pinterest account","accounts.descriptions.bluesky":"Connect your Bluesky account","accounts.descriptions.mastodon":"Connect your Mastodon account","accounts.disconnect_modal.title":"Disconnect Account","accounts.disconnect_modal.description":"Are you sure you want to disconnect this account? You can reconnect it at any time.","accounts.disconnect_modal.confirm":"Disconnect","accounts.disconnect_modal.cancel":"Cancel","accounts.bluesky.title":"Connect Bluesky","accounts.bluesky.description":"Enter your credentials to connect","accounts.bluesky.email":"Email","accounts.bluesky.email_placeholder":"yourhandle.bsky.social","accounts.bluesky.app_password":"App Password","accounts.bluesky.app_password_placeholder":"xxxx-xxxx-xxxx-xxxx","accounts.bluesky.app_password_hint":"Use an <strong>App Password</strong> for security. Create one at <a href=\"https://bsky.app/settings/app-passwords\" target=\"_blank\" class=\"underline\">bsky.app/settings</a>.","accounts.bluesky.submit":"Connect Bluesky","accounts.bluesky.submitting":"Connecting...","accounts.mastodon.title":"Connect Mastodon","accounts.mastodon.description":"Enter your Mastodon instance","accounts.mastodon.instance_url":"Instance URL","accounts.mastodon.instance_placeholder":"https://mastodon.social","accounts.mastodon.instance_hint":"Enter your Mastodon instance URL (e.g., mastodon.social, techhub.social)","accounts.mastodon.submit":"Continue with Mastodon","accounts.mastodon.submitting":"Connecting...","accounts.facebook.title":"Select Facebook Page","accounts.facebook.description":"Choose which page you want to connect","accounts.facebook.no_pages":"No pages found","accounts.facebook.no_pages_description":"You are not an admin of any Facebook page.","accounts.facebook.page_label":"Facebook Page","accounts.instagram_facebook.title":"Select Instagram Account","accounts.instagram_facebook.description":"Choose which Instagram account you want to connect","accounts.instagram_facebook.no_pages":"No Instagram accounts found","accounts.instagram_facebook.no_pages_description":"No Facebook Pages with linked Instagram Business accounts were found.","accounts.linkedin.title":"Select LinkedIn Page","accounts.linkedin.description":"Choose which page you want to connect","accounts.linkedin.no_pages":"No pages found","accounts.linkedin.no_pages_description":"You are not an administrator of any LinkedIn page.","accounts.linkedin.page_label":"LinkedIn Page","accounts.flash.disconnected":"Account disconnected successfully!","accounts.flash.connected":"Account connected successfully!","accounts.flash.session_expired":"Session expired. Please try again.","accounts.flash.workspace_not_found":"Workspace not found.","accounts.flash.activated":"Account activated!","accounts.flash.deactivated":"Account deactivated!","accounts.flash.already_connected":"This platform is already connected.","accounts.flash.no_youtube_channels":"No YouTube channels found. Please create a channel first.","analytics.channels":"Channels","analytics.no_accounts":"No connected accounts with analytics.","analytics.select_account":"Select an account to view analytics.","analytics.no_data":"No analytics data available.","assets.title":"Assets","assets.tabs.my_uploads":"My Uploads","assets.tabs.stock_photos":"Stock Photos","assets.tabs.gifs":"GIFs","assets.upload.drag_drop":"Drag & drop your files here, or click to select","assets.upload.formats":"JPEG, PNG, GIF, WebP, MP4","assets.upload.uploading":"Uploading...","assets.empty.title":"No assets yet","assets.empty.description":"Upload images and videos to build your media library.","assets.save_to_assets":"Save to Assets","assets.saved":"Saved to your assets!","assets.create_post":"Create post","assets.add_to_post":"Add to post","assets.search_placeholder":"Search media...","assets.delete.title":"Delete asset","assets.delete.description":"Are you sure you want to delete this asset? This action cannot be undone.","assets.delete.confirm":"Delete","assets.delete.cancel":"Cancel","assets.unsplash.search_placeholder":"Search free photos...","assets.unsplash.no_results":"No photos found","assets.unsplash.no_results_description":"Try a different search term.","assets.unsplash.trending":"Trending on Unsplash","assets.unsplash.start_searching":"Search for free stock photos from Unsplash","assets.giphy.trending":"Trending on Giphy","assets.giphy.search_placeholder":"Search GIFs...","assets.giphy.no_results":"No GIFs found","assets.giphy.no_results_description":"Try a different search term.","assets.giphy.powered_by":"Powered by GIPHY","assistant.placeholder":"Ask me to write a caption, generate an image or video...","assistant.thinking":"Thinking...","assistant.add_to_post":"Add to post","assistant.added":"Added","assistant.error":"Something went wrong. Please try again.","assistant.retry":"Try again","assistant.image_generated":"Here is the generated image:","assistant.video_generated":"Here is the generated video:","assistant.audio_generated":"Here is the generated audio:","assistant.empty":"Ask me anything. I can write captions, generate images, and produce videos.","assistant.limit_reached_images":"You have reached your monthly image generation limit.","assistant.limit_reached_videos":"You have reached your monthly video generation limit.","assistant.content_blocked":"I can't help with that type of content. I'm here to help you create safe, engaging social media content.","auth.flash.welcome":"Welcome to TryPost!","auth.flash.welcome_trial":"Welcome to TryPost! Your trial has started.","auth.legal":"By continuing, you agree to our <a href=\"https://trypost.it/terms\" target=\"_blank\">Terms of Service</a> and <a href=\"https://trypost.it/privacy\" target=\"_blank\">Privacy Policy</a>.","auth.slides.calendar.title":"Visual Calendar","auth.slides.calendar.description":"Plan and schedule your content with an intuitive drag-and-drop calendar across all your social accounts.","auth.slides.scheduling.title":"Smart Scheduling","auth.slides.scheduling.description":"Schedule posts across LinkedIn, X, Instagram, TikTok, YouTube, and more — all from one place.","auth.slides.media.title":"Rich Media","auth.slides.media.description":"Publish images, carousels, stories, and reels. Each platform gets the right format automatically.","auth.slides.video.title":"Video Publishing","auth.slides.video.description":"Upload videos once and publish to TikTok, YouTube Shorts, Instagram Reels, and Facebook Reels.","auth.slides.team.title":"Team Workspaces","auth.slides.team.description":"Invite your team, assign roles, and manage multiple brands from separate workspaces.","auth.slides.hashtags.title":"Hashtag Groups","auth.slides.hashtags.description":"Save hashtag collections and add them to posts with one click. Organize with labels and filters.","auth.or_continue_with":"Or continue with","auth.google_login":"Log in with Google","auth.google_signup":"Sign up with Google","auth.signup_success.page_title":"Welcome","auth.signup_success.title":"Setting up your account","auth.signup_success.description":"This usually takes just a few seconds...","auth.login.title":"Log in to your account","auth.login.description":"Enter your email and password below to log in","auth.login.page_title":"Log in","auth.login.email":"Email address","auth.login.password":"Password","auth.login.forgot_password":"Forgot password?","auth.login.remember_me":"Remember me","auth.login.submit":"Log in","auth.login.no_account":"Don't have an account?","auth.login.sign_up":"Sign up","auth.register.title":"Create an account","auth.register.description":"Enter your details below to create your account","auth.register.page_title":"Register","auth.register.name":"Name","auth.register.name_placeholder":"Full name","auth.register.email":"Email address","auth.register.password":"Password","auth.register.show_password":"Show password","auth.register.hide_password":"Hide password","auth.register.submit":"Create account","auth.register.has_account":"Already have an account?","auth.register.log_in":"Log in","auth.forgot_password.title":"Forgot password","auth.forgot_password.description":"Enter your email to receive a password reset link","auth.forgot_password.page_title":"Forgot password","auth.forgot_password.email":"Email address","auth.forgot_password.submit":"Email password reset link","auth.forgot_password.return_to":"Or, return to","auth.forgot_password.log_in":"log in","auth.reset_password.title":"Reset password","auth.reset_password.description":"Please enter your new password below","auth.reset_password.page_title":"Reset password","auth.reset_password.email":"Email","auth.reset_password.password":"Password","auth.reset_password.confirm_password":"Confirm Password","auth.reset_password.confirm_placeholder":"Confirm password","auth.reset_password.submit":"Reset password","auth.verify_email.title":"Verify email","auth.verify_email.description":"Please verify your email address by clicking on the link we just emailed to you.","auth.verify_email.page_title":"Email verification","auth.verify_email.link_sent":"A new verification link has been sent to the email address you provided during registration.","auth.verify_email.resend":"Resend verification email","auth.verify_email.log_out":"Log out","auth.accept_invite.page_title":"Accept Invite","auth.accept_invite.title":"You've been invited!","auth.accept_invite.description":"You've been invited to join the :workspace workspace.","auth.accept_invite.workspace":"Workspace","auth.accept_invite.your_role":"Your role","auth.accept_invite.email":"Email","auth.accept_invite.accept":"Accept Invite","auth.accept_invite.decline":"Decline Invite","auth.accept_invite.login_prompt":"Log in or create an account to accept this invite.","auth.accept_invite.log_in":"Log in","auth.accept_invite.create_account":"Create Account","billing.title":"Billing","billing.subscribe.page_title":"Choose your plan","billing.subscribe.title":"Choose the right plan for you","billing.subscribe.description":"Start with a :days-day free trial. No charge until your trial ends.","billing.subscribe.trial_info":":days-day free trial, then billed automatically","billing.subscribe.monthly":"Monthly","billing.subscribe.yearly":"Yearly","billing.subscribe.per_month":"mo","billing.subscribe.billed_monthly":"billed monthly","billing.subscribe.billed_yearly":"billed yearly","billing.subscribe.save_months":"2 months free","billing.subscribe.popular":"Most popular","billing.subscribe.start_trial":"Start :days-day free trial","billing.subscribe.card_required":"Credit card required to start your trial.","billing.subscribe.cancel_anytime":"Cancel anytime before your trial ends — no charge.","billing.subscribe.features.social_accounts":":count social accounts","billing.subscribe.features.workspaces":":count workspaces","billing.subscribe.features.members":":count team members","billing.subscribe.features.ai_images":":count AI images/mo","billing.subscribe.features.ai_videos":":count AI videos/mo","billing.subscribe.features.data_retention":":days data retention","billing.plan.title":"Plan","billing.plan.description":"Manage your subscription plan.","billing.plan.change":"Change plan","billing.plan.label":"Plan","billing.plan.price":"Price","billing.plan.month":"month","billing.plan.trial":"Trial","billing.plan.active":"Active","billing.plan.past_due":"Past due","billing.plan.cancelling":"Cancelling","billing.plan.trial_ends":"Trial ends","billing.subscription.title":"Subscription","billing.subscription.description":"Manage your payment method, billing details, and subscription.","billing.subscription.payment_method":"Payment method","billing.subscription.manage_label":"Subscription","billing.subscription.manage_stripe":"Manage on Stripe","billing.invoices.title":"Invoices","billing.invoices.description":"Download your past invoices.","billing.invoices.empty":"No invoices found","billing.invoices.paid":"Paid","billing.processing.page_title":"Processing...","billing.processing.title":"Processing your subscription","billing.processing.description":"Please wait while we set up your account. This will only take a moment.","billing.processing.success_title":"You're all set!","billing.processing.success_description":"Your subscription is active. Redirecting you to your workspaces...","billing.processing.cancelled_title":"Checkout cancelled","billing.processing.cancelled_description":"Your checkout was cancelled. No charges were made.","billing.processing.retry":"Try again","brands.new_brand":"New Brand","brands.no_brands_yet":"No brands yet","brands.no_brands_description":"Create brands to organize your social accounts by client or project","brands.accounts_count":":count accounts","brands.create.title":"Create Brand","brands.create.description":"Give your brand a name to group social accounts","brands.create.name":"Brand Name","brands.create.name_placeholder":"e.g. Acme Corp, Personal","brands.create.submit":"Create Brand","brands.create.submitting":"Creating...","brands.edit.title":"Edit Brand","brands.edit.description":"Update the name of this brand","brands.edit.name":"Brand Name","brands.edit.name_placeholder":"e.g. Acme Corp, Personal","brands.edit.submit":"Save Changes","brands.edit.submitting":"Saving...","brands.delete.title":"Delete Brand","brands.delete.description":"Are you sure you want to delete this brand? Social accounts will be unassigned but not deleted.","brands.delete.confirm":"Delete","brands.delete.cancel":"Cancel","brands.flash.created":"Brand created successfully!","brands.flash.updated":"Brand updated successfully!","brands.flash.deleted":"Brand deleted successfully!","calendar.title":"Calendar","calendar.today":"Today","calendar.day":"Day","calendar.week":"Week","calendar.month":"Month","calendar.new_post":"New Post","calendar.no_content":"No content","calendar.more":"+:count more","comments.placeholder":"Write a comment...","comments.reply_placeholder":"Write a reply...","comments.reply":"Reply","comments.edit":"Edit","comments.delete":"Delete","comments.edited":"edited","comments.save":"Save","comments.cancel":"Cancel","comments.send":"Send","comments.replying_to":"Replying to :name","comments.empty":"No comments yet. Start the conversation.","comments.load_more":"Load older comments","common.confirm_modal.cannot_be_undone":"This cannot be undone.","common.confirm_modal.type":"Type","common.confirm_modal.to_confirm":"to confirm.","common.confirm_modal.copy_to_clipboard":"Copy to clipboard","common.photo_upload.upload":"Upload","common.photo_upload.uploading":"Uploading...","common.photo_upload.remove":"Remove photo","common.photo_upload.hint":"Recommended: square image, max 2 MB.","common.timezone.select":"Select timezone","common.timezone.search":"Search timezone...","common.timezone.empty":"No timezone found","common.date_picker.select":"Select date","common.cancel":"Cancel","common.loading_more":"Loading more...","hashtags.title":"Hashtags","hashtags.description":"Create hashtag groups to quickly add to your posts","hashtags.search":"Search hashtags...","hashtags.new_group":"New Group","hashtags.no_groups_yet":"No hashtag groups yet","hashtags.no_groups_description":"Create hashtag groups to quickly add popular hashtags to your posts","hashtags.no_search_results":"No groups match your search","hashtags.try_different_search":"Try a different keyword or clear the search.","hashtags.create_first_group":"Create your first group","hashtags.hashtags_count":":count hashtags","hashtags.table.name":"Name","hashtags.table.tags":"Tags","hashtags.table.count":"Count","hashtags.table.created_at":"Created","hashtags.create.title":"Create Hashtag Group","hashtags.create.description":"Give your group a name and add hashtags separated by spaces or commas","hashtags.create.name":"Group Name","hashtags.create.name_placeholder":"e.g. Marketing, Travel, Food","hashtags.create.hashtags":"Hashtags","hashtags.create.hashtags_placeholder":"#marketing #socialmedia #business #growth","hashtags.create.hashtags_hint":"Enter hashtags separated by spaces or commas. Include the # symbol.","hashtags.create.submit":"Create Group","hashtags.create.submitting":"Creating...","hashtags.edit.title":"Edit Hashtag Group","hashtags.edit.description":"Update the name and hashtags for this group","hashtags.edit.name":"Group Name","hashtags.edit.name_placeholder":"e.g. Marketing, Travel, Food","hashtags.edit.hashtags":"Hashtags","hashtags.edit.hashtags_placeholder":"#marketing #socialmedia #business #growth","hashtags.edit.hashtags_hint":"Enter hashtags separated by spaces or commas. Include the # symbol.","hashtags.edit.submit":"Save Changes","hashtags.edit.submitting":"Saving...","hashtags.delete.title":"Delete Hashtag Group","hashtags.delete.description":"Are you sure you want to delete this hashtag group? This action cannot be undone.","hashtags.delete.confirm":"Delete","hashtags.delete.cancel":"Cancel","hashtags.flash.created":"Hashtag group created successfully!","hashtags.flash.updated":"Hashtag group updated successfully!","hashtags.flash.deleted":"Hashtag group deleted successfully!","labels.title":"Labels","labels.description":"Create labels to organize and categorize your posts","labels.search":"Search labels...","labels.new_label":"New Label","labels.no_labels_yet":"No labels yet","labels.no_search_results":"No labels match your search","labels.try_different_search":"Try a different keyword or clear the search.","labels.create_first_label":"Create your first label","labels.table.name":"Name","labels.table.created_at":"Created","labels.create.title":"Create Label","labels.create.description":"Give your label a name and pick a color","labels.create.name":"Name","labels.create.name_placeholder":"Enter label name...","labels.create.color":"Color","labels.create.submit":"Create Label","labels.create.submitting":"Creating...","labels.edit.title":"Edit Label","labels.edit.description":"Update the name and color for this label","labels.edit.name":"Name","labels.edit.name_placeholder":"Enter label name...","labels.edit.color":"Color","labels.edit.submit":"Save Changes","labels.edit.submitting":"Saving...","labels.delete.title":"Delete Label","labels.delete.description":"Are you sure you want to delete this label? This action cannot be undone.","labels.delete.confirm":"Delete","labels.delete.cancel":"Cancel","labels.flash.created":"Label created successfully!","labels.flash.updated":"Label updated successfully!","labels.flash.deleted":"Label deleted successfully!","mail.mentioned.subject":":name mentioned you on TryPost","mail.mentioned.title":":name mentioned you","mail.mentioned.intro":":name mentioned you in a post comment.","mail.mentioned.cta":"View comment","mail.workspace_connections_disconnected.subject":"{1} :count account needs to be reconnected in :workspace|[2,*] :count accounts need to be reconnected in :workspace","mail.workspace_connections_disconnected.title":"Accounts Need Reconnection","mail.workspace_connections_disconnected.intro":"The following social accounts in your <strong>:workspace</strong> workspace have been disconnected and need to be reconnected:","mail.workspace_connections_disconnected.reasons_title":"This may have happened because:","mail.workspace_connections_disconnected.reason_expired":"Access tokens expired","mail.workspace_connections_disconnected.reason_revoked":"You revoked access to TryPost on the platform","mail.workspace_connections_disconnected.reason_changed":"The platform changed their authentication requirements","mail.workspace_connections_disconnected.reconnect_cta":"Please reconnect these accounts to continue scheduling and publishing posts.","mail.workspace_connections_disconnected.button":"Reconnect Accounts","posts.title":"Posts","posts.search":"Search posts...","posts.all_posts":"All Posts","posts.new_post":"New Post","posts.no_posts":"No posts found","posts.no_search_results":"No posts match your search","posts.try_different_search":"Try a different keyword or clear the search.","posts.start_creating":"Start by creating your first post.","posts.table.status":"Status","posts.table.content":"Content","posts.table.platforms":"Platforms","posts.table.labels":"Labels","posts.table.scheduled_at":"Date","posts.table.actions":"","posts.manage_posts":"Manage all your posts","posts.delete_confirm":"Are you sure you want to delete this post?","posts.by":"by","posts.actions.view":"View post","posts.actions.delete":"Delete post","posts.form.post_type":"Post Type","posts.form.board":"Board","posts.form.select_board":"Select a board","posts.form.search_board":"Search board...","posts.form.no_board_found":"No board found","posts.form.media":"Media","posts.form.min":"Min","posts.form.uploading":"Uploading...","posts.form.drop_to_upload":"Drop to upload","posts.form.drag_and_drop":"Drag & drop or click to upload","posts.form.photos_and_videos":"Photos and videos","posts.form.photos_only":"Photos only","posts.form.videos_only":"Videos only","posts.form.drag_to_reorder":"Drag to reorder","posts.form.caption":"Caption","posts.form.write_caption":"Write your caption...","posts.form.tiktok.settings":"TikTok Settings","posts.form.tiktok.posting_to":"Posting to","posts.form.tiktok.privacy_level":"Who can see this video?","posts.form.tiktok.privacy_placeholder":"Select visibility","posts.form.tiktok.privacy.public":"Public to everyone","posts.form.tiktok.privacy.friends":"Mutual follow friends","posts.form.tiktok.privacy.followers":"Followers","posts.form.tiktok.privacy.private":"Only me","posts.form.tiktok.privacy_hint":"The available options depend on your TikTok account settings.","posts.form.tiktok.auto_add_music":"Auto add music","posts.form.tiktok.auto_add_music_hint":"This feature is available only for photos. It will add a default music that you can change later.","posts.form.tiktok.yes":"Yes","posts.form.tiktok.no":"No","posts.form.tiktok.allow_users":"Allow users to:","posts.form.tiktok.comments":"Comment","posts.form.tiktok.duet":"Duet","posts.form.tiktok.stitch":"Stitch","posts.form.tiktok.is_aigc":"Video made with AI","posts.form.tiktok.disclose":"Disclose video content","posts.form.tiktok.disclose_hint":"Turn on to disclose that this video promotes goods or services in exchange for something of value. Your video could promote yourself, a third party, or both.","posts.form.tiktok.promotional_organic_title":"Your photo/video will be labeled as \"Promotional content\".","posts.form.tiktok.promotional_paid_title":"Your photo/video will be labeled as \"Paid partnership\".","posts.form.tiktok.promotional_description":"This cannot be changed once your video is posted.","posts.form.tiktok.compliance_incomplete":"You need to indicate if your content promotes yourself, a third party, or both.","posts.form.tiktok.branded_blocks_private":"Branded content cannot be private. Choose Public or Mutual follow friends.","posts.form.tiktok.interaction_disabled_by_creator":"Disabled by your TikTok account settings.","posts.form.tiktok.max_duration_exceeded":"Video is :duration s long but this account can only post videos up to :max s.","posts.form.tiktok.creator_info_loading":"Loading your TikTok account settings…","posts.form.tiktok.processing_hint":"After publishing, it may take a few minutes for the content to process and appear on your TikTok profile.","posts.form.tiktok.brand_organic":"Your brand","posts.form.tiktok.brand_organic_hint":"You are promoting yourself or your own brand. This video will be classified as Brand Organic.","posts.form.tiktok.brand_content":"Branded content","posts.form.tiktok.brand_content_hint":"You are promoting another brand or a third party. This video will be classified as Branded Content.","posts.form.tiktok.compliance.agree":"By posting, you agree to TikTok's","posts.form.tiktok.compliance.music_usage":"Music Usage Confirmation","posts.form.tiktok.compliance.and":"and","posts.form.tiktok.compliance.branded_policy":"Branded Content Policy","posts.form.instagram.settings":"Instagram Settings","posts.form.instagram.posting_to":"Posting to","posts.form.instagram.variant_label":"Post type","posts.form.instagram.variant.feed":"Feed Post","posts.form.instagram.variant.reel":"Reel","posts.form.instagram.variant.story":"Story","posts.form.instagram.aspect_label":"Aspect ratio","posts.form.instagram.aspect.square":"Square (1:1)","posts.form.instagram.aspect.portrait":"Portrait (4:5)","posts.form.instagram.aspect.landscape":"Landscape (16:9)","posts.form.instagram.aspect.original":"Original","posts.form.facebook.settings":"Facebook Settings","posts.form.facebook.posting_to":"Posting to","posts.form.facebook.variant_label":"Post type","posts.form.facebook.variant.post":"Post","posts.form.facebook.variant.reel":"Reel","posts.form.facebook.variant.story":"Story","posts.form.linkedin.settings":"LinkedIn Settings","posts.form.linkedin.settings_page":"LinkedIn Page Settings","posts.form.linkedin.posting_to":"Posting to","posts.form.linkedin.variant_label":"Post type","posts.form.linkedin.variant.post":"Post","posts.form.linkedin.variant.carousel":"Carousel","posts.form.pinterest.settings":"Pinterest Settings","posts.form.pinterest.posting_to":"Posting to","posts.form.pinterest.variant_label":"Pin type","posts.form.pinterest.variant.pin":"Pin","posts.form.pinterest.variant.video_pin":"Video Pin","posts.form.pinterest.variant.carousel":"Carousel","posts.form.warnings.no_variant":"Pick a post type to continue.","posts.form.warnings.requires_media":"This post type requires at least one image or video.","posts.form.warnings.max_files_exceeded":"This post type accepts up to :max media files (you have :current).","posts.form.warnings.min_files_required":"This post type requires at least :min media files (you have :current).","posts.form.warnings.no_video_allowed":"This post type does not accept videos.","posts.form.warnings.no_image_allowed":"This post type accepts only videos.","posts.form.warnings.gif_not_allowed":"This platform does not accept GIF. Remove the GIF or choose a different network.","posts.form.warnings.image_too_large":"Image exceeds the :max limit for this post type (yours is :current).","posts.form.warnings.video_too_large":"Video exceeds the :max limit for this post type (yours is :current).","posts.form.warnings.video_too_long":"Video is :current long, but this post type allows up to :max.","posts.form.warnings.aspect_ratio_too_narrow":"Aspect ratio :current is too tall for this post type (min :min).","posts.form.warnings.aspect_ratio_too_wide":"Aspect ratio :current is too wide for this post type (max :max).","posts.status.pending":"Pending","posts.status.draft":"Draft","posts.status.scheduled":"Scheduled","posts.status.publishing":"Publishing","posts.status.published":"Published","posts.status.partially_published":"Partially Published","posts.status.failed":"Failed","posts.descriptions.draft":"Posts waiting to be scheduled","posts.descriptions.scheduled":"Posts scheduled for publishing","posts.descriptions.published":"Posts already published","posts.show.title":"Post Details","posts.show.edit":"Edit","posts.show.no_content":"No caption","posts.show.platforms":"Platforms","posts.show.no_platforms":"No platforms selected.","posts.show.view_on_platform":"View on platform","posts.show.published_on":"Published on :date","posts.show.scheduled_for":"Scheduled for :date","posts.show.draft":"Draft","posts.show.status_pending":"Pending","posts.show.metrics":"Metrics","posts.show.metrics_loading":"Loading metrics…","posts.show.metrics_unavailable":"Metrics unavailable for this platform yet.","posts.show.metrics_empty":"No metrics returned.","posts.show.summary.platforms":"Platforms","posts.show.summary.published":"Published","posts.show.summary.failed":"Failed","posts.edit.title":"Edit Post","posts.edit.view_title":"View Post","posts.edit.labels":"Labels","posts.edit.no_labels":"No labels created yet","posts.edit.schedule":"Schedule","posts.edit.pick_time":"Pick time","posts.edit.post_now":"Post now","posts.edit.time":"Time","posts.edit.cancel":"Cancel","posts.edit.delete":"Delete","posts.edit.schedule_for":"Schedule for","posts.edit.scheduled_for":"Scheduled for","posts.edit.schedule_date":"Schedule date","posts.edit.saving":"Saving...","posts.edit.saved":"Saved","posts.edit.draft":"Draft","posts.edit.media":"Media","posts.edit.add_media":"Add media","posts.edit.caption":"Caption","posts.edit.caption_placeholder":"Write your caption...","posts.edit.compose_title":"Create a post","posts.edit.compose_subtitle":"Compose your message and add media","posts.edit.preview_empty.title":"No platform selected","posts.edit.preview_empty.description":"Select a platform to publish to see the preview.","posts.edit.drag_drop":"Drop files to upload","posts.edit.drag_drop_hint":"Drag & drop files here, or use the buttons above","posts.edit.drop_zone_title":"Add media","posts.edit.drop_zone_subtitle":"Drag & drop files or click to browse","posts.edit.add":"Add","posts.edit.publish_to":"Publish to","posts.edit.organize":"Organize","posts.edit.hashtags":"Hashtags","posts.edit.view_on_platform":"View on platform","posts.edit.platform_status":"Platform status","posts.edit.compliance_incomplete":"Some platform settings are incomplete or incompatible with the attached media.","posts.edit.compliance.requires_media":"Add an image or video to publish here.","posts.edit.compliance.too_many_files":"Only :max file(s) allowed for this format.","posts.edit.compliance.too_few_files":"Add at least :min files for this format.","posts.edit.compliance.no_videos":"Only images are allowed for this format.","posts.edit.compliance.no_images":"Only videos are allowed for this format.","posts.edit.compliance.no_gifs":"GIFs are not supported here.","posts.edit.compliance.video_too_large":"Video exceeds the size limit for this platform.","posts.edit.compliance.video_too_long":"Video must be under :seconds seconds for this format.","posts.edit.compliance.image_too_large":"Image exceeds the size limit for this platform.","posts.edit.compliance.aspect_ratio_invalid":"Aspect ratio is not supported by this format.","posts.edit.compliance.no_content_type":"Pick a content type for this platform.","posts.edit.publishing":"Publishing...","posts.edit.publishing_overlay_title":"Your post is being published","posts.edit.publishing_overlay_subtitle":"This can take a few moments. You can safely leave this page.","posts.edit.tabs.preview":"Preview","posts.edit.tabs.schedule":"Schedule","posts.edit.tabs.comments":"Comments","posts.edit.tabs.comments_empty":"No comments yet.","posts.edit.tabs.writing_assistant":"AI Assistant","posts.edit.tabs.writing_assistant_empty":"AI writing assistant coming soon.","posts.edit.media_picker.title":"Pick from gallery","posts.edit.media_picker.search":"Search media...","posts.edit.media_picker.empty":"No media in your gallery yet","posts.edit.media_picker.cancel":"Cancel","posts.edit.media_picker.add":"Add","posts.edit.media_picker.add_count":"Add :count","posts.edit.emoji_picker.search":"Search emoji","posts.edit.emoji_picker.empty":"No emojis found","posts.edit.emoji_picker.recent":"Frequently used","posts.edit.emoji_picker.smileys":"Smileys & emotion","posts.edit.emoji_picker.people":"People & body","posts.edit.emoji_picker.nature":"Animals & nature","posts.edit.emoji_picker.food":"Food & drink","posts.edit.emoji_picker.activities":"Activities","posts.edit.emoji_picker.travel":"Travel & places","posts.edit.emoji_picker.objects":"Objects","posts.edit.emoji_picker.symbols":"Symbols","posts.edit.emoji_picker.flags":"Flags","posts.edit.status.published":"Published","posts.edit.status.publishing":"Publishing...","posts.edit.status.failed":"Failed","posts.edit.delete_modal.title":"Delete Post","posts.edit.delete_modal.description":"Are you sure you want to delete this post? This action cannot be undone.","posts.edit.delete_modal.action":"Delete","posts.edit.delete_modal.cancel":"Cancel","posts.edit.sync_enable.title":"Enable sync?","posts.edit.sync_enable.description":"All platforms will share the same content. Any custom edits made to individual platforms will be replaced with the current content.","posts.edit.sync_enable.cancel":"Cancel","posts.edit.sync_enable.action":"Enable sync","posts.edit.sync_disable.title":"Disable sync?","posts.edit.sync_disable.description":"Each platform will keep its current content, but future edits will only apply to the platform you're editing.","posts.edit.sync_disable.customize_note":"You'll be able to customize the content for each platform individually.","posts.edit.sync_disable.cancel":"Cancel","posts.edit.sync_disable.action":"Disable sync","posts.edit.platforms_dialog.title":"Select Platforms","posts.edit.platforms_dialog.description":"Choose which platforms to publish this post to.","posts.edit.hashtags_modal.search":"Search hashtags...","posts.edit.hashtags_modal.no_results":"No hashtags found.","posts.edit.validation.select_board":"Select a board","posts.edit.validation.images_not_supported":"Images not supported","posts.edit.validation.videos_not_supported":"Videos not supported","posts.edit.validation.max_images":"Max :count images","posts.edit.validation.requires_media":"Requires media","posts.edit.validation.requires_content":"Text content is required","posts.edit.validation.exceeded":":count exceeded","posts.edit.validation.does_not_support_images":":platform does not support images","posts.edit.validation.supports_up_to_images":":platform supports up to :count images","posts.edit.validation.does_not_support_videos":":platform does not support videos","posts.content_types.instagram_feed.label":"Feed Post","posts.content_types.instagram_feed.description":"Appears in your feed and profile","posts.content_types.instagram_reel.label":"Reel","posts.content_types.instagram_reel.description":"Short video up to 90 seconds","posts.content_types.instagram_story.label":"Story","posts.content_types.instagram_story.description":"Disappears after 24 hours","posts.content_types.linkedin_post.label":"Post","posts.content_types.linkedin_post.description":"Standard post with text and media","posts.content_types.linkedin_carousel.label":"Carousel","posts.content_types.linkedin_carousel.description":"Swipeable images","posts.content_types.linkedin_page_post.label":"Post","posts.content_types.linkedin_page_post.description":"Standard post with text and media","posts.content_types.linkedin_page_carousel.label":"Carousel","posts.content_types.linkedin_page_carousel.description":"Swipeable images","posts.content_types.facebook_post.label":"Post","posts.content_types.facebook_post.description":"Standard post on your page","posts.content_types.facebook_reel.label":"Reel","posts.content_types.facebook_reel.description":"Short video up to 90 seconds","posts.content_types.facebook_story.label":"Story","posts.content_types.facebook_story.description":"Disappears after 24 hours","posts.content_types.tiktok_video.label":"Video","posts.content_types.tiktok_video.description":"Short-form video content","posts.content_types.youtube_short.label":"Short","posts.content_types.youtube_short.description":"Vertical video up to 60 seconds","posts.content_types.x_post.label":"Post","posts.content_types.x_post.description":"Tweet with text and media","posts.content_types.threads_post.label":"Post","posts.content_types.threads_post.description":"Text post with optional media","posts.content_types.pinterest_pin.label":"Pin","posts.content_types.pinterest_pin.description":"Image pin with link","posts.content_types.pinterest_video_pin.label":"Video Pin","posts.content_types.pinterest_video_pin.description":"Video content","posts.content_types.pinterest_carousel.label":"Carousel","posts.content_types.pinterest_carousel.description":"2-5 images","posts.content_types.bluesky_post.label":"Post","posts.content_types.bluesky_post.description":"Text post with optional images","posts.content_types.mastodon_post.label":"Post","posts.content_types.mastodon_post.description":"Text post with optional media","posts.platforms.linkedin":"LinkedIn","posts.platforms.linkedin-page":"LinkedIn Page","posts.platforms.x":"X","posts.platforms.tiktok":"TikTok","posts.platforms.youtube":"YouTube Shorts","posts.platforms.facebook":"Facebook Page","posts.platforms.instagram":"Instagram","posts.platforms.threads":"Threads","posts.platforms.pinterest":"Pinterest","posts.platforms.bluesky":"Bluesky","posts.platforms.mastodon":"Mastodon","posts.flash.scheduled":"Post scheduled successfully!","posts.flash.publishing":"Post is being published! It may take a few minutes to process and appear on each platform.","posts.flash.deleted":"Post deleted successfully!","posts.flash.cannot_edit_published":"Published posts cannot be edited.","posts.flash.cannot_delete_published":"Published posts cannot be deleted.","posts.flash.connect_first":"Connect at least one social network before creating a post.","posts.errors.account_disconnected":"Social account is disconnected","posts.errors.account_inactive":"Social account is deactivated","settings.title":"Settings","settings.description":"Manage your profile and account settings","settings.nav.profile":"Profile","settings.nav.password":"Password","settings.nav.workspace":"Workspace","settings.nav.members":"Members","settings.nav.notifications":"Notifications","settings.nav.billing":"Billing","settings.notifications.title":"Notification preferences","settings.notifications.heading":"Email notifications","settings.notifications.description":"Choose which email notifications you want to receive","settings.notifications.post_published":"Post published","settings.notifications.post_published_description":"Receive an email when your post is published successfully","settings.notifications.post_failed":"Post failed","settings.notifications.post_failed_description":"Receive an email when your post fails to publish","settings.notifications.account_disconnected":"Account disconnected","settings.notifications.account_disconnected_description":"Receive an email when a social account is disconnected","settings.notifications.save":"Save preferences","settings.profile.title":"Profile settings","settings.profile.photo_heading":"Profile photo","settings.profile.photo_description":"Upload a profile photo","settings.profile.heading":"Profile information","settings.profile.description":"Update your name and email address","settings.profile.avatar":"Avatar","settings.profile.name":"Name","settings.profile.name_placeholder":"Full name","settings.profile.email":"Email address","settings.profile.email_placeholder":"Email address","settings.profile.email_unverified":"Your email address is unverified.","settings.profile.resend_verification":"Click here to resend the verification email.","settings.profile.verification_sent":"A new verification link has been sent to your email address.","settings.profile.save":"Save","settings.password.title":"Password settings","settings.password.heading":"Update password","settings.password.description":"Ensure your account is using a long, random password to stay secure","settings.password.current_password":"Current password","settings.password.current_password_placeholder":"Current password","settings.password.new_password":"New password","settings.password.new_password_placeholder":"New password","settings.password.confirm_password":"Confirm password","settings.password.confirm_password_placeholder":"Confirm password","settings.password.save":"Save password","settings.delete_account.heading":"Delete account","settings.delete_account.description":"Delete your account and all of its resources","settings.delete_account.warning":"Warning","settings.delete_account.warning_message":"Please proceed with caution, this cannot be undone.","settings.delete_account.button":"Delete account","settings.delete_account.modal_title":"Are you sure you want to delete your account?","settings.delete_account.modal_description":"Once your account is deleted, all of its resources and data will also be permanently deleted. Please enter your password to confirm you would like to permanently delete your account.","settings.delete_account.password":"Password","settings.delete_account.password_placeholder":"Password","settings.delete_account.cancel":"Cancel","settings.delete_account.confirm":"Delete account","settings.workspace.tabs.workspace":"Workspace","settings.workspace.tabs.brand":"Brand","settings.workspace.tabs.users":"Members","settings.workspace.tabs.api_keys":"API Keys","settings.workspace.title":"Workspace settings","settings.workspace.logo_heading":"Workspace logo","settings.workspace.logo_description":"Upload a logo for your workspace","settings.workspace.heading":"Workspace name","settings.workspace.description":"Update your workspace name","settings.workspace.members_heading":"Members","settings.workspace.members_description":"Manage workspace members and invitations","settings.workspace.name":"Name","settings.workspace.name_placeholder":"My Workspace","settings.workspace.save":"Save","settings.brand.title":"Brand","settings.brand.description":"Configure your brand identity for AI-generated content.","settings.brand.website":"Website","settings.brand.website_placeholder":"https://yourbrand.com","settings.brand.brand_description":"Description","settings.brand.brand_description_placeholder":"Tell us about your brand, what you do, and who your audience is...","settings.brand.tone":"Tone of voice","settings.brand.tone_professional":"Professional","settings.brand.tone_casual":"Casual","settings.brand.tone_friendly":"Friendly","settings.brand.tone_bold":"Bold","settings.brand.tone_inspirational":"Inspirational","settings.brand.tone_humorous":"Humorous","settings.brand.tone_educational":"Educational","settings.brand.voice_notes":"Voice notes","settings.brand.voice_notes_placeholder":"Additional writing guidelines, words to avoid, style preferences...","settings.brand.brand_color":"Brand color","settings.brand.background_color":"Background color","settings.brand.text_color":"Text color","settings.brand.content_language":"Content language","settings.brand.content_language_description":"Language used for AI-generated captions, hashtags, and any text inside generated images or videos.","settings.members.title":"Members","settings.members.heading":"Team members","settings.members.description":"Manage members and invites for this workspace","settings.members.cancel":"Cancel","settings.members.remove":"Remove","settings.members.make_admin":"Make admin","settings.members.make_member":"Make member","settings.members.invite.title":"Invite Member","settings.members.invite.description":"Send an email invite to add collaborators","settings.members.invite.email":"Email","settings.members.invite.email_placeholder":"[email protected]","settings.members.invite.role":"Role","settings.members.invite.role_placeholder":"Select a role","settings.members.invite.submit":"Send Invite","settings.members.pending.title":"Pending Invites","settings.members.pending.description":"Invites awaiting acceptance","settings.members.pending.empty":"No pending invites","settings.members.list.title":"Members","settings.members.list.description":"People with access to this workspace","settings.members.list.empty":"No members besides the owner","settings.members.remove_modal.title":"Remove member","settings.members.remove_modal.description":"Are you sure you want to remove this member from the workspace? They will lose access to all workspace resources.","settings.members.remove_modal.action":"Remove member","settings.members.cancel_invite_modal.title":"Cancel invitation","settings.members.cancel_invite_modal.description":"Are you sure you want to cancel this invitation?","settings.members.cancel_invite_modal.action":"Cancel invitation","settings.members.roles.owner":"Owner","settings.members.roles.admin":"Admin","settings.members.roles.member":"Member","settings.members.roles.viewer":"Viewer","settings.members.flash.invite_sent":"Invite sent successfully!","settings.members.flash.invite_deleted":"Invite deleted.","settings.members.flash.member_removed":"Member removed successfully.","settings.members.flash.role_updated":"Member role updated.","settings.members.flash.wrong_email":"This invite is for a different email address.","settings.members.flash.already_member":"You are already a member of this workspace.","settings.members.flash.invite_accepted":"Welcome! You are now a member of the workspace.","settings.members.flash.invite_declined":"Invite declined.","settings.account.title":"Account Settings","settings.account.description":"Manage your account name and billing email","settings.account.name":"Account Name","settings.account.name_placeholder":"My Company","settings.account.billing_email":"Billing Email","settings.account.billing_email_placeholder":"[email protected]","settings.account.billing_email_hint":"This email will be used for invoices and billing communications from Stripe.","settings.account.submit":"Save","settings.flash.account_updated":"Account updated successfully!","settings.flash.profile_updated":"Profile updated successfully!","settings.flash.language_updated":"Language updated successfully!","settings.flash.password_updated":"Password updated successfully!","settings.flash.workspace_updated":"Settings updated successfully!","settings.flash.photo_updated":"Photo updated successfully!","settings.flash.photo_deleted":"Photo removed successfully!","settings.flash.logo_updated":"Logo uploaded successfully!","settings.flash.logo_deleted":"Logo removed successfully!","settings.flash.notifications_updated":"Notification preferences updated!","settings.api_keys.title":"API Keys","settings.api_keys.page_title":"API Keys","settings.api_keys.heading":"API Keys","settings.api_keys.description":"Manage API keys for programmatic access to your workspace.","settings.api_keys.create":"Create API Key","settings.api_keys.copy":"Copy","settings.api_keys.new_token_message":"Your new API key has been created. Copy it now — you won't be able to see it again.","settings.api_keys.table.name":"Name","settings.api_keys.table.key":"Key","settings.api_keys.table.status":"Status","settings.api_keys.table.expires":"Expires","settings.api_keys.table.last_used":"Last Used","settings.api_keys.table.never":"Never","settings.api_keys.actions.copy_id":"Copy API Key ID","settings.api_keys.actions.copy_id_success":"API Key ID copied to clipboard","settings.api_keys.actions.delete":"Delete","settings.api_keys.empty.title":"No API keys yet","settings.api_keys.empty.description":"Create an API key to access your workspace programmatically.","settings.api_keys.delete_modal.title":"Delete API key","settings.api_keys.delete_modal.description":"Are you sure you want to delete this API key? Any applications using this key will lose access immediately.","settings.api_keys.delete_modal.action":"Delete API key","settings.api_keys.create_dialog.title":"Create API Key","settings.api_keys.create_dialog.description":"Create a new API key for programmatic access to your workspace.","settings.api_keys.create_dialog.name":"Name","settings.api_keys.create_dialog.name_placeholder":"e.g. Production API Key","settings.api_keys.create_dialog.expires":"Expiration date (optional)","settings.api_keys.create_dialog.expires_placeholder":"No expiration","settings.api_keys.create_dialog.submit":"Create","settings.api_keys.create_dialog.cancel":"Cancel","settings.api_keys.flash.created":"API key created successfully!","settings.api_keys.flash.deleted":"API key deleted successfully!","sidebar.workspaces":"Workspaces","sidebar.select_workspace":"Select workspace","sidebar.create_workspace":"Create workspace","sidebar.create_post":"Create post","sidebar.profile":"Profile","sidebar.log_out":"Log out","sidebar.workspace.connections":"Connections","sidebar.workspace.hashtags":"Hashtags","sidebar.workspace.labels":"Labels","sidebar.workspace.assets":"Assets","sidebar.workspace.api_keys":"API Keys","sidebar.workspace.settings":"Settings","sidebar.workspace_select":"Workspace: Select","sidebar.theme":"Theme: :name","sidebar.theme_light":"Light","sidebar.theme_dark":"Dark","sidebar.theme_system":"System","sidebar.language":"Language: :name","sidebar.language_select":"Language: Select","sidebar.groups.posts":"Posts","sidebar.groups.workspace":"Workspace","sidebar.groups.account":"Account","sidebar.groups.support":"Support","sidebar.analytics":"Analytics","sidebar.posts.calendar":"Calendar","sidebar.posts.all":"All","sidebar.posts.scheduled":"Scheduled","sidebar.posts.posted":"Posted","sidebar.posts.drafts":"Drafts","sidebar.account.settings":"Settings","sidebar.account.usage":"Usage","sidebar.account.billing":"Billing","sidebar.notifications":"Notifications","sidebar.mark_all_read":"Mark all as read","sidebar.mark_as_read":"Mark as read","sidebar.archive_all":"Archive all","sidebar.no_notifications":"No notifications","sidebar.support.discord":"Discord","sidebar.support.share_feedback":"Share feedback","sidebar.support.last_updates":"Last Updates","sidebar.support.docs":"Documentation","usage.title":"Usage","usage.section_account":"Account","usage.section_account_description":"Quotas and limits for your :plan plan.","usage.section_ai":"AI Generation","usage.section_ai_description":"AI image and video generation usage for the current month.","usage.section_data":"Data","usage.section_data_description":"Data retention and storage for your plan.","usage.workspaces":"Workspaces","usage.social_accounts":"Social Accounts","usage.members":"Members","usage.ai_images":"Images","usage.ai_videos":"Videos","usage.data_retention":"Data Retention","usage.unlimited":"Unlimited","usage.days":"days","usage.year":"year","usage.years":"years","workspaces.title":"Workspaces","workspaces.select_title":"Your workspaces","workspaces.select_description":"Select a workspace to continue","workspaces.current":"Current","workspaces.connections":":count connections","workspaces.posts":":count posts","workspaces.create.page_title":"Create your workspace","workspaces.create.title":"Set up your workspace","workspaces.create.description":"Tell us about your brand. We'll use this to tailor AI-generated posts to your voice.","workspaces.create.website":"Website","workspaces.create.website_placeholder":"https://yourbrand.com","workspaces.create.autofill":"Autofill from website","workspaces.create.autofill_missing_url":"Enter a URL first.","workspaces.create.autofill_success":"Brand info loaded.","workspaces.create.autofill_error":"Could not autofill. You can fill the fields manually.","workspaces.create.autofill_errors.unreachable":"We could not reach that website (:reason).","workspaces.create.autofill_errors.http_status":"The website returned an unexpected status (:status).","workspaces.create.autofill_errors.invalid_scheme":"Only http and https URLs are supported.","workspaces.create.autofill_errors.missing_host":"The URL is missing a host.","workspaces.create.autofill_errors.unresolvable_host":"We could not resolve the host (:host).","workspaces.create.autofill_errors.private_network":"URLs pointing to private networks are not allowed.","workspaces.create.logo_captured":"Logo captured from your website.","workspaces.create.name":"Workspace name","workspaces.create.name_placeholder":"e.g. Acme Inc","workspaces.create.brand_description":"Brand description","workspaces.create.brand_description_placeholder":"What does your brand do?","workspaces.create.tone":"Brand tone","workspaces.create.tone_professional":"Professional","workspaces.create.tone_casual":"Casual","workspaces.create.tone_friendly":"Friendly","workspaces.create.tone_bold":"Bold","workspaces.create.tone_inspirational":"Inspirational","workspaces.create.tone_humorous":"Humorous","workspaces.create.tone_educational":"Educational","workspaces.create.content_language":"Content language","workspaces.create.content_language_description":"AI-generated captions will be written in this language.","workspaces.create.voice_notes":"Voice notes (optional)","workspaces.create.voice_notes_placeholder":"e.g. short, punchy sentences. avoid jargon.","workspaces.create.brand_color":"Brand color","workspaces.create.background_color":"Background color","workspaces.create.text_color":"Text color","workspaces.create.submit":"Create workspace","workspaces.create.first_workspace_success":"Workspace created. Connect a social account to start posting.","workspaces.create.success":"Workspace created."}\ No newline at end of file+{"auth.failed":"These credentials do not match our records.","auth.password":"The provided password is incorrect.","auth.throttle":"Too many login attempts. Please try again in :seconds seconds.","pagination.previous":"« Previous","pagination.next":"Next »","passwords.reset":"Your password has been reset.","passwords.sent":"We have emailed your password reset link.","passwords.throttled":"Please wait before retrying.","passwords.token":"This password reset token is invalid.","passwords.user":"We can't find a user with that email address.","validation.accepted":"The :attribute field must be accepted.","validation.accepted_if":"The :attribute field must be accepted when :other is :value.","validation.active_url":"The :attribute field must be a valid URL.","validation.after":"The :attribute field must be a date after :date.","validation.after_or_equal":"The :attribute field must be a date after or equal to :date.","validation.alpha":"The :attribute field must only contain letters.","validation.alpha_dash":"The :attribute field must only contain letters, numbers, dashes, and underscores.","validation.alpha_num":"The :attribute field must only contain letters and numbers.","validation.any_of":"The :attribute field is invalid.","validation.array":"The :attribute field must be an array.","validation.ascii":"The :attribute field must only contain single-byte alphanumeric characters and symbols.","validation.before":"The :attribute field must be a date before :date.","validation.before_or_equal":"The :attribute field must be a date before or equal to :date.","validation.between.array":"The :attribute field must have between :min and :max items.","validation.between.file":"The :attribute field must be between :min and :max kilobytes.","validation.between.numeric":"The :attribute field must be between :min and :max.","validation.between.string":"The :attribute field must be between :min and :max characters.","validation.boolean":"The :attribute field must be true or false.","validation.can":"The :attribute field contains an unauthorized value.","validation.confirmed":"The :attribute field confirmation does not match.","validation.contains":"The :attribute field is missing a required value.","validation.current_password":"The password is incorrect.","validation.date":"The :attribute field must be a valid date.","validation.date_equals":"The :attribute field must be a date equal to :date.","validation.date_format":"The :attribute field must match the format :format.","validation.decimal":"The :attribute field must have :decimal decimal places.","validation.declined":"The :attribute field must be declined.","validation.declined_if":"The :attribute field must be declined when :other is :value.","validation.different":"The :attribute field and :other must be different.","validation.digits":"The :attribute field must be :digits digits.","validation.digits_between":"The :attribute field must be between :min and :max digits.","validation.dimensions":"The :attribute field has invalid image dimensions.","validation.distinct":"The :attribute field has a duplicate value.","validation.doesnt_contain":"The :attribute field must not contain any of the following: :values.","validation.doesnt_end_with":"The :attribute field must not end with one of the following: :values.","validation.doesnt_start_with":"The :attribute field must not start with one of the following: :values.","validation.email":"The :attribute field must be a valid email address.","validation.encoding":"The :attribute field must be encoded in :encoding.","validation.ends_with":"The :attribute field must end with one of the following: :values.","validation.enum":"The selected :attribute is invalid.","validation.exists":"The selected :attribute is invalid.","validation.extensions":"The :attribute field must have one of the following extensions: :values.","validation.file":"The :attribute field must be a file.","validation.filled":"The :attribute field must have a value.","validation.gt.array":"The :attribute field must have more than :value items.","validation.gt.file":"The :attribute field must be greater than :value kilobytes.","validation.gt.numeric":"The :attribute field must be greater than :value.","validation.gt.string":"The :attribute field must be greater than :value characters.","validation.gte.array":"The :attribute field must have :value items or more.","validation.gte.file":"The :attribute field must be greater than or equal to :value kilobytes.","validation.gte.numeric":"The :attribute field must be greater than or equal to :value.","validation.gte.string":"The :attribute field must be greater than or equal to :value characters.","validation.hex_color":"The :attribute field must be a valid hexadecimal color.","validation.image":"The :attribute field must be an image.","validation.in":"The selected :attribute is invalid.","validation.in_array":"The :attribute field must exist in :other.","validation.in_array_keys":"The :attribute field must contain at least one of the following keys: :values.","validation.integer":"The :attribute field must be an integer.","validation.ip":"The :attribute field must be a valid IP address.","validation.ipv4":"The :attribute field must be a valid IPv4 address.","validation.ipv6":"The :attribute field must be a valid IPv6 address.","validation.json":"The :attribute field must be a valid JSON string.","validation.list":"The :attribute field must be a list.","validation.lowercase":"The :attribute field must be lowercase.","validation.lt.array":"The :attribute field must have less than :value items.","validation.lt.file":"The :attribute field must be less than :value kilobytes.","validation.lt.numeric":"The :attribute field must be less than :value.","validation.lt.string":"The :attribute field must be less than :value characters.","validation.lte.array":"The :attribute field must not have more than :value items.","validation.lte.file":"The :attribute field must be less than or equal to :value kilobytes.","validation.lte.numeric":"The :attribute field must be less than or equal to :value.","validation.lte.string":"The :attribute field must be less than or equal to :value characters.","validation.mac_address":"The :attribute field must be a valid MAC address.","validation.max.array":"The :attribute field must not have more than :max items.","validation.max.file":"The :attribute field must not be greater than :max kilobytes.","validation.max.numeric":"The :attribute field must not be greater than :max.","validation.max.string":"The :attribute field must not be greater than :max characters.","validation.max_digits":"The :attribute field must not have more than :max digits.","validation.mimes":"The :attribute field must be a file of type: :values.","validation.mimetypes":"The :attribute field must be a file of type: :values.","validation.min.array":"The :attribute field must have at least :min items.","validation.min.file":"The :attribute field must be at least :min kilobytes.","validation.min.numeric":"The :attribute field must be at least :min.","validation.min.string":"The :attribute field must be at least :min characters.","validation.min_digits":"The :attribute field must have at least :min digits.","validation.missing":"The :attribute field must be missing.","validation.missing_if":"The :attribute field must be missing when :other is :value.","validation.missing_unless":"The :attribute field must be missing unless :other is :value.","validation.missing_with":"The :attribute field must be missing when :values is present.","validation.missing_with_all":"The :attribute field must be missing when :values are present.","validation.multiple_of":"The :attribute field must be a multiple of :value.","validation.not_in":"The selected :attribute is invalid.","validation.not_regex":"The :attribute field format is invalid.","validation.numeric":"The :attribute field must be a number.","validation.password.letters":"The :attribute field must contain at least one letter.","validation.password.mixed":"The :attribute field must contain at least one uppercase and one lowercase letter.","validation.password.numbers":"The :attribute field must contain at least one number.","validation.password.symbols":"The :attribute field must contain at least one symbol.","validation.password.uncompromised":"The given :attribute has appeared in a data leak. Please choose a different :attribute.","validation.present":"The :attribute field must be present.","validation.present_if":"The :attribute field must be present when :other is :value.","validation.present_unless":"The :attribute field must be present unless :other is :value.","validation.present_with":"The :attribute field must be present when :values is present.","validation.present_with_all":"The :attribute field must be present when :values are present.","validation.prohibited":"The :attribute field is prohibited.","validation.prohibited_if":"The :attribute field is prohibited when :other is :value.","validation.prohibited_if_accepted":"The :attribute field is prohibited when :other is accepted.","validation.prohibited_if_declined":"The :attribute field is prohibited when :other is declined.","validation.prohibited_unless":"The :attribute field is prohibited unless :other is in :values.","validation.prohibits":"The :attribute field prohibits :other from being present.","validation.regex":"The :attribute field format is invalid.","validation.required":"The :attribute field is required.","validation.required_array_keys":"The :attribute field must contain entries for: :values.","validation.required_if":"The :attribute field is required when :other is :value.","validation.required_if_accepted":"The :attribute field is required when :other is accepted.","validation.required_if_declined":"The :attribute field is required when :other is declined.","validation.required_unless":"The :attribute field is required unless :other is in :values.","validation.required_with":"The :attribute field is required when :values is present.","validation.required_with_all":"The :attribute field is required when :values are present.","validation.required_without":"The :attribute field is required when :values is not present.","validation.required_without_all":"The :attribute field is required when none of :values are present.","validation.same":"The :attribute field must match :other.","validation.size.array":"The :attribute field must contain :size items.","validation.size.file":"The :attribute field must be :size kilobytes.","validation.size.numeric":"The :attribute field must be :size.","validation.size.string":"The :attribute field must be :size characters.","validation.starts_with":"The :attribute field must start with one of the following: :values.","validation.string":"The :attribute field must be a string.","validation.timezone":"The :attribute field must be a valid timezone.","validation.unique":"The :attribute has already been taken.","validation.uploaded":"The :attribute failed to upload.","validation.uppercase":"The :attribute field must be uppercase.","validation.url":"The :attribute field must be a valid URL.","validation.ulid":"The :attribute field must be a valid ULID.","validation.uuid":"The :attribute field must be a valid UUID.","validation.custom.attribute-name.rule-name":"custom-message","accounts.title":"Connections","accounts.page_title":"Social Accounts","accounts.description":"Overview of all your connected social accounts","accounts.add_social":"Add Social","accounts.add_social_title":"Connect a Social Account","accounts.add_social_description":"Connect a social account to TryPost to start posting","accounts.no_accounts":"No accounts connected yet","accounts.no_accounts_description":"Connect your social networks to start scheduling and publishing posts","accounts.no_search_results":"No accounts match your search","accounts.try_different_search":"Try a different keyword or clear the search.","accounts.search":"Search accounts...","accounts.added":"Added :date","accounts.limit_reached":"You have reached your plan limit for social accounts.","accounts.not_connected":"Not connected","accounts.connect":"Connect","accounts.connection_lost":"Connection lost","accounts.reconnect_account":"Reconnect account","accounts.view_profile":"View profile","accounts.disconnect":"Disconnect","accounts.table.account":"Account","accounts.table.platform":"Platform","accounts.table.status":"Status","accounts.table.last_used":"Last used","accounts.table.added":"Added","accounts.table.active":"Active","accounts.never_used":"Never used","accounts.status.connected":"Connected","accounts.status.disconnected":"Disconnected","accounts.descriptions.linkedin":"Connect your LinkedIn personal profile","accounts.descriptions.linkedin-page":"Connect a LinkedIn company page","accounts.descriptions.x":"Connect your X (Twitter) account","accounts.descriptions.tiktok":"Connect your TikTok account","accounts.descriptions.youtube":"Connect a YouTube channel","accounts.descriptions.facebook":"Connect a Facebook page","accounts.descriptions.instagram":"Connect an Instagram professional account","accounts.descriptions.instagram-facebook":"Connect Instagram via Facebook page","accounts.descriptions.threads":"Connect your Threads account","accounts.descriptions.pinterest":"Connect your Pinterest account","accounts.descriptions.bluesky":"Connect your Bluesky account","accounts.descriptions.mastodon":"Connect your Mastodon account","accounts.disconnect_modal.title":"Disconnect Account","accounts.disconnect_modal.description":"Are you sure you want to disconnect this account? You can reconnect it at any time.","accounts.disconnect_modal.confirm":"Disconnect","accounts.disconnect_modal.cancel":"Cancel","accounts.bluesky.title":"Connect Bluesky","accounts.bluesky.description":"Enter your credentials to connect","accounts.bluesky.email":"Email","accounts.bluesky.email_placeholder":"yourhandle.bsky.social","accounts.bluesky.app_password":"App Password","accounts.bluesky.app_password_placeholder":"xxxx-xxxx-xxxx-xxxx","accounts.bluesky.app_password_hint":"Use an <strong>App Password</strong> for security. Create one at <a href=\"https://bsky.app/settings/app-passwords\" target=\"_blank\" class=\"underline\">bsky.app/settings</a>.","accounts.bluesky.submit":"Connect Bluesky","accounts.bluesky.submitting":"Connecting...","accounts.mastodon.title":"Connect Mastodon","accounts.mastodon.description":"Enter your Mastodon instance","accounts.mastodon.instance_url":"Instance URL","accounts.mastodon.instance_placeholder":"https://mastodon.social","accounts.mastodon.instance_hint":"Enter your Mastodon instance URL (e.g., mastodon.social, techhub.social)","accounts.mastodon.submit":"Continue with Mastodon","accounts.mastodon.submitting":"Connecting...","accounts.facebook.title":"Select Facebook Page","accounts.facebook.description":"Choose which page you want to connect","accounts.facebook.no_pages":"No pages found","accounts.facebook.no_pages_description":"You are not an admin of any Facebook page.","accounts.facebook.page_label":"Facebook Page","accounts.instagram_facebook.title":"Select Instagram Account","accounts.instagram_facebook.description":"Choose which Instagram account you want to connect","accounts.instagram_facebook.no_pages":"No Instagram accounts found","accounts.instagram_facebook.no_pages_description":"No Facebook Pages with linked Instagram Business accounts were found.","accounts.linkedin.title":"Select LinkedIn Page","accounts.linkedin.description":"Choose which page you want to connect","accounts.linkedin.no_pages":"No pages found","accounts.linkedin.no_pages_description":"You are not an administrator of any LinkedIn page.","accounts.linkedin.page_label":"LinkedIn Page","accounts.flash.disconnected":"Account disconnected successfully!","accounts.flash.connected":"Account connected successfully!","accounts.flash.session_expired":"Session expired. Please try again.","accounts.flash.workspace_not_found":"Workspace not found.","accounts.flash.activated":"Account activated!","accounts.flash.deactivated":"Account deactivated!","accounts.flash.already_connected":"This platform is already connected.","accounts.flash.no_youtube_channels":"No YouTube channels found. Please create a channel first.","analytics.channels":"Channels","analytics.no_accounts":"No connected accounts with analytics.","analytics.select_account":"Select an account to view analytics.","analytics.no_data":"No analytics data available.","assets.title":"Assets","assets.tabs.my_uploads":"My Uploads","assets.tabs.stock_photos":"Stock Photos","assets.tabs.gifs":"GIFs","assets.upload.drag_drop":"Drag & drop your files here, or click to select","assets.upload.formats":"JPEG, PNG, GIF, WebP, MP4","assets.upload.uploading":"Uploading...","assets.empty.title":"No assets yet","assets.empty.description":"Upload images and videos to build your media library.","assets.save_to_assets":"Save to Assets","assets.saved":"Saved to your assets!","assets.create_post":"Create post","assets.add_to_post":"Add to post","assets.search_placeholder":"Search media...","assets.delete.title":"Delete asset","assets.delete.description":"Are you sure you want to delete this asset? This action cannot be undone.","assets.delete.confirm":"Delete","assets.delete.cancel":"Cancel","assets.unsplash.search_placeholder":"Search free photos...","assets.unsplash.no_results":"No photos found","assets.unsplash.no_results_description":"Try a different search term.","assets.unsplash.trending":"Trending on Unsplash","assets.unsplash.start_searching":"Search for free stock photos from Unsplash","assets.giphy.trending":"Trending on Giphy","assets.giphy.search_placeholder":"Search GIFs...","assets.giphy.no_results":"No GIFs found","assets.giphy.no_results_description":"Try a different search term.","assets.giphy.powered_by":"Powered by GIPHY","auth.flash.welcome":"Welcome to TryPost!","auth.flash.welcome_trial":"Welcome to TryPost! Your trial has started.","auth.legal":"By continuing, you agree to our <a href=\"https://trypost.it/terms\" target=\"_blank\">Terms of Service</a> and <a href=\"https://trypost.it/privacy\" target=\"_blank\">Privacy Policy</a>.","auth.slides.calendar.title":"Visual Calendar","auth.slides.calendar.description":"Plan and schedule your content with an intuitive drag-and-drop calendar across all your social accounts.","auth.slides.scheduling.title":"Smart Scheduling","auth.slides.scheduling.description":"Schedule posts across LinkedIn, X, Instagram, TikTok, YouTube, and more — all from one place.","auth.slides.media.title":"Rich Media","auth.slides.media.description":"Publish images, carousels, stories, and reels. Each platform gets the right format automatically.","auth.slides.video.title":"Video Publishing","auth.slides.video.description":"Upload videos once and publish to TikTok, YouTube Shorts, Instagram Reels, and Facebook Reels.","auth.slides.team.title":"Team Workspaces","auth.slides.team.description":"Invite your team, assign roles, and manage multiple brands from separate workspaces.","auth.slides.hashtags.title":"Hashtag Groups","auth.slides.hashtags.description":"Save hashtag collections and add them to posts with one click. Organize with labels and filters.","auth.or_continue_with":"Or continue with","auth.google_login":"Log in with Google","auth.google_signup":"Sign up with Google","auth.signup_success.page_title":"Welcome","auth.signup_success.title":"Setting up your account","auth.signup_success.description":"This usually takes just a few seconds...","auth.login.title":"Log in to your account","auth.login.description":"Enter your email and password below to log in","auth.login.page_title":"Log in","auth.login.email":"Email address","auth.login.password":"Password","auth.login.forgot_password":"Forgot password?","auth.login.remember_me":"Remember me","auth.login.submit":"Log in","auth.login.no_account":"Don't have an account?","auth.login.sign_up":"Sign up","auth.register.title":"Create an account","auth.register.description":"Enter your details below to create your account","auth.register.page_title":"Register","auth.register.name":"Name","auth.register.name_placeholder":"Full name","auth.register.email":"Email address","auth.register.password":"Password","auth.register.show_password":"Show password","auth.register.hide_password":"Hide password","auth.register.submit":"Create account","auth.register.has_account":"Already have an account?","auth.register.log_in":"Log in","auth.forgot_password.title":"Forgot password","auth.forgot_password.description":"Enter your email to receive a password reset link","auth.forgot_password.page_title":"Forgot password","auth.forgot_password.email":"Email address","auth.forgot_password.submit":"Email password reset link","auth.forgot_password.return_to":"Or, return to","auth.forgot_password.log_in":"log in","auth.reset_password.title":"Reset password","auth.reset_password.description":"Please enter your new password below","auth.reset_password.page_title":"Reset password","auth.reset_password.email":"Email","auth.reset_password.password":"Password","auth.reset_password.confirm_password":"Confirm Password","auth.reset_password.confirm_placeholder":"Confirm password","auth.reset_password.submit":"Reset password","auth.verify_email.title":"Verify email","auth.verify_email.description":"Please verify your email address by clicking on the link we just emailed to you.","auth.verify_email.page_title":"Email verification","auth.verify_email.link_sent":"A new verification link has been sent to the email address you provided during registration.","auth.verify_email.resend":"Resend verification email","auth.verify_email.log_out":"Log out","auth.accept_invite.page_title":"Accept Invite","auth.accept_invite.title":"You've been invited!","auth.accept_invite.description":"You've been invited to join the :workspace workspace.","auth.accept_invite.workspace":"Workspace","auth.accept_invite.your_role":"Your role","auth.accept_invite.email":"Email","auth.accept_invite.accept":"Accept Invite","auth.accept_invite.decline":"Decline Invite","auth.accept_invite.login_prompt":"Log in or create an account to accept this invite.","auth.accept_invite.log_in":"Log in","auth.accept_invite.create_account":"Create Account","billing.title":"Billing","billing.subscribe.page_title":"Choose your plan","billing.subscribe.title":"Choose the right plan for you","billing.subscribe.description":"Start with a :days-day free trial. No charge until your trial ends.","billing.subscribe.trial_info":":days-day free trial, then billed automatically","billing.subscribe.monthly":"Monthly","billing.subscribe.yearly":"Yearly","billing.subscribe.per_month":"mo","billing.subscribe.billed_monthly":"billed monthly","billing.subscribe.billed_yearly":"billed yearly","billing.subscribe.save_months":"2 months free","billing.subscribe.popular":"Most popular","billing.subscribe.start_trial":"Start :days-day free trial","billing.subscribe.card_required":"Credit card required to start your trial.","billing.subscribe.cancel_anytime":"Cancel anytime before your trial ends — no charge.","billing.subscribe.features.social_accounts":":count social accounts","billing.subscribe.features.workspaces":":count workspaces","billing.subscribe.features.members":":count team members","billing.subscribe.features.ai_images":":count AI images/mo","billing.subscribe.features.ai_videos":":count AI videos/mo","billing.subscribe.features.data_retention":":days data retention","billing.plan.title":"Plan","billing.plan.description":"Manage your subscription plan.","billing.plan.change":"Change plan","billing.plan.label":"Plan","billing.plan.price":"Price","billing.plan.month":"month","billing.plan.trial":"Trial","billing.plan.active":"Active","billing.plan.past_due":"Past due","billing.plan.cancelling":"Cancelling","billing.plan.trial_ends":"Trial ends","billing.subscription.title":"Subscription","billing.subscription.description":"Manage your payment method, billing details, and subscription.","billing.subscription.payment_method":"Payment method","billing.subscription.manage_label":"Subscription","billing.subscription.manage_stripe":"Manage on Stripe","billing.invoices.title":"Invoices","billing.invoices.description":"Download your past invoices.","billing.invoices.empty":"No invoices found","billing.invoices.paid":"Paid","billing.processing.page_title":"Processing...","billing.processing.title":"Processing your subscription","billing.processing.description":"Please wait while we set up your account. This will only take a moment.","billing.processing.success_title":"You're all set!","billing.processing.success_description":"Your subscription is active. Redirecting you to your workspaces...","billing.processing.cancelled_title":"Checkout cancelled","billing.processing.cancelled_description":"Your checkout was cancelled. No charges were made.","billing.processing.retry":"Try again","brands.new_brand":"New Brand","brands.no_brands_yet":"No brands yet","brands.no_brands_description":"Create brands to organize your social accounts by client or project","brands.accounts_count":":count accounts","brands.create.title":"Create Brand","brands.create.description":"Give your brand a name to group social accounts","brands.create.name":"Brand Name","brands.create.name_placeholder":"e.g. Acme Corp, Personal","brands.create.submit":"Create Brand","brands.create.submitting":"Creating...","brands.edit.title":"Edit Brand","brands.edit.description":"Update the name of this brand","brands.edit.name":"Brand Name","brands.edit.name_placeholder":"e.g. Acme Corp, Personal","brands.edit.submit":"Save Changes","brands.edit.submitting":"Saving...","brands.delete.title":"Delete Brand","brands.delete.description":"Are you sure you want to delete this brand? Social accounts will be unassigned but not deleted.","brands.delete.confirm":"Delete","brands.delete.cancel":"Cancel","brands.flash.created":"Brand created successfully!","brands.flash.updated":"Brand updated successfully!","brands.flash.deleted":"Brand deleted successfully!","calendar.title":"Calendar","calendar.today":"Today","calendar.day":"Day","calendar.week":"Week","calendar.month":"Month","calendar.new_post":"New Post","calendar.no_content":"No content","calendar.more":"+:count more","comments.placeholder":"Write a comment...","comments.reply_placeholder":"Write a reply...","comments.reply":"Reply","comments.edit":"Edit","comments.delete":"Delete","comments.edited":"edited","comments.save":"Save","comments.cancel":"Cancel","comments.send":"Send","comments.replying_to":"Replying to :name","comments.empty":"No comments yet. Start the conversation.","comments.load_more":"Load older comments","common.confirm_modal.cannot_be_undone":"This cannot be undone.","common.confirm_modal.type":"Type","common.confirm_modal.to_confirm":"to confirm.","common.confirm_modal.copy_to_clipboard":"Copy to clipboard","common.photo_upload.upload":"Upload","common.photo_upload.uploading":"Uploading...","common.photo_upload.remove":"Remove photo","common.photo_upload.hint":"Recommended: square image, max 2 MB.","common.timezone.select":"Select timezone","common.timezone.search":"Search timezone...","common.timezone.empty":"No timezone found","common.date_picker.select":"Select date","common.cancel":"Cancel","common.loading_more":"Loading more...","hashtags.title":"Hashtags","hashtags.description":"Create hashtag groups to quickly add to your posts","hashtags.search":"Search hashtags...","hashtags.new_group":"New Group","hashtags.no_groups_yet":"No hashtag groups yet","hashtags.no_groups_description":"Create hashtag groups to quickly add popular hashtags to your posts","hashtags.no_search_results":"No groups match your search","hashtags.try_different_search":"Try a different keyword or clear the search.","hashtags.create_first_group":"Create your first group","hashtags.hashtags_count":":count hashtags","hashtags.table.name":"Name","hashtags.table.tags":"Tags","hashtags.table.count":"Count","hashtags.table.created_at":"Created","hashtags.create.title":"Create Hashtag Group","hashtags.create.description":"Give your group a name and add hashtags separated by spaces or commas","hashtags.create.name":"Group Name","hashtags.create.name_placeholder":"e.g. Marketing, Travel, Food","hashtags.create.hashtags":"Hashtags","hashtags.create.hashtags_placeholder":"#marketing #socialmedia #business #growth","hashtags.create.hashtags_hint":"Enter hashtags separated by spaces or commas. Include the # symbol.","hashtags.create.submit":"Create Group","hashtags.create.submitting":"Creating...","hashtags.edit.title":"Edit Hashtag Group","hashtags.edit.description":"Update the name and hashtags for this group","hashtags.edit.name":"Group Name","hashtags.edit.name_placeholder":"e.g. Marketing, Travel, Food","hashtags.edit.hashtags":"Hashtags","hashtags.edit.hashtags_placeholder":"#marketing #socialmedia #business #growth","hashtags.edit.hashtags_hint":"Enter hashtags separated by spaces or commas. Include the # symbol.","hashtags.edit.submit":"Save Changes","hashtags.edit.submitting":"Saving...","hashtags.delete.title":"Delete Hashtag Group","hashtags.delete.description":"Are you sure you want to delete this hashtag group? This action cannot be undone.","hashtags.delete.confirm":"Delete","hashtags.delete.cancel":"Cancel","hashtags.flash.created":"Hashtag group created successfully!","hashtags.flash.updated":"Hashtag group updated successfully!","hashtags.flash.deleted":"Hashtag group deleted successfully!","labels.title":"Labels","labels.description":"Create labels to organize and categorize your posts","labels.search":"Search labels...","labels.new_label":"New Label","labels.no_labels_yet":"No labels yet","labels.no_search_results":"No labels match your search","labels.try_different_search":"Try a different keyword or clear the search.","labels.create_first_label":"Create your first label","labels.table.name":"Name","labels.table.created_at":"Created","labels.create.title":"Create Label","labels.create.description":"Give your label a name and pick a color","labels.create.name":"Name","labels.create.name_placeholder":"Enter label name...","labels.create.color":"Color","labels.create.submit":"Create Label","labels.create.submitting":"Creating...","labels.edit.title":"Edit Label","labels.edit.description":"Update the name and color for this label","labels.edit.name":"Name","labels.edit.name_placeholder":"Enter label name...","labels.edit.color":"Color","labels.edit.submit":"Save Changes","labels.edit.submitting":"Saving...","labels.delete.title":"Delete Label","labels.delete.description":"Are you sure you want to delete this label? This action cannot be undone.","labels.delete.confirm":"Delete","labels.delete.cancel":"Cancel","labels.flash.created":"Label created successfully!","labels.flash.updated":"Label updated successfully!","labels.flash.deleted":"Label deleted successfully!","mail.mentioned.subject":":name mentioned you on TryPost","mail.mentioned.title":":name mentioned you","mail.mentioned.intro":":name mentioned you in a post comment.","mail.mentioned.cta":"View comment","mail.workspace_connections_disconnected.subject":"{1} :count account needs to be reconnected in :workspace|[2,*] :count accounts need to be reconnected in :workspace","mail.workspace_connections_disconnected.title":"Accounts Need Reconnection","mail.workspace_connections_disconnected.intro":"The following social accounts in your <strong>:workspace</strong> workspace have been disconnected and need to be reconnected:","mail.workspace_connections_disconnected.reasons_title":"This may have happened because:","mail.workspace_connections_disconnected.reason_expired":"Access tokens expired","mail.workspace_connections_disconnected.reason_revoked":"You revoked access to TryPost on the platform","mail.workspace_connections_disconnected.reason_changed":"The platform changed their authentication requirements","mail.workspace_connections_disconnected.reconnect_cta":"Please reconnect these accounts to continue scheduling and publishing posts.","mail.workspace_connections_disconnected.button":"Reconnect Accounts","posts.title":"Posts","posts.search":"Search posts...","posts.all_posts":"All Posts","posts.new_post":"New Post","posts.no_posts":"No posts found","posts.no_search_results":"No posts match your search","posts.try_different_search":"Try a different keyword or clear the search.","posts.start_creating":"Start by creating your first post.","posts.table.status":"Status","posts.table.content":"Content","posts.table.platforms":"Platforms","posts.table.labels":"Labels","posts.table.scheduled_at":"Date","posts.table.actions":"","posts.manage_posts":"Manage all your posts","posts.delete_confirm":"Are you sure you want to delete this post?","posts.by":"by","posts.actions.view":"View post","posts.actions.delete":"Delete post","posts.form.post_type":"Post Type","posts.form.board":"Board","posts.form.select_board":"Select a board","posts.form.search_board":"Search board...","posts.form.no_board_found":"No board found","posts.form.media":"Media","posts.form.min":"Min","posts.form.uploading":"Uploading...","posts.form.drop_to_upload":"Drop to upload","posts.form.drag_and_drop":"Drag & drop or click to upload","posts.form.photos_and_videos":"Photos and videos","posts.form.photos_only":"Photos only","posts.form.videos_only":"Videos only","posts.form.drag_to_reorder":"Drag to reorder","posts.form.caption":"Caption","posts.form.write_caption":"Write your caption...","posts.form.tiktok.settings":"TikTok Settings","posts.form.tiktok.posting_to":"Posting to","posts.form.tiktok.privacy_level":"Who can see this video?","posts.form.tiktok.privacy_placeholder":"Select visibility","posts.form.tiktok.privacy.public":"Public to everyone","posts.form.tiktok.privacy.friends":"Mutual follow friends","posts.form.tiktok.privacy.followers":"Followers","posts.form.tiktok.privacy.private":"Only me","posts.form.tiktok.privacy_hint":"The available options depend on your TikTok account settings.","posts.form.tiktok.auto_add_music":"Auto add music","posts.form.tiktok.auto_add_music_hint":"This feature is available only for photos. It will add a default music that you can change later.","posts.form.tiktok.yes":"Yes","posts.form.tiktok.no":"No","posts.form.tiktok.allow_users":"Allow users to:","posts.form.tiktok.comments":"Comment","posts.form.tiktok.duet":"Duet","posts.form.tiktok.stitch":"Stitch","posts.form.tiktok.is_aigc":"Video made with AI","posts.form.tiktok.disclose":"Disclose video content","posts.form.tiktok.disclose_hint":"Turn on to disclose that this video promotes goods or services in exchange for something of value. Your video could promote yourself, a third party, or both.","posts.form.tiktok.promotional_organic_title":"Your photo/video will be labeled as \"Promotional content\".","posts.form.tiktok.promotional_paid_title":"Your photo/video will be labeled as \"Paid partnership\".","posts.form.tiktok.promotional_description":"This cannot be changed once your video is posted.","posts.form.tiktok.compliance_incomplete":"You need to indicate if your content promotes yourself, a third party, or both.","posts.form.tiktok.branded_blocks_private":"Branded content cannot be private. Choose Public or Mutual follow friends.","posts.form.tiktok.interaction_disabled_by_creator":"Disabled by your TikTok account settings.","posts.form.tiktok.max_duration_exceeded":"Video is :duration s long but this account can only post videos up to :max s.","posts.form.tiktok.creator_info_loading":"Loading your TikTok account settings…","posts.form.tiktok.processing_hint":"After publishing, it may take a few minutes for the content to process and appear on your TikTok profile.","posts.form.tiktok.brand_organic":"Your brand","posts.form.tiktok.brand_organic_hint":"You are promoting yourself or your own brand. This video will be classified as Brand Organic.","posts.form.tiktok.brand_content":"Branded content","posts.form.tiktok.brand_content_hint":"You are promoting another brand or a third party. This video will be classified as Branded Content.","posts.form.tiktok.compliance.agree":"By posting, you agree to TikTok's","posts.form.tiktok.compliance.music_usage":"Music Usage Confirmation","posts.form.tiktok.compliance.and":"and","posts.form.tiktok.compliance.branded_policy":"Branded Content Policy","posts.form.instagram.settings":"Instagram Settings","posts.form.instagram.posting_to":"Posting to","posts.form.instagram.variant_label":"Post type","posts.form.instagram.variant.feed":"Feed Post","posts.form.instagram.variant.reel":"Reel","posts.form.instagram.variant.story":"Story","posts.form.instagram.aspect_label":"Aspect ratio","posts.form.instagram.aspect.square":"Square (1:1)","posts.form.instagram.aspect.portrait":"Portrait (4:5)","posts.form.instagram.aspect.landscape":"Landscape (16:9)","posts.form.instagram.aspect.original":"Original","posts.form.facebook.settings":"Facebook Settings","posts.form.facebook.posting_to":"Posting to","posts.form.facebook.variant_label":"Post type","posts.form.facebook.variant.post":"Post","posts.form.facebook.variant.reel":"Reel","posts.form.facebook.variant.story":"Story","posts.form.linkedin.settings":"LinkedIn Settings","posts.form.linkedin.settings_page":"LinkedIn Page Settings","posts.form.linkedin.posting_to":"Posting to","posts.form.linkedin.variant_label":"Post type","posts.form.linkedin.variant.post":"Post","posts.form.linkedin.variant.carousel":"Carousel","posts.form.pinterest.settings":"Pinterest Settings","posts.form.pinterest.posting_to":"Posting to","posts.form.pinterest.variant_label":"Pin type","posts.form.pinterest.variant.pin":"Pin","posts.form.pinterest.variant.video_pin":"Video Pin","posts.form.pinterest.variant.carousel":"Carousel","posts.form.warnings.no_variant":"Pick a post type to continue.","posts.form.warnings.requires_media":"This post type requires at least one image or video.","posts.form.warnings.max_files_exceeded":"This post type accepts up to :max media files (you have :current).","posts.form.warnings.min_files_required":"This post type requires at least :min media files (you have :current).","posts.form.warnings.no_video_allowed":"This post type does not accept videos.","posts.form.warnings.no_image_allowed":"This post type accepts only videos.","posts.form.warnings.gif_not_allowed":"This platform does not accept GIF. Remove the GIF or choose a different network.","posts.form.warnings.image_too_large":"Image exceeds the :max limit for this post type (yours is :current).","posts.form.warnings.video_too_large":"Video exceeds the :max limit for this post type (yours is :current).","posts.form.warnings.video_too_long":"Video is :current long, but this post type allows up to :max.","posts.form.warnings.aspect_ratio_too_narrow":"Aspect ratio :current is too tall for this post type (min :min).","posts.form.warnings.aspect_ratio_too_wide":"Aspect ratio :current is too wide for this post type (max :max).","posts.status.pending":"Pending","posts.status.draft":"Draft","posts.status.scheduled":"Scheduled","posts.status.publishing":"Publishing","posts.status.published":"Published","posts.status.partially_published":"Partially Published","posts.status.failed":"Failed","posts.descriptions.draft":"Posts waiting to be scheduled","posts.descriptions.scheduled":"Posts scheduled for publishing","posts.descriptions.published":"Posts already published","posts.ai.generate.button_tooltip":"Generate with AI","posts.ai.generate.title":"Generate post with AI","posts.ai.generate.description":"Describe what the post should be about. The AI will use your brand context to write it.","posts.ai.generate.prompt_label":"What is this post about?","posts.ai.generate.prompt_placeholder":"e.g. Announce our new image-generation feature for carousels","posts.ai.generate.preview_label":"Preview","posts.ai.generate.start":"Generate","posts.ai.generate.apply":"Use this content","posts.ai.generate.retry":"Try again","posts.ai.generate.cancel":"Cancel","posts.ai.review.button_tooltip":"Review with AI","posts.ai.review.title":"Review post with AI","posts.ai.review.description":"AI scans for grammar, spelling, and clarity issues. Apply suggestions one by one.","posts.ai.review.loading":"Reviewing your text...","posts.ai.review.no_issues":"No issues found. Looks good.","posts.ai.review.original":"Original","posts.ai.review.suggestion":"Suggestion","posts.ai.review.apply":"Apply","posts.ai.review.applied":"Applied","posts.ai.review.close":"Close","posts.show.title":"Post Details","posts.show.edit":"Edit","posts.show.no_content":"No caption","posts.show.platforms":"Platforms","posts.show.no_platforms":"No platforms selected.","posts.show.view_on_platform":"View on platform","posts.show.published_on":"Published on :date","posts.show.scheduled_for":"Scheduled for :date","posts.show.draft":"Draft","posts.show.status_pending":"Pending","posts.show.metrics":"Metrics","posts.show.metrics_loading":"Loading metrics…","posts.show.metrics_unavailable":"Metrics unavailable for this platform yet.","posts.show.metrics_empty":"No metrics returned.","posts.show.summary.platforms":"Platforms","posts.show.summary.published":"Published","posts.show.summary.failed":"Failed","posts.edit.title":"Edit Post","posts.edit.view_title":"View Post","posts.edit.labels":"Labels","posts.edit.no_labels":"No labels created yet","posts.edit.schedule":"Schedule","posts.edit.pick_time":"Pick time","posts.edit.post_now":"Post now","posts.edit.time":"Time","posts.edit.cancel":"Cancel","posts.edit.delete":"Delete","posts.edit.schedule_for":"Schedule for","posts.edit.scheduled_for":"Scheduled for","posts.edit.schedule_date":"Schedule date","posts.edit.saving":"Saving...","posts.edit.saved":"Saved","posts.edit.draft":"Draft","posts.edit.media":"Media","posts.edit.add_media":"Add media","posts.edit.caption":"Caption","posts.edit.caption_placeholder":"Write your caption...","posts.edit.compose_title":"Create a post","posts.edit.compose_subtitle":"Compose your message and add media","posts.edit.preview_empty.title":"No platform selected","posts.edit.preview_empty.description":"Select a platform to publish to see the preview.","posts.edit.drag_drop":"Drop files to upload","posts.edit.drag_drop_hint":"Drag & drop files here, or use the buttons above","posts.edit.drop_zone_title":"Add media","posts.edit.drop_zone_subtitle":"Drag & drop files or click to browse","posts.edit.add":"Add","posts.edit.publish_to":"Publish to","posts.edit.organize":"Organize","posts.edit.hashtags":"Hashtags","posts.edit.view_on_platform":"View on platform","posts.edit.platform_status":"Platform status","posts.edit.compliance_incomplete":"Some platform settings are incomplete or incompatible with the attached media.","posts.edit.compliance.requires_media":"Add an image or video to publish here.","posts.edit.compliance.too_many_files":"Only :max file(s) allowed for this format.","posts.edit.compliance.too_few_files":"Add at least :min files for this format.","posts.edit.compliance.no_videos":"Only images are allowed for this format.","posts.edit.compliance.no_images":"Only videos are allowed for this format.","posts.edit.compliance.no_gifs":"GIFs are not supported here.","posts.edit.compliance.video_too_large":"Video exceeds the size limit for this platform.","posts.edit.compliance.video_too_long":"Video must be under :seconds seconds for this format.","posts.edit.compliance.image_too_large":"Image exceeds the size limit for this platform.","posts.edit.compliance.aspect_ratio_invalid":"Aspect ratio is not supported by this format.","posts.edit.compliance.no_content_type":"Pick a content type for this platform.","posts.edit.publishing":"Publishing...","posts.edit.publishing_overlay_title":"Your post is being published","posts.edit.publishing_overlay_subtitle":"This can take a few moments. You can safely leave this page.","posts.edit.tabs.preview":"Preview","posts.edit.tabs.schedule":"Schedule","posts.edit.tabs.comments":"Comments","posts.edit.tabs.comments_empty":"No comments yet.","posts.edit.media_picker.title":"Pick from gallery","posts.edit.media_picker.search":"Search media...","posts.edit.media_picker.empty":"No media in your gallery yet","posts.edit.media_picker.cancel":"Cancel","posts.edit.media_picker.add":"Add","posts.edit.media_picker.add_count":"Add :count","posts.edit.emoji_picker.search":"Search emoji","posts.edit.emoji_picker.empty":"No emojis found","posts.edit.emoji_picker.recent":"Frequently used","posts.edit.emoji_picker.smileys":"Smileys & emotion","posts.edit.emoji_picker.people":"People & body","posts.edit.emoji_picker.nature":"Animals & nature","posts.edit.emoji_picker.food":"Food & drink","posts.edit.emoji_picker.activities":"Activities","posts.edit.emoji_picker.travel":"Travel & places","posts.edit.emoji_picker.objects":"Objects","posts.edit.emoji_picker.symbols":"Symbols","posts.edit.emoji_picker.flags":"Flags","posts.edit.status.published":"Published","posts.edit.status.publishing":"Publishing...","posts.edit.status.failed":"Failed","posts.edit.delete_modal.title":"Delete Post","posts.edit.delete_modal.description":"Are you sure you want to delete this post? This action cannot be undone.","posts.edit.delete_modal.action":"Delete","posts.edit.delete_modal.cancel":"Cancel","posts.edit.sync_enable.title":"Enable sync?","posts.edit.sync_enable.description":"All platforms will share the same content. Any custom edits made to individual platforms will be replaced with the current content.","posts.edit.sync_enable.cancel":"Cancel","posts.edit.sync_enable.action":"Enable sync","posts.edit.sync_disable.title":"Disable sync?","posts.edit.sync_disable.description":"Each platform will keep its current content, but future edits will only apply to the platform you're editing.","posts.edit.sync_disable.customize_note":"You'll be able to customize the content for each platform individually.","posts.edit.sync_disable.cancel":"Cancel","posts.edit.sync_disable.action":"Disable sync","posts.edit.platforms_dialog.title":"Select Platforms","posts.edit.platforms_dialog.description":"Choose which platforms to publish this post to.","posts.edit.hashtags_modal.search":"Search hashtags...","posts.edit.hashtags_modal.no_results":"No hashtags found.","posts.edit.validation.select_board":"Select a board","posts.edit.validation.images_not_supported":"Images not supported","posts.edit.validation.videos_not_supported":"Videos not supported","posts.edit.validation.max_images":"Max :count images","posts.edit.validation.requires_media":"Requires media","posts.edit.validation.requires_content":"Text content is required","posts.edit.validation.exceeded":":count exceeded","posts.edit.validation.does_not_support_images":":platform does not support images","posts.edit.validation.supports_up_to_images":":platform supports up to :count images","posts.edit.validation.does_not_support_videos":":platform does not support videos","posts.content_types.instagram_feed.label":"Feed Post","posts.content_types.instagram_feed.description":"Appears in your feed and profile","posts.content_types.instagram_reel.label":"Reel","posts.content_types.instagram_reel.description":"Short video up to 90 seconds","posts.content_types.instagram_story.label":"Story","posts.content_types.instagram_story.description":"Disappears after 24 hours","posts.content_types.linkedin_post.label":"Post","posts.content_types.linkedin_post.description":"Standard post with text and media","posts.content_types.linkedin_carousel.label":"Carousel","posts.content_types.linkedin_carousel.description":"Swipeable images","posts.content_types.linkedin_page_post.label":"Post","posts.content_types.linkedin_page_post.description":"Standard post with text and media","posts.content_types.linkedin_page_carousel.label":"Carousel","posts.content_types.linkedin_page_carousel.description":"Swipeable images","posts.content_types.facebook_post.label":"Post","posts.content_types.facebook_post.description":"Standard post on your page","posts.content_types.facebook_reel.label":"Reel","posts.content_types.facebook_reel.description":"Short video up to 90 seconds","posts.content_types.facebook_story.label":"Story","posts.content_types.facebook_story.description":"Disappears after 24 hours","posts.content_types.tiktok_video.label":"Video","posts.content_types.tiktok_video.description":"Short-form video content","posts.content_types.youtube_short.label":"Short","posts.content_types.youtube_short.description":"Vertical video up to 60 seconds","posts.content_types.x_post.label":"Post","posts.content_types.x_post.description":"Tweet with text and media","posts.content_types.threads_post.label":"Post","posts.content_types.threads_post.description":"Text post with optional media","posts.content_types.pinterest_pin.label":"Pin","posts.content_types.pinterest_pin.description":"Image pin with link","posts.content_types.pinterest_video_pin.label":"Video Pin","posts.content_types.pinterest_video_pin.description":"Video content","posts.content_types.pinterest_carousel.label":"Carousel","posts.content_types.pinterest_carousel.description":"2-5 images","posts.content_types.bluesky_post.label":"Post","posts.content_types.bluesky_post.description":"Text post with optional images","posts.content_types.mastodon_post.label":"Post","posts.content_types.mastodon_post.description":"Text post with optional media","posts.platforms.linkedin":"LinkedIn","posts.platforms.linkedin-page":"LinkedIn Page","posts.platforms.x":"X","posts.platforms.tiktok":"TikTok","posts.platforms.youtube":"YouTube Shorts","posts.platforms.facebook":"Facebook Page","posts.platforms.instagram":"Instagram","posts.platforms.threads":"Threads","posts.platforms.pinterest":"Pinterest","posts.platforms.bluesky":"Bluesky","posts.platforms.mastodon":"Mastodon","posts.flash.scheduled":"Post scheduled successfully!","posts.flash.publishing":"Post is being published! It may take a few minutes to process and appear on each platform.","posts.flash.deleted":"Post deleted successfully!","posts.flash.cannot_edit_published":"Published posts cannot be edited.","posts.flash.cannot_delete_published":"Published posts cannot be deleted.","posts.flash.connect_first":"Connect at least one social network before creating a post.","posts.errors.account_disconnected":"Social account is disconnected","posts.errors.account_inactive":"Social account is deactivated","posts.create.title":"Create a new post","posts.create.description":"Choose how you want to start.","posts.create.scratch_title":"Start from scratch","posts.create.scratch_description":"Open a blank post and write everything yourself.","posts.create.ai_title":"Generate with AI","posts.create.ai_description":"Describe what you want and AI generates the content for you.","posts.create.ai_configure_description":"Pick a format and describe the post you want to create.","posts.create.template_title":"Use a template","posts.create.template_description":"Pick from our curated templates and customize.","posts.create.coming_soon":"Coming soon","posts.create.steps.format_title":"Choose a format","posts.create.steps.format_description":"Select the type of post you want to create.","posts.create.steps.account_title":"Choose an account","posts.create.steps.account_description":"Select the social account to publish to.","posts.create.steps.media_title":"Media options","posts.create.steps.media_carousel":"How many slides?","posts.create.steps.media_optional":"Include images?","posts.create.steps.media_optional_label":"How many images?","posts.create.steps.media_none":"None","posts.create.steps.media_count_label":"Number of images","posts.create.steps.prompt_title":"Describe your post","posts.create.steps.prompt_label":"What is this post about?","posts.create.steps.prompt_placeholder":"e.g. Announce our new carousel feature for Instagram","posts.create.steps.preview_title":"Preview","posts.create.steps.preview_loading":"Generating your content…","posts.create.steps.preview_error":"Something went wrong. Please try again.","posts.create.steps.create":"Create post","posts.create.steps.back":"Back","posts.create.steps.next":"Continue","posts.create.steps.cancel":"Cancel","posts.create.steps.discard":"Discard","posts.create.steps.retry":"Try again","posts.create.steps.no_platforms":"No connected accounts","posts.create.steps.connect_first":"Connect at least one social account to use AI generation.","posts.create.steps.format.instagram_feed":"Instagram Feed Post","posts.create.steps.format.instagram_carousel":"Instagram Carousel","posts.create.steps.format.linkedin_post":"LinkedIn Post","posts.create.steps.format.linkedin_page_post":"LinkedIn Page Post","posts.create.steps.format.x_post":"X Post","posts.create.steps.format.bluesky_post":"Bluesky Post","posts.create.steps.format.threads_post":"Threads Post","posts.create.steps.format.mastodon_post":"Mastodon Post","posts.create.steps.format.facebook_post":"Facebook Post","posts.create.steps.format.pinterest_pin":"Pinterest Pin","posts.create.steps.format.instagram_story":"Instagram Story","posts.create.steps.format.facebook_story":"Facebook Story","posts.templates.browser_title":"Choose a template","posts.templates.browser_description":"Start from a curated template and adapt it.","posts.templates.search_placeholder":"Search templates…","posts.templates.no_search_results":"No templates match your search","posts.templates.try_different_search":"Try a different keyword or clear the search.","posts.templates.slides_count":"{count} slide|{count} slides","posts.templates.all_platforms":"All platforms","posts.templates.use_this":"Use this template","posts.templates.no_templates":"No templates available.","posts.templates.applying":"Applying template…","posts.templates.category.product_launch":"Product launch","posts.templates.category.promotion":"Promotion","posts.templates.category.educational":"Educational","posts.templates.category.behind_the_scenes":"Behind the scenes","posts.templates.category.testimonial":"Testimonial","posts.templates.category.industry_tip":"Industry tip","posts.templates.category.event":"Event","posts.templates.category.engagement":"Engagement","settings.title":"Settings","settings.description":"Manage your profile and account settings","settings.nav.profile":"Profile","settings.nav.password":"Password","settings.nav.workspace":"Workspace","settings.nav.members":"Members","settings.nav.notifications":"Notifications","settings.nav.billing":"Billing","settings.notifications.title":"Notification preferences","settings.notifications.heading":"Email notifications","settings.notifications.description":"Choose which email notifications you want to receive","settings.notifications.post_published":"Post published","settings.notifications.post_published_description":"Receive an email when your post is published successfully","settings.notifications.post_failed":"Post failed","settings.notifications.post_failed_description":"Receive an email when your post fails to publish","settings.notifications.account_disconnected":"Account disconnected","settings.notifications.account_disconnected_description":"Receive an email when a social account is disconnected","settings.notifications.save":"Save preferences","settings.profile.title":"Profile settings","settings.profile.photo_heading":"Profile photo","settings.profile.photo_description":"Upload a profile photo","settings.profile.heading":"Profile information","settings.profile.description":"Update your name and email address","settings.profile.avatar":"Avatar","settings.profile.name":"Name","settings.profile.name_placeholder":"Full name","settings.profile.email":"Email address","settings.profile.email_placeholder":"Email address","settings.profile.email_unverified":"Your email address is unverified.","settings.profile.resend_verification":"Click here to resend the verification email.","settings.profile.verification_sent":"A new verification link has been sent to your email address.","settings.profile.save":"Save","settings.password.title":"Password settings","settings.password.heading":"Update password","settings.password.description":"Ensure your account is using a long, random password to stay secure","settings.password.current_password":"Current password","settings.password.current_password_placeholder":"Current password","settings.password.new_password":"New password","settings.password.new_password_placeholder":"New password","settings.password.confirm_password":"Confirm password","settings.password.confirm_password_placeholder":"Confirm password","settings.password.save":"Save password","settings.delete_account.heading":"Delete account","settings.delete_account.description":"Delete your account and all of its resources","settings.delete_account.warning":"Warning","settings.delete_account.warning_message":"Please proceed with caution, this cannot be undone.","settings.delete_account.button":"Delete account","settings.delete_account.modal_title":"Are you sure you want to delete your account?","settings.delete_account.modal_description":"Once your account is deleted, all of its resources and data will also be permanently deleted. Please enter your password to confirm you would like to permanently delete your account.","settings.delete_account.password":"Password","settings.delete_account.password_placeholder":"Password","settings.delete_account.cancel":"Cancel","settings.delete_account.confirm":"Delete account","settings.workspace.tabs.workspace":"Workspace","settings.workspace.tabs.brand":"Brand","settings.workspace.tabs.users":"Members","settings.workspace.tabs.api_keys":"API Keys","settings.workspace.title":"Workspace settings","settings.workspace.logo_heading":"Workspace logo","settings.workspace.logo_description":"Upload a logo for your workspace","settings.workspace.heading":"Workspace name","settings.workspace.description":"Update your workspace name","settings.workspace.members_heading":"Members","settings.workspace.members_description":"Manage workspace members and invitations","settings.workspace.name":"Name","settings.workspace.name_placeholder":"My Workspace","settings.workspace.save":"Save","settings.brand.title":"Brand","settings.brand.description":"Configure your brand identity for AI-generated content.","settings.brand.website":"Website","settings.brand.website_placeholder":"https://yourbrand.com","settings.brand.brand_description":"Description","settings.brand.brand_description_placeholder":"Tell us about your brand, what you do, and who your audience is...","settings.brand.tone":"Tone of voice","settings.brand.tone_professional":"Professional","settings.brand.tone_casual":"Casual","settings.brand.tone_friendly":"Friendly","settings.brand.tone_bold":"Bold","settings.brand.tone_inspirational":"Inspirational","settings.brand.tone_humorous":"Humorous","settings.brand.tone_educational":"Educational","settings.brand.voice_notes":"Voice notes","settings.brand.voice_notes_placeholder":"Additional writing guidelines, words to avoid, style preferences...","settings.brand.brand_color":"Brand color","settings.brand.background_color":"Background color","settings.brand.text_color":"Text color","settings.brand.font":"Font","settings.brand.content_language":"Content language","settings.brand.content_language_description":"Language used for AI-generated captions, hashtags, and any text inside generated images or videos.","settings.members.title":"Members","settings.members.heading":"Team members","settings.members.description":"Manage members and invites for this workspace","settings.members.cancel":"Cancel","settings.members.remove":"Remove","settings.members.make_admin":"Make admin","settings.members.make_member":"Make member","settings.members.invite.title":"Invite Member","settings.members.invite.description":"Send an email invite to add collaborators","settings.members.invite.email":"Email","settings.members.invite.email_placeholder":"[email protected]","settings.members.invite.role":"Role","settings.members.invite.role_placeholder":"Select a role","settings.members.invite.submit":"Send Invite","settings.members.pending.title":"Pending Invites","settings.members.pending.description":"Invites awaiting acceptance","settings.members.pending.empty":"No pending invites","settings.members.list.title":"Members","settings.members.list.description":"People with access to this workspace","settings.members.list.empty":"No members besides the owner","settings.members.remove_modal.title":"Remove member","settings.members.remove_modal.description":"Are you sure you want to remove this member from the workspace? They will lose access to all workspace resources.","settings.members.remove_modal.action":"Remove member","settings.members.cancel_invite_modal.title":"Cancel invitation","settings.members.cancel_invite_modal.description":"Are you sure you want to cancel this invitation?","settings.members.cancel_invite_modal.action":"Cancel invitation","settings.members.roles.owner":"Owner","settings.members.roles.admin":"Admin","settings.members.roles.member":"Member","settings.members.roles.viewer":"Viewer","settings.members.flash.invite_sent":"Invite sent successfully!","settings.members.flash.invite_deleted":"Invite deleted.","settings.members.flash.member_removed":"Member removed successfully.","settings.members.flash.role_updated":"Member role updated.","settings.members.flash.wrong_email":"This invite is for a different email address.","settings.members.flash.already_member":"You are already a member of this workspace.","settings.members.flash.invite_accepted":"Welcome! You are now a member of the workspace.","settings.members.flash.invite_declined":"Invite declined.","settings.account.title":"Account Settings","settings.account.description":"Manage your account name and billing email","settings.account.name":"Account Name","settings.account.name_placeholder":"My Company","settings.account.billing_email":"Billing Email","settings.account.billing_email_placeholder":"[email protected]","settings.account.billing_email_hint":"This email will be used for invoices and billing communications from Stripe.","settings.account.submit":"Save","settings.flash.account_updated":"Account updated successfully!","settings.flash.profile_updated":"Profile updated successfully!","settings.flash.language_updated":"Language updated successfully!","settings.flash.password_updated":"Password updated successfully!","settings.flash.workspace_updated":"Settings updated successfully!","settings.flash.photo_updated":"Photo updated successfully!","settings.flash.photo_deleted":"Photo removed successfully!","settings.flash.logo_updated":"Logo uploaded successfully!","settings.flash.logo_deleted":"Logo removed successfully!","settings.flash.notifications_updated":"Notification preferences updated!","settings.api_keys.title":"API Keys","settings.api_keys.page_title":"API Keys","settings.api_keys.heading":"API Keys","settings.api_keys.description":"Manage API keys for programmatic access to your workspace.","settings.api_keys.create":"Create API Key","settings.api_keys.copy":"Copy","settings.api_keys.new_token_message":"Your new API key has been created. Copy it now — you won't be able to see it again.","settings.api_keys.table.name":"Name","settings.api_keys.table.key":"Key","settings.api_keys.table.status":"Status","settings.api_keys.table.expires":"Expires","settings.api_keys.table.last_used":"Last Used","settings.api_keys.table.never":"Never","settings.api_keys.actions.copy_id":"Copy API Key ID","settings.api_keys.actions.copy_id_success":"API Key ID copied to clipboard","settings.api_keys.actions.delete":"Delete","settings.api_keys.empty.title":"No API keys yet","settings.api_keys.empty.description":"Create an API key to access your workspace programmatically.","settings.api_keys.delete_modal.title":"Delete API key","settings.api_keys.delete_modal.description":"Are you sure you want to delete this API key? Any applications using this key will lose access immediately.","settings.api_keys.delete_modal.action":"Delete API key","settings.api_keys.create_dialog.title":"Create API Key","settings.api_keys.create_dialog.description":"Create a new API key for programmatic access to your workspace.","settings.api_keys.create_dialog.name":"Name","settings.api_keys.create_dialog.name_placeholder":"e.g. Production API Key","settings.api_keys.create_dialog.expires":"Expiration date (optional)","settings.api_keys.create_dialog.expires_placeholder":"No expiration","settings.api_keys.create_dialog.submit":"Create","settings.api_keys.create_dialog.cancel":"Cancel","settings.api_keys.flash.created":"API key created successfully!","settings.api_keys.flash.deleted":"API key deleted successfully!","sidebar.workspaces":"Workspaces","sidebar.select_workspace":"Select workspace","sidebar.create_workspace":"Create workspace","sidebar.create_post":"Create post","sidebar.profile":"Profile","sidebar.log_out":"Log out","sidebar.workspace.connections":"Connections","sidebar.workspace.hashtags":"Hashtags","sidebar.workspace.labels":"Labels","sidebar.workspace.assets":"Assets","sidebar.workspace.api_keys":"API Keys","sidebar.workspace.settings":"Settings","sidebar.workspace_select":"Workspace: Select","sidebar.theme":"Theme: :name","sidebar.theme_light":"Light","sidebar.theme_dark":"Dark","sidebar.theme_system":"System","sidebar.language":"Language: :name","sidebar.language_select":"Language: Select","sidebar.groups.posts":"Posts","sidebar.groups.workspace":"Workspace","sidebar.groups.account":"Account","sidebar.groups.support":"Support","sidebar.analytics":"Analytics","sidebar.posts.calendar":"Calendar","sidebar.posts.all":"All","sidebar.posts.scheduled":"Scheduled","sidebar.posts.posted":"Posted","sidebar.posts.drafts":"Drafts","sidebar.account.settings":"Settings","sidebar.account.usage":"Usage","sidebar.account.billing":"Billing","sidebar.notifications":"Notifications","sidebar.mark_all_read":"Mark all as read","sidebar.mark_as_read":"Mark as read","sidebar.archive_all":"Archive all","sidebar.no_notifications":"No notifications","sidebar.support.discord":"Discord","sidebar.support.share_feedback":"Share feedback","sidebar.support.last_updates":"Last Updates","sidebar.support.docs":"Documentation","usage.title":"Usage","usage.section_account":"Account","usage.section_account_description":"Quotas and limits for your :plan plan.","usage.section_ai":"AI Generation","usage.section_ai_description":"AI image and video generation usage for the current month.","usage.section_data":"Data","usage.section_data_description":"Data retention and storage for your plan.","usage.workspaces":"Workspaces","usage.social_accounts":"Social Accounts","usage.members":"Members","usage.ai_images":"Images","usage.ai_videos":"Videos","usage.data_retention":"Data Retention","usage.unlimited":"Unlimited","usage.days":"days","usage.year":"year","usage.years":"years","workspaces.title":"Workspaces","workspaces.select_title":"Your workspaces","workspaces.select_description":"Select a workspace to continue","workspaces.current":"Current","workspaces.connections":":count connections","workspaces.posts":":count posts","workspaces.create.page_title":"Create your workspace","workspaces.create.title":"Set up your workspace","workspaces.create.description":"Tell us a bit about you or your project. We'll use it to tailor AI-generated posts to your voice.","workspaces.create.website":"Website","workspaces.create.website_placeholder":"https://yourbrand.com","workspaces.create.autofill":"Autofill from website","workspaces.create.autofill_missing_url":"Enter a URL first.","workspaces.create.autofill_success":"Brand info loaded.","workspaces.create.autofill_error":"Could not autofill. You can fill the fields manually.","workspaces.create.autofill_errors.unreachable":"We could not reach that website (:reason).","workspaces.create.autofill_errors.http_status":"The website returned an unexpected status (:status).","workspaces.create.autofill_errors.invalid_scheme":"Only http and https URLs are supported.","workspaces.create.autofill_errors.missing_host":"The URL is missing a host.","workspaces.create.autofill_errors.unresolvable_host":"We could not resolve the host (:host).","workspaces.create.autofill_errors.private_network":"URLs pointing to private networks are not allowed.","workspaces.create.logo_captured":"Logo captured from your website.","workspaces.create.name":"Workspace name","workspaces.create.name_placeholder":"e.g. Acme Inc","workspaces.create.brand_description":"Brand description","workspaces.create.brand_description_placeholder":"What does your brand do?","workspaces.create.tone":"Brand tone","workspaces.create.tone_professional":"Professional","workspaces.create.tone_casual":"Casual","workspaces.create.tone_friendly":"Friendly","workspaces.create.tone_bold":"Bold","workspaces.create.tone_inspirational":"Inspirational","workspaces.create.tone_humorous":"Humorous","workspaces.create.tone_educational":"Educational","workspaces.create.content_language":"Content language","workspaces.create.content_language_description":"AI-generated captions will be written in this language.","workspaces.create.voice_notes":"Voice notes (optional)","workspaces.create.voice_notes_placeholder":"e.g. short, punchy sentences. avoid jargon.","workspaces.create.brand_color":"Brand color","workspaces.create.background_color":"Background color","workspaces.create.text_color":"Text color","workspaces.create.submit":"Create workspace","workspaces.create.first_workspace_success":"Workspace created. Connect a social account to start posting.","workspaces.create.success":"Workspace created."}\ No newline at end of filediff --git a/lang/php_es.json b/lang/php_es.jsonindex 1cf53dd74..76cef7253 100644--- a/lang/php_es.json+++ b/lang/php_es.json@@ -1 +1 @@-{"accounts.title":"Conexiones","accounts.page_title":"Cuentas Sociales","accounts.description":"Resumen de todas tus cuentas sociales conectadas","accounts.add_social":"Agregar Red Social","accounts.add_social_title":"Conectar una Cuenta Social","accounts.add_social_description":"Conecta una cuenta social a TryPost para empezar a publicar","accounts.no_accounts":"No hay cuentas conectadas todavía","accounts.no_accounts_description":"Conecta tus redes sociales para empezar a programar y publicar posts","accounts.no_search_results":"Ninguna cuenta coincide con tu búsqueda","accounts.try_different_search":"Prueba otra palabra clave o limpia la búsqueda.","accounts.search":"Buscar cuentas...","accounts.added":"Agregada :date","accounts.limit_reached":"Has alcanzado el límite de cuentas sociales de tu plan.","accounts.not_connected":"No conectado","accounts.connect":"Conectar","accounts.connection_lost":"Conexión perdida","accounts.reconnect_account":"Reconectar cuenta","accounts.view_profile":"Ver perfil","accounts.disconnect":"Desconectar","accounts.table.account":"Cuenta","accounts.table.platform":"Plataforma","accounts.table.status":"Estado","accounts.table.last_used":"Último uso","accounts.table.added":"Añadida","accounts.table.active":"Activa","accounts.never_used":"Nunca usada","accounts.status.connected":"Conectada","accounts.status.disconnected":"Desconectada","accounts.descriptions.linkedin":"Conecta tu perfil personal de LinkedIn","accounts.descriptions.linkedin-page":"Conecta una página de empresa de LinkedIn","accounts.descriptions.x":"Conecta tu cuenta de X (Twitter)","accounts.descriptions.tiktok":"Conecta tu cuenta de TikTok","accounts.descriptions.youtube":"Conecta un canal de YouTube","accounts.descriptions.facebook":"Conecta una página de Facebook","accounts.descriptions.instagram":"Conecta una cuenta profesional de Instagram","accounts.descriptions.instagram-facebook":"Conecta Instagram vía página de Facebook","accounts.descriptions.threads":"Conecta tu cuenta de Threads","accounts.descriptions.pinterest":"Conecta tu cuenta de Pinterest","accounts.descriptions.bluesky":"Conecta tu cuenta de Bluesky","accounts.descriptions.mastodon":"Conecta tu cuenta de Mastodon","accounts.disconnect_modal.title":"Desconectar cuenta","accounts.disconnect_modal.description":"¿Estás seguro de que deseas desconectar esta cuenta? Puedes volver a conectarla en cualquier momento.","accounts.disconnect_modal.confirm":"Desconectar","accounts.disconnect_modal.cancel":"Cancelar","accounts.bluesky.title":"Conectar Bluesky","accounts.bluesky.description":"Introduce tus credenciales para conectar","accounts.bluesky.email":"Correo electrónico","accounts.bluesky.email_placeholder":"tuusuario.bsky.social","accounts.bluesky.app_password":"Contraseña de app","accounts.bluesky.app_password_placeholder":"xxxx-xxxx-xxxx-xxxx","accounts.bluesky.app_password_hint":"Usa una <strong>Contraseña de App</strong> por seguridad. Crea una en <a href=\"https://bsky.app/settings/app-passwords\" target=\"_blank\" class=\"underline\">bsky.app/settings</a>.","accounts.bluesky.submit":"Conectar Bluesky","accounts.bluesky.submitting":"Conectando...","accounts.mastodon.title":"Conectar Mastodon","accounts.mastodon.description":"Introduce tu instancia de Mastodon","accounts.mastodon.instance_url":"URL de la instancia","accounts.mastodon.instance_placeholder":"https://mastodon.social","accounts.mastodon.instance_hint":"Introduce la URL de tu instancia de Mastodon (ej: mastodon.social, techhub.social)","accounts.mastodon.submit":"Continuar con Mastodon","accounts.mastodon.submitting":"Conectando...","accounts.facebook.title":"Seleccionar página de Facebook","accounts.facebook.description":"Elige qué página deseas conectar","accounts.facebook.no_pages":"No se encontraron páginas","accounts.facebook.no_pages_description":"No eres administrador de ninguna página de Facebook.","accounts.facebook.page_label":"Página de Facebook","accounts.instagram_facebook.title":"Seleccionar cuenta de Instagram","accounts.instagram_facebook.description":"Elige qué cuenta de Instagram deseas conectar","accounts.instagram_facebook.no_pages":"No se encontraron cuentas de Instagram","accounts.instagram_facebook.no_pages_description":"No se encontraron páginas de Facebook con cuentas Instagram Business vinculadas.","accounts.linkedin.title":"Seleccionar página de LinkedIn","accounts.linkedin.description":"Elige qué página deseas conectar","accounts.linkedin.no_pages":"No se encontraron páginas","accounts.linkedin.no_pages_description":"No eres administrador de ninguna página de LinkedIn.","accounts.linkedin.page_label":"Página de LinkedIn","accounts.flash.disconnected":"¡Cuenta desconectada correctamente!","accounts.flash.connected":"¡Cuenta conectada correctamente!","accounts.flash.session_expired":"Sesión expirada. Inténtalo de nuevo.","accounts.flash.workspace_not_found":"Workspace no encontrado.","accounts.flash.activated":"¡Cuenta activada!","accounts.flash.deactivated":"¡Cuenta desactivada!","accounts.flash.already_connected":"Esta plataforma ya está conectada.","accounts.flash.no_youtube_channels":"No se encontraron canales de YouTube. Crea un canal primero.","analytics.channels":"Canales","analytics.no_accounts":"No hay cuentas conectadas con analytics.","analytics.select_account":"Selecciona una cuenta para ver analytics.","analytics.no_data":"No hay datos de analytics disponibles.","assets.title":"Medios","assets.tabs.my_uploads":"Mis subidas","assets.tabs.stock_photos":"Fotos gratuitas","assets.tabs.gifs":"GIFs","assets.upload.drag_drop":"Arrastra y suelta tus archivos aquí o haz clic para seleccionar","assets.upload.formats":"JPEG, PNG, GIF, WebP, MP4","assets.upload.uploading":"Subiendo...","assets.empty.title":"Todavía no hay medios","assets.empty.description":"Sube imágenes y videos para construir tu biblioteca de medios.","assets.save_to_assets":"Guardar en la biblioteca","assets.saved":"¡Guardado en tu biblioteca!","assets.create_post":"Crear post","assets.add_to_post":"Agregar al post","assets.search_placeholder":"Buscar media...","assets.delete.title":"Eliminar medio","assets.delete.description":"¿Estás seguro de que deseas eliminar este medio? Esta acción no se puede deshacer.","assets.delete.confirm":"Eliminar","assets.delete.cancel":"Cancelar","assets.unsplash.search_placeholder":"Buscar fotos gratuitas...","assets.unsplash.no_results":"No se encontraron fotos","assets.unsplash.no_results_description":"Prueba con otro término de búsqueda.","assets.unsplash.trending":"Tendencias en Unsplash","assets.unsplash.start_searching":"Busca fotos gratuitas de Unsplash","assets.giphy.trending":"Tendencias en Giphy","assets.giphy.search_placeholder":"Buscar GIFs...","assets.giphy.no_results":"No se encontraron GIFs","assets.giphy.no_results_description":"Prueba con otro término de búsqueda.","assets.giphy.powered_by":"Powered by GIPHY","assistant.placeholder":"Pídeme escribir una descripción, generar una imagen o video...","assistant.thinking":"Pensando...","assistant.add_to_post":"Añadir al post","assistant.added":"Añadido","assistant.error":"Algo salió mal. Inténtalo de nuevo.","assistant.retry":"Intentar de nuevo","assistant.image_generated":"Aquí está la imagen generada:","assistant.video_generated":"Aquí está el video generado:","assistant.audio_generated":"Aquí está el audio generado:","assistant.empty":"Pregúntame lo que quieras. Puedo escribir descripciones, generar imágenes y producir videos.","assistant.limit_reached_images":"Has alcanzado el límite mensual de generación de imágenes.","assistant.limit_reached_videos":"Has alcanzado el límite mensual de generación de videos.","assistant.content_blocked":"No puedo ayudar con ese tipo de contenido. Estoy aquí para ayudarte a crear contenido seguro y atractivo para redes sociales.","auth.failed":"Estas credenciales no coinciden con nuestros registros.","auth.password":"La contraseña proporcionada es incorrecta.","auth.throttle":"Demasiados intentos de inicio de sesión. Inténtalo de nuevo en :seconds segundos.","auth.flash.welcome":"¡Bienvenido a TryPost!","auth.flash.welcome_trial":"¡Bienvenido a TryPost! Tu prueba ha comenzado.","auth.legal":"Al continuar, aceptas nuestros <a href=\"https://trypost.it/terms\" target=\"_blank\">Términos de Servicio</a> y <a href=\"https://trypost.it/privacy\" target=\"_blank\">Política de Privacidad</a>.","auth.slides.calendar.title":"Calendario Visual","auth.slides.calendar.description":"Planifica y programa tu contenido con un calendario intuitivo de arrastrar y soltar en todas tus cuentas sociales.","auth.slides.scheduling.title":"Programación Inteligente","auth.slides.scheduling.description":"Programa posts en LinkedIn, X, Instagram, TikTok, YouTube y más — todo desde un solo lugar.","auth.slides.media.title":"Contenido Multimedia","auth.slides.media.description":"Publica imágenes, carruseles, historias y reels. Cada plataforma recibe el formato correcto automáticamente.","auth.slides.video.title":"Publicación de Video","auth.slides.video.description":"Sube videos una vez y publícalos en TikTok, YouTube Shorts, Instagram Reels y Facebook Reels.","auth.slides.team.title":"Workspaces en Equipo","auth.slides.team.description":"Invita a tu equipo, asigna roles y gestiona múltiples marcas en workspaces separados.","auth.slides.hashtags.title":"Grupos de Hashtags","auth.slides.hashtags.description":"Guarda colecciones de hashtags y agrégalos a tus posts con un clic. Organiza con etiquetas y filtros.","auth.or_continue_with":"O continuar con","auth.google_login":"Iniciar sesión con Google","auth.google_signup":"Registrarse con Google","auth.signup_success.page_title":"Bienvenido","auth.signup_success.title":"Configurando tu cuenta","auth.signup_success.description":"Esto suele tardar solo unos segundos...","auth.login.title":"Inicia sesión en tu cuenta","auth.login.description":"Introduce tu correo y contraseña para iniciar sesión","auth.login.page_title":"Iniciar sesión","auth.login.email":"Correo electrónico","auth.login.password":"Contraseña","auth.login.forgot_password":"¿Olvidaste tu contraseña?","auth.login.remember_me":"Recuérdame","auth.login.submit":"Iniciar sesión","auth.login.no_account":"¿No tienes una cuenta?","auth.login.sign_up":"Regístrate","auth.register.title":"Crear una cuenta","auth.register.description":"Introduce tus datos para crear tu cuenta","auth.register.page_title":"Registro","auth.register.name":"Nombre","auth.register.name_placeholder":"Nombre completo","auth.register.email":"Correo electrónico","auth.register.password":"Contraseña","auth.register.show_password":"Mostrar contraseña","auth.register.hide_password":"Ocultar contraseña","auth.register.submit":"Crear cuenta","auth.register.has_account":"¿Ya tienes una cuenta?","auth.register.log_in":"Iniciar sesión","auth.forgot_password.title":"Olvidé mi contraseña","auth.forgot_password.description":"Introduce tu correo para recibir un enlace de restablecimiento","auth.forgot_password.page_title":"Olvidé mi contraseña","auth.forgot_password.email":"Correo electrónico","auth.forgot_password.submit":"Enviar enlace de restablecimiento","auth.forgot_password.return_to":"O vuelve a","auth.forgot_password.log_in":"iniciar sesión","auth.reset_password.title":"Restablecer contraseña","auth.reset_password.description":"Introduce tu nueva contraseña","auth.reset_password.page_title":"Restablecer contraseña","auth.reset_password.email":"Correo electrónico","auth.reset_password.password":"Contraseña","auth.reset_password.confirm_password":"Confirmar contraseña","auth.reset_password.confirm_placeholder":"Confirmar contraseña","auth.reset_password.submit":"Restablecer contraseña","auth.verify_email.title":"Verificar correo","auth.verify_email.description":"Verifica tu correo electrónico haciendo clic en el enlace que acabamos de enviarte.","auth.verify_email.page_title":"Verificación de correo","auth.verify_email.link_sent":"Se ha enviado un nuevo enlace de verificación al correo electrónico proporcionado durante el registro.","auth.verify_email.resend":"Reenviar correo de verificación","auth.verify_email.log_out":"Cerrar sesión","auth.accept_invite.page_title":"Aceptar invitación","auth.accept_invite.title":"¡Has sido invitado!","auth.accept_invite.description":"Has sido invitado a unirte al workspace :workspace.","auth.accept_invite.workspace":"Workspace","auth.accept_invite.your_role":"Tu rol","auth.accept_invite.email":"Correo electrónico","auth.accept_invite.accept":"Aceptar invitación","auth.accept_invite.decline":"Rechazar invitación","auth.accept_invite.login_prompt":"Inicia sesión o crea una cuenta para aceptar esta invitación.","auth.accept_invite.log_in":"Iniciar sesión","auth.accept_invite.create_account":"Crear cuenta","billing.title":"Suscripción","billing.description":"Administra tu suscripción y método de pago","billing.subscribe.page_title":"Comienza tu prueba gratuita","billing.subscribe.title":"Comienza tu prueba gratuita","billing.subscribe.description":":days días gratis para explorar todas las funciones.","billing.subscribe.start_trial":"Comenzar prueba de :days días","billing.subscribe.cancel_anytime":"Cancela en cualquier momento. Sin preguntas.","billing.subscribe.switch_workspace":"Cambiar workspace","billing.subscribe.features.calendar":"Calendario visual con arrastrar y soltar","billing.subscribe.features.scheduling":"Programación ilimitada de posts","billing.subscribe.features.media":"Imágenes, carruseles e historias","billing.subscribe.features.video":"Publicación de videos en todas las plataformas","billing.subscribe.features.team":"Colaboración en equipo y workspaces","billing.subscribe.features.hashtags":"Grupos de hashtags y etiquetas","billing.trial.title":"Periodo de prueba activo","billing.trial.description":"Tu prueba termina el :date. Después, tu suscripción se cobrará automáticamente.","billing.subscription.title":"Tu suscripción","billing.subscription.status":"Estado","billing.subscription.workspaces":"Workspaces","billing.subscription.quantity":"Cantidad de suscripción","billing.subscription.expires":"Expira :date","billing.subscription.canceled_on":"Tu suscripción se cancelará el :date","billing.subscription.manage":"Administrar en Stripe","billing.invoices.title":"Facturas","billing.invoices.description":"Historial de pagos","billing.invoices.empty":"No se encontraron facturas","billing.invoices.paid":"Pagado","billing.processing.page_title":"Procesando...","billing.processing.title":"Procesando tu suscripción","billing.processing.description":"Espera mientras configuramos tu cuenta. Solo tomará un momento.","billing.processing.success_title":"¡Todo listo!","billing.processing.success_description":"Tu suscripción está activa. Redirigiendo a tus workspaces...","billing.processing.cancelled_title":"Pago cancelado","billing.processing.cancelled_description":"Tu pago fue cancelado. No se realizaron cargos.","billing.processing.retry":"Intentar de nuevo","billing.status.active":"Activa","billing.status.canceled":"Cancelada","billing.status.incomplete":"Incompleta","billing.status.incomplete_expired":"Expirada","billing.status.past_due":"Vencida","billing.status.trialing":"Prueba","billing.status.unpaid":"Sin pagar","brands.new_brand":"Nueva Marca","brands.no_brands_yet":"No hay marcas todavía","brands.no_brands_description":"Crea marcas para organizar tus cuentas de redes sociales por cliente o proyecto","brands.accounts_count":":count cuentas","brands.create.title":"Crear Marca","brands.create.description":"Dale un nombre a tu marca para agrupar cuentas de redes sociales","brands.create.name":"Nombre de la Marca","brands.create.name_placeholder":"ej. Acme Corp, Personal","brands.create.submit":"Crear Marca","brands.create.submitting":"Creando...","brands.edit.title":"Editar Marca","brands.edit.description":"Actualiza el nombre de esta marca","brands.edit.name":"Nombre de la Marca","brands.edit.name_placeholder":"ej. Acme Corp, Personal","brands.edit.submit":"Guardar Cambios","brands.edit.submitting":"Guardando...","brands.delete.title":"Eliminar Marca","brands.delete.description":"¿Estás seguro de que deseas eliminar esta marca? Las cuentas de redes sociales se desasignarán pero no se eliminarán.","brands.delete.confirm":"Eliminar","brands.delete.cancel":"Cancelar","brands.flash.created":"¡Marca creada con éxito!","brands.flash.updated":"¡Marca actualizada con éxito!","brands.flash.deleted":"¡Marca eliminada con éxito!","calendar.title":"Calendario","calendar.today":"Hoy","calendar.day":"Día","calendar.week":"Semana","calendar.month":"Mes","calendar.new_post":"Nuevo post","calendar.no_content":"Sin contenido","calendar.more":"+:count más","comments.placeholder":"Escribe un comentario...","comments.reply_placeholder":"Escribe una respuesta...","comments.reply":"Responder","comments.edit":"Editar","comments.delete":"Eliminar","comments.edited":"editado","comments.save":"Guardar","comments.cancel":"Cancelar","comments.send":"Enviar","comments.replying_to":"Respondiendo a :name","comments.empty":"Todavía no hay comentarios. Inicia la conversación.","comments.load_more":"Cargar comentarios anteriores","common.confirm_modal.cannot_be_undone":"Esta acción no se puede deshacer.","common.confirm_modal.type":"Escribe","common.confirm_modal.to_confirm":"para confirmar.","common.confirm_modal.copy_to_clipboard":"Copiar al portapapeles","common.photo_upload.upload":"Subir","common.photo_upload.uploading":"Subiendo...","common.photo_upload.remove":"Eliminar foto","common.photo_upload.hint":"Recomendado: imagen cuadrada, máximo 2 MB.","common.timezone.select":"Seleccionar zona horaria","common.timezone.search":"Buscar zona horaria...","common.timezone.empty":"No se encontró zona horaria","common.date_picker.select":"Seleccionar fecha","common.cancel":"Cancelar","common.loading_more":"Cargando más...","hashtags.title":"Hashtags","hashtags.description":"Crea grupos de hashtags para agregarlos rápidamente a tus posts","hashtags.search":"Buscar hashtags...","hashtags.new_group":"Nuevo grupo","hashtags.no_groups_yet":"Aún no hay grupos de hashtags","hashtags.no_groups_description":"Crea grupos de hashtags para agregar rápidamente hashtags populares a tus posts","hashtags.no_search_results":"Ningún grupo coincide con tu búsqueda","hashtags.try_different_search":"Prueba otra palabra clave o limpia la búsqueda.","hashtags.create_first_group":"Crea tu primer grupo","hashtags.hashtags_count":":count hashtags","hashtags.table.name":"Nombre","hashtags.table.tags":"Hashtags","hashtags.table.count":"Cantidad","hashtags.table.created_at":"Creado","hashtags.create.title":"Crear grupo de hashtags","hashtags.create.description":"Dale un nombre a tu grupo y agrega hashtags separados por espacios o comas","hashtags.create.name":"Nombre del grupo","hashtags.create.name_placeholder":"ej: Marketing, Viajes, Comida","hashtags.create.hashtags":"Hashtags","hashtags.create.hashtags_placeholder":"#marketing #redessociales #negocios #crecimiento","hashtags.create.hashtags_hint":"Ingresa hashtags separados por espacios o comas. Incluye el símbolo #.","hashtags.create.submit":"Crear grupo","hashtags.create.submitting":"Creando...","hashtags.edit.title":"Editar grupo de hashtags","hashtags.edit.description":"Actualiza el nombre y los hashtags de este grupo","hashtags.edit.name":"Nombre del grupo","hashtags.edit.name_placeholder":"ej: Marketing, Viajes, Comida","hashtags.edit.hashtags":"Hashtags","hashtags.edit.hashtags_placeholder":"#marketing #redessociales #negocios #crecimiento","hashtags.edit.hashtags_hint":"Ingresa hashtags separados por espacios o comas. Incluye el símbolo #.","hashtags.edit.submit":"Guardar cambios","hashtags.edit.submitting":"Guardando...","hashtags.delete.title":"Eliminar grupo de hashtags","hashtags.delete.description":"¿Estás seguro de que deseas eliminar este grupo de hashtags? Esta acción no se puede deshacer.","hashtags.delete.confirm":"Eliminar","hashtags.delete.cancel":"Cancelar","hashtags.flash.created":"¡Grupo de hashtags creado correctamente!","hashtags.flash.updated":"¡Grupo de hashtags actualizado correctamente!","hashtags.flash.deleted":"¡Grupo de hashtags eliminado correctamente!","labels.title":"Etiquetas","labels.description":"Crea etiquetas para organizar y categorizar tus posts","labels.search":"Buscar etiquetas...","labels.new_label":"Nueva etiqueta","labels.no_labels_yet":"Aún no hay etiquetas","labels.no_search_results":"Ninguna etiqueta coincide con tu búsqueda","labels.try_different_search":"Prueba otra palabra clave o limpia la búsqueda.","labels.create_first_label":"Crea tu primera etiqueta","labels.table.name":"Nombre","labels.table.created_at":"Creado","labels.create.title":"Crear etiqueta","labels.create.description":"Dale un nombre y elige un color para tu etiqueta","labels.create.name":"Nombre","labels.create.name_placeholder":"Nombre de la etiqueta...","labels.create.color":"Color","labels.create.submit":"Crear etiqueta","labels.create.submitting":"Creando...","labels.edit.title":"Editar etiqueta","labels.edit.description":"Actualiza el nombre y el color de esta etiqueta","labels.edit.name":"Nombre","labels.edit.name_placeholder":"Nombre de la etiqueta...","labels.edit.color":"Color","labels.edit.submit":"Guardar cambios","labels.edit.submitting":"Guardando...","labels.delete.title":"Eliminar etiqueta","labels.delete.description":"¿Estás seguro de que deseas eliminar esta etiqueta? Esta acción no se puede deshacer.","labels.delete.confirm":"Eliminar","labels.delete.cancel":"Cancelar","labels.flash.created":"¡Etiqueta creada correctamente!","labels.flash.updated":"¡Etiqueta actualizada correctamente!","labels.flash.deleted":"¡Etiqueta eliminada correctamente!","mail.mentioned.subject":":name te mencionó en TryPost","mail.mentioned.title":":name te mencionó","mail.mentioned.intro":":name te mencionó en un comentario.","mail.mentioned.cta":"Ver comentario","mail.workspace_connections_disconnected.subject":"{1} :count cuenta necesita ser reconectada en :workspace|[2,*] :count cuentas necesitan ser reconectadas en :workspace","mail.workspace_connections_disconnected.title":"Cuentas necesitan reconexión","mail.workspace_connections_disconnected.intro":"Las siguientes cuentas sociales en tu workspace <strong>:workspace</strong> se han desconectado y necesitan ser reconectadas:","mail.workspace_connections_disconnected.reasons_title":"Esto puede haber ocurrido porque:","mail.workspace_connections_disconnected.reason_expired":"Los tokens de acceso expiraron","mail.workspace_connections_disconnected.reason_revoked":"Revocaste el acceso a TryPost en la plataforma","mail.workspace_connections_disconnected.reason_changed":"La plataforma cambió sus requisitos de autenticación","mail.workspace_connections_disconnected.reconnect_cta":"Reconecta estas cuentas para seguir programando y publicando posts.","mail.workspace_connections_disconnected.button":"Reconectar cuentas","pagination.previous":"« Anterior","pagination.next":"Siguiente »","passwords.reset":"Tu contraseña ha sido restablecida.","passwords.sent":"Te hemos enviado un enlace para restablecer tu contraseña.","passwords.throttled":"Espera antes de intentarlo de nuevo.","passwords.token":"Este token de restablecimiento de contraseña no es válido.","passwords.user":"No encontramos un usuario con ese correo electrónico.","posts.title":"Posts","posts.search":"Buscar posts...","posts.all_posts":"Todos los posts","posts.new_post":"Nuevo post","posts.no_posts":"No se encontraron posts","posts.no_search_results":"Ningún post coincide con tu búsqueda","posts.try_different_search":"Prueba otra palabra clave o limpia la búsqueda.","posts.start_creating":"Empieza creando tu primer post.","posts.table.status":"Estado","posts.table.content":"Contenido","posts.table.platforms":"Plataformas","posts.table.labels":"Etiquetas","posts.table.scheduled_at":"Fecha","posts.table.actions":"","posts.manage_posts":"Administra todos tus posts","posts.delete_confirm":"¿Estás seguro de que deseas eliminar este post?","posts.by":"por","posts.actions.view":"Ver post","posts.actions.delete":"Eliminar post","posts.form.post_type":"Tipo de post","posts.form.board":"Tablero","posts.form.select_board":"Seleccionar tablero","posts.form.search_board":"Buscar tablero...","posts.form.no_board_found":"No se encontró tablero","posts.form.media":"Multimedia","posts.form.min":"Min","posts.form.uploading":"Subiendo...","posts.form.drop_to_upload":"Suelta para subir","posts.form.drag_and_drop":"Arrastra y suelta o haz clic para subir","posts.form.photos_and_videos":"Fotos y videos","posts.form.photos_only":"Solo fotos","posts.form.videos_only":"Solo videos","posts.form.drag_to_reorder":"Arrastra para reordenar","posts.form.caption":"Descripción","posts.form.write_caption":"Escribe tu descripción...","posts.form.tiktok.settings":"Configuración de TikTok","posts.form.tiktok.posting_to":"Publicando en","posts.form.tiktok.privacy_level":"¿Quién puede ver este video?","posts.form.tiktok.privacy_placeholder":"Selecciona la visibilidad","posts.form.tiktok.privacy.public":"Público para todos","posts.form.tiktok.privacy.friends":"Amigos mutuos","posts.form.tiktok.privacy.followers":"Seguidores","posts.form.tiktok.privacy.private":"Solo yo","posts.form.tiktok.privacy_hint":"Las opciones disponibles dependen de la configuración de tu cuenta de TikTok.","posts.form.tiktok.auto_add_music":"Agregar música automáticamente","posts.form.tiktok.auto_add_music_hint":"Disponible solo para fotos. Agrega una música predeterminada que puedes cambiar después.","posts.form.tiktok.yes":"Sí","posts.form.tiktok.no":"No","posts.form.tiktok.allow_users":"Permitir a los usuarios:","posts.form.tiktok.comments":"Comentar","posts.form.tiktok.duet":"Dueto","posts.form.tiktok.stitch":"Stitch","posts.form.tiktok.is_aigc":"Video hecho con IA","posts.form.tiktok.disclose":"Divulgar contenido del video","posts.form.tiktok.disclose_hint":"Activa para divulgar que este video promueve bienes o servicios a cambio de algo de valor. Tu video puede promocionarte a ti, a un tercero o ambos.","posts.form.tiktok.promotional_organic_title":"Tu foto/video será etiquetado como \"Contenido Promocional\".","posts.form.tiktok.promotional_paid_title":"Tu foto/video será etiquetado como \"Asociación pagada\".","posts.form.tiktok.promotional_description":"Esto no se puede cambiar una vez publicado el video.","posts.form.tiktok.compliance_incomplete":"Debes indicar si tu contenido promociona a ti mismo, a un tercero o a ambos.","posts.form.tiktok.branded_blocks_private":"El contenido patrocinado no puede ser privado. Elige Público o Amigos mutuos.","posts.form.tiktok.interaction_disabled_by_creator":"Desactivado por la configuración de tu cuenta TikTok.","posts.form.tiktok.max_duration_exceeded":"El video dura :duration s pero esta cuenta solo permite videos de hasta :max s.","posts.form.tiktok.creator_info_loading":"Cargando la configuración de tu cuenta TikTok…","posts.form.tiktok.processing_hint":"Después de publicar, puede tardar unos minutos en procesarse y aparecer en tu perfil de TikTok.","posts.form.tiktok.brand_organic":"Tu marca","posts.form.tiktok.brand_organic_hint":"Estás promocionándote a ti mismo o a tu propia marca. Este video será clasificado como Brand Organic.","posts.form.tiktok.brand_content":"Contenido patrocinado","posts.form.tiktok.brand_content_hint":"Estás promocionando otra marca o a un tercero. Este video será clasificado como Branded Content.","posts.form.tiktok.compliance.agree":"Al publicar, aceptas la","posts.form.tiktok.compliance.music_usage":"Confirmación de Uso de Música","posts.form.tiktok.compliance.and":"y la","posts.form.tiktok.compliance.branded_policy":"Política de Contenido Patrocinado","posts.form.instagram.settings":"Configuración de Instagram","posts.form.instagram.posting_to":"Publicando en","posts.form.instagram.variant_label":"Tipo de publicación","posts.form.instagram.variant.feed":"Publicación","posts.form.instagram.variant.reel":"Reel","posts.form.instagram.variant.story":"Historia","posts.form.instagram.aspect_label":"Proporción","posts.form.instagram.aspect.square":"Cuadrado (1:1)","posts.form.instagram.aspect.portrait":"Vertical (4:5)","posts.form.instagram.aspect.landscape":"Horizontal (16:9)","posts.form.instagram.aspect.original":"Original","posts.form.facebook.settings":"Configuración de Facebook","posts.form.facebook.posting_to":"Publicando en","posts.form.facebook.variant_label":"Tipo de publicación","posts.form.facebook.variant.post":"Publicación","posts.form.facebook.variant.reel":"Reel","posts.form.facebook.variant.story":"Historia","posts.form.linkedin.settings":"Configuración de LinkedIn","posts.form.linkedin.settings_page":"Configuración de la Página de LinkedIn","posts.form.linkedin.posting_to":"Publicando en","posts.form.linkedin.variant_label":"Tipo de publicación","posts.form.linkedin.variant.post":"Publicación","posts.form.linkedin.variant.carousel":"Carrusel","posts.form.pinterest.settings":"Configuración de Pinterest","posts.form.pinterest.posting_to":"Publicando en","posts.form.pinterest.variant_label":"Tipo de pin","posts.form.pinterest.variant.pin":"Pin","posts.form.pinterest.variant.video_pin":"Video Pin","posts.form.pinterest.variant.carousel":"Carrusel","posts.form.warnings.no_variant":"Elige un tipo de publicación para continuar.","posts.form.warnings.requires_media":"Este tipo requiere al menos una imagen o video.","posts.form.warnings.max_files_exceeded":"Este tipo acepta hasta :max archivos (tienes :current).","posts.form.warnings.min_files_required":"Este tipo requiere al menos :min archivos (tienes :current).","posts.form.warnings.no_video_allowed":"Este tipo no acepta videos.","posts.form.warnings.no_image_allowed":"Este tipo acepta solo videos.","posts.form.warnings.gif_not_allowed":"Esta red no acepta GIF. Elimínalo o selecciona otra red.","posts.form.warnings.image_too_large":"La imagen supera el límite de :max (la tuya es :current).","posts.form.warnings.video_too_large":"El video supera el límite de :max (el tuyo es :current).","posts.form.warnings.video_too_long":"El video dura :current, pero este tipo permite hasta :max.","posts.form.warnings.aspect_ratio_too_narrow":"La proporción :current es demasiado alta (mínimo :min).","posts.form.warnings.aspect_ratio_too_wide":"La proporción :current es demasiado ancha (máximo :max).","posts.status.pending":"Pendiente","posts.status.draft":"Borrador","posts.status.scheduled":"Programado","posts.status.publishing":"Publicando","posts.status.published":"Publicado","posts.status.partially_published":"Parcialmente publicado","posts.status.failed":"Fallido","posts.descriptions.draft":"Posts esperando ser programados","posts.descriptions.scheduled":"Posts programados para publicar","posts.descriptions.published":"Posts ya publicados","posts.show.title":"Detalles del post","posts.show.edit":"Editar","posts.show.no_content":"Sin texto","posts.show.platforms":"Plataformas","posts.show.no_platforms":"Ninguna plataforma seleccionada.","posts.show.view_on_platform":"Ver en la plataforma","posts.show.published_on":"Publicado el :date","posts.show.scheduled_for":"Programado para el :date","posts.show.draft":"Borrador","posts.show.status_pending":"Pendiente","posts.show.metrics":"Métricas","posts.show.metrics_loading":"Cargando métricas…","posts.show.metrics_unavailable":"Métricas aún no disponibles para esta plataforma.","posts.show.metrics_empty":"No se devolvieron métricas.","posts.show.summary.platforms":"Plataformas","posts.show.summary.published":"Publicado","posts.show.summary.failed":"Falló","posts.edit.title":"Editar post","posts.edit.view_title":"Ver post","posts.edit.manage_platforms":"Administrar plataformas","posts.edit.sync":"Sincronizar","posts.edit.labels":"Etiquetas","posts.edit.hashtags":"Hashtags","posts.edit.schedule":"Programar","posts.edit.publish":"Publicar","posts.edit.delete":"Eliminar","posts.edit.settings":"Configuración","posts.edit.schedule_for":"Programar para","posts.edit.scheduled_for":"Programado para","posts.edit.saving":"Guardando...","posts.edit.saved":"Guardado","posts.edit.draft":"Borrador","posts.edit.scheduled_at":"Programado:","posts.edit.published_at":"Publicado:","posts.edit.media":"Multimedia","posts.edit.add_media":"Añadir media","posts.edit.caption":"Descripción","posts.edit.caption_placeholder":"Escribe tu descripción...","posts.edit.compose_title":"Crear un post","posts.edit.compose_subtitle":"Compón tu mensaje y agrega media","posts.edit.preview_empty.title":"Ninguna plataforma seleccionada","posts.edit.preview_empty.description":"Selecciona una plataforma para publicar y ver la vista previa.","posts.edit.drag_drop":"Suelta los archivos para subir","posts.edit.drag_drop_hint":"Arrastra archivos aquí o usa los botones de arriba","posts.edit.drop_zone_title":"Añadir media","posts.edit.drop_zone_subtitle":"Arrastra archivos o haz clic para seleccionar","posts.edit.add":"Añadir","posts.edit.publish_to":"Publicar en","posts.edit.organize":"Organizar","posts.edit.no_caption":"Sin descripción","posts.edit.no_content":"Sin contenido","posts.edit.no_labels":"Todavía no hay etiquetas creadas","posts.edit.pick_time":"Elegir hora","posts.edit.post_now":"Publicar ahora","posts.edit.time":"Hora","posts.edit.cancel":"Cancelar","posts.edit.schedule_date":"Fecha de programación","posts.edit.view_on_platform":"Ver en la plataforma","posts.edit.platform_status":"Estado de la plataforma","posts.edit.compliance_incomplete":"Algunas configuraciones de plataforma están incompletas o son incompatibles con los medios adjuntos.","posts.edit.compliance.requires_media":"Agrega una imagen o video para publicar aquí.","posts.edit.compliance.too_many_files":"Solo se permiten :max archivo(s) en este formato.","posts.edit.compliance.too_few_files":"Agrega al menos :min archivos para este formato.","posts.edit.compliance.no_videos":"Solo se permiten imágenes en este formato.","posts.edit.compliance.no_images":"Solo se permiten videos en este formato.","posts.edit.compliance.no_gifs":"Los GIFs no son compatibles aquí.","posts.edit.compliance.video_too_large":"El video supera el límite de tamaño de esta plataforma.","posts.edit.compliance.video_too_long":"El video debe durar menos de :seconds segundos en este formato.","posts.edit.compliance.image_too_large":"La imagen supera el límite de tamaño de esta plataforma.","posts.edit.compliance.aspect_ratio_invalid":"La proporción de aspecto no es compatible con este formato.","posts.edit.compliance.no_content_type":"Elige un tipo de contenido para esta plataforma.","posts.edit.publishing":"Publicando...","posts.edit.publishing_overlay_title":"Tu publicación se está enviando","posts.edit.publishing_overlay_subtitle":"Esto puede tardar unos momentos. Puedes salir de esta página sin problemas.","posts.edit.tabs.preview":"Vista previa","posts.edit.tabs.schedule":"Programación","posts.edit.tabs.comments":"Comentarios","posts.edit.tabs.comments_empty":"Todavía no hay comentarios.","posts.edit.tabs.writing_assistant":"Asistente IA","posts.edit.tabs.writing_assistant_empty":"Asistente de escritura próximamente.","posts.edit.media_picker.title":"Elegir de la galería","posts.edit.media_picker.search":"Buscar media...","posts.edit.media_picker.empty":"Aún no hay archivos en tu galería","posts.edit.media_picker.cancel":"Cancelar","posts.edit.media_picker.add":"Agregar","posts.edit.media_picker.add_count":"Agregar :count","posts.edit.emoji_picker.search":"Buscar emoji","posts.edit.emoji_picker.empty":"No se encontraron emojis","posts.edit.emoji_picker.recent":"Usados con frecuencia","posts.edit.emoji_picker.smileys":"Caritas y emociones","posts.edit.emoji_picker.people":"Personas y cuerpo","posts.edit.emoji_picker.nature":"Animales y naturaleza","posts.edit.emoji_picker.food":"Comida y bebida","posts.edit.emoji_picker.activities":"Actividades","posts.edit.emoji_picker.travel":"Viajes y lugares","posts.edit.emoji_picker.objects":"Objetos","posts.edit.emoji_picker.symbols":"Símbolos","posts.edit.emoji_picker.flags":"Banderas","posts.edit.status.published":"Publicado","posts.edit.status.publishing":"Publicando...","posts.edit.status.failed":"Fallido","posts.edit.empty_state.title":"No hay plataformas seleccionadas","posts.edit.empty_state.description":"Selecciona al menos una plataforma para crear tu post","posts.edit.delete_modal.title":"Eliminar post","posts.edit.delete_modal.description":"¿Estás seguro de que deseas eliminar este post? Esta acción no se puede deshacer.","posts.edit.delete_modal.action":"Eliminar","posts.edit.delete_modal.cancel":"Cancelar","posts.edit.sync_enable.title":"¿Activar sincronización?","posts.edit.sync_enable.description":"Todas las plataformas compartirán el mismo contenido. Las ediciones personalizadas realizadas en plataformas individuales serán reemplazadas con el contenido actual.","posts.edit.sync_enable.cancel":"Cancelar","posts.edit.sync_enable.action":"Activar sincronización","posts.edit.sync_disable.title":"¿Desactivar sincronización?","posts.edit.sync_disable.description":"Cada plataforma mantendrá su contenido actual, pero las ediciones futuras solo se aplicarán a la plataforma que estés editando.","posts.edit.sync_disable.customize_note":"Podrás personalizar el contenido de cada plataforma individualmente.","posts.edit.sync_disable.cancel":"Cancelar","posts.edit.sync_disable.action":"Desactivar sincronización","posts.edit.platforms_dialog.title":"Seleccionar plataformas","posts.edit.platforms_dialog.description":"Elige en qué plataformas publicar este post.","posts.edit.hashtags_modal.search":"Buscar hashtags...","posts.edit.hashtags_modal.no_results":"No se encontraron hashtags.","posts.edit.validation.select_board":"Selecciona un tablero","posts.edit.validation.images_not_supported":"Imágenes no soportadas","posts.edit.validation.videos_not_supported":"Videos no soportados","posts.edit.validation.max_images":"Máximo :count imágenes","posts.edit.validation.requires_media":"Requiere multimedia","posts.edit.validation.requires_content":"Se requiere texto","posts.edit.validation.exceeded":":count excedido","posts.edit.validation.does_not_support_images":":platform no soporta imágenes","posts.edit.validation.supports_up_to_images":":platform soporta hasta :count imágenes","posts.edit.validation.does_not_support_videos":":platform no soporta videos","posts.content_types.instagram_feed.label":"Post del feed","posts.content_types.instagram_feed.description":"Aparece en tu feed y perfil","posts.content_types.instagram_reel.label":"Reel","posts.content_types.instagram_reel.description":"Video corto de hasta 90 segundos","posts.content_types.instagram_story.label":"Historia","posts.content_types.instagram_story.description":"Desaparece después de 24 horas","posts.content_types.linkedin_post.label":"Post","posts.content_types.linkedin_post.description":"Post estándar con texto y multimedia","posts.content_types.linkedin_carousel.label":"Carrusel","posts.content_types.linkedin_carousel.description":"Imágenes deslizables","posts.content_types.linkedin_page_post.label":"Post","posts.content_types.linkedin_page_post.description":"Post estándar con texto y multimedia","posts.content_types.linkedin_page_carousel.label":"Carrusel","posts.content_types.linkedin_page_carousel.description":"Imágenes deslizables","posts.content_types.facebook_post.label":"Post","posts.content_types.facebook_post.description":"Post estándar en tu página","posts.content_types.facebook_reel.label":"Reel","posts.content_types.facebook_reel.description":"Video corto de hasta 90 segundos","posts.content_types.facebook_story.label":"Historia","posts.content_types.facebook_story.description":"Desaparece después de 24 horas","posts.content_types.tiktok_video.label":"Video","posts.content_types.tiktok_video.description":"Contenido de video corto","posts.content_types.youtube_short.label":"Short","posts.content_types.youtube_short.description":"Video vertical de hasta 60 segundos","posts.content_types.x_post.label":"Post","posts.content_types.x_post.description":"Tweet con texto y multimedia","posts.content_types.threads_post.label":"Post","posts.content_types.threads_post.description":"Post de texto con multimedia opcional","posts.content_types.pinterest_pin.label":"Pin","posts.content_types.pinterest_pin.description":"Pin de imagen con enlace","posts.content_types.pinterest_video_pin.label":"Pin de video","posts.content_types.pinterest_video_pin.description":"Contenido de video","posts.content_types.pinterest_carousel.label":"Carrusel","posts.content_types.pinterest_carousel.description":"2-5 imágenes","posts.content_types.bluesky_post.label":"Post","posts.content_types.bluesky_post.description":"Post de texto con imágenes opcionales","posts.content_types.mastodon_post.label":"Post","posts.content_types.mastodon_post.description":"Post de texto con multimedia opcional","posts.platforms.linkedin":"LinkedIn","posts.platforms.linkedin-page":"Página de LinkedIn","posts.platforms.x":"X","posts.platforms.tiktok":"TikTok","posts.platforms.youtube":"YouTube Shorts","posts.platforms.facebook":"Página de Facebook","posts.platforms.instagram":"Instagram","posts.platforms.threads":"Threads","posts.platforms.pinterest":"Pinterest","posts.platforms.bluesky":"Bluesky","posts.platforms.mastodon":"Mastodon","posts.flash.scheduled":"¡Post programado correctamente!","posts.flash.publishing":"¡El post se está publicando! Puede tardar unos minutos en procesarse y aparecer en cada plataforma.","posts.flash.deleted":"¡Post eliminado correctamente!","posts.flash.cannot_edit_published":"Los posts publicados no se pueden editar.","posts.flash.cannot_delete_published":"Los posts publicados no se pueden eliminar.","posts.flash.connect_first":"Conecta al menos una red social antes de crear un post.","posts.errors.account_disconnected":"Cuenta social desconectada","posts.errors.account_inactive":"Cuenta social desactivada","settings.title":"Configuración","settings.description":"Administra tu perfil y configuración de la cuenta","settings.nav.profile":"Perfil","settings.nav.password":"Contraseña","settings.nav.workspace":"Workspace","settings.nav.members":"Miembros","settings.nav.notifications":"Notificaciones","settings.nav.billing":"Facturación","settings.notifications.title":"Preferencias de notificaciones","settings.notifications.heading":"Notificaciones por correo","settings.notifications.description":"Elige qué notificaciones por correo deseas recibir","settings.notifications.post_published":"Post publicado","settings.notifications.post_published_description":"Recibir un correo cuando tu post se publique correctamente","settings.notifications.post_failed":"Post fallido","settings.notifications.post_failed_description":"Recibir un correo cuando tu post falle al publicar","settings.notifications.account_disconnected":"Cuenta desconectada","settings.notifications.account_disconnected_description":"Recibir un correo cuando una cuenta social se desconecte","settings.notifications.save":"Guardar preferencias","settings.profile.title":"Configuración del perfil","settings.profile.photo_heading":"Foto de perfil","settings.profile.photo_description":"Sube una foto de perfil","settings.profile.heading":"Información del perfil","settings.profile.description":"Actualiza tu nombre y correo electrónico","settings.profile.avatar":"Avatar","settings.profile.name":"Nombre","settings.profile.name_placeholder":"Nombre completo","settings.profile.email":"Correo electrónico","settings.profile.email_placeholder":"Correo electrónico","settings.profile.email_unverified":"Tu correo electrónico no ha sido verificado.","settings.profile.resend_verification":"Haz clic aquí para reenviar el correo de verificación.","settings.profile.verification_sent":"Se ha enviado un nuevo enlace de verificación a tu correo electrónico.","settings.profile.save":"Guardar","settings.password.title":"Configuración de contraseña","settings.password.heading":"Actualizar contraseña","settings.password.description":"Asegúrate de que tu cuenta use una contraseña larga y aleatoria para mantenerte seguro","settings.password.current_password":"Contraseña actual","settings.password.current_password_placeholder":"Contraseña actual","settings.password.new_password":"Nueva contraseña","settings.password.new_password_placeholder":"Nueva contraseña","settings.password.confirm_password":"Confirmar contraseña","settings.password.confirm_password_placeholder":"Confirmar contraseña","settings.password.save":"Guardar contraseña","settings.delete_account.heading":"Eliminar cuenta","settings.delete_account.description":"Elimina tu cuenta y todos sus recursos","settings.delete_account.warning":"Advertencia","settings.delete_account.warning_message":"Procede con precaución, esta acción no se puede deshacer.","settings.delete_account.button":"Eliminar cuenta","settings.delete_account.modal_title":"¿Estás seguro de que deseas eliminar tu cuenta?","settings.delete_account.modal_description":"Una vez eliminada tu cuenta, todos sus recursos y datos también se eliminarán permanentemente. Introduce tu contraseña para confirmar que deseas eliminar permanentemente tu cuenta.","settings.delete_account.password":"Contraseña","settings.delete_account.password_placeholder":"Contraseña","settings.delete_account.cancel":"Cancelar","settings.delete_account.confirm":"Eliminar cuenta","settings.workspace.tabs.workspace":"Workspace","settings.workspace.tabs.brand":"Marca","settings.workspace.tabs.users":"Miembros","settings.workspace.tabs.api_keys":"API Keys","settings.workspace.title":"Configuración del workspace","settings.workspace.logo_heading":"Logo del workspace","settings.workspace.logo_description":"Sube un logo para tu workspace","settings.workspace.heading":"Nombre del workspace","settings.workspace.description":"Actualiza el nombre del workspace","settings.workspace.members_heading":"Miembros","settings.workspace.members_description":"Administra miembros e invitaciones del workspace","settings.workspace.name":"Nombre","settings.workspace.name_placeholder":"Mi Workspace","settings.workspace.save":"Guardar","settings.brand.title":"Marca","settings.brand.description":"Configura la identidad de tu marca para el contenido generado por IA.","settings.brand.website":"Sitio web","settings.brand.website_placeholder":"https://tumarca.com","settings.brand.brand_description":"Descripción","settings.brand.brand_description_placeholder":"Cuéntanos sobre tu marca, lo que haces y quién es tu audiencia...","settings.brand.tone":"Tono de voz","settings.brand.tone_professional":"Profesional","settings.brand.tone_casual":"Casual","settings.brand.tone_friendly":"Amigable","settings.brand.tone_bold":"Audaz","settings.brand.tone_inspirational":"Inspirador","settings.brand.tone_humorous":"Humorístico","settings.brand.tone_educational":"Educativo","settings.brand.voice_notes":"Notas de voz","settings.brand.voice_notes_placeholder":"Directrices adicionales de escritura, palabras a evitar, preferencias de estilo...","settings.brand.brand_color":"Color de marca","settings.brand.background_color":"Color de fondo","settings.brand.text_color":"Color de texto","settings.brand.content_language":"Idioma del contenido","settings.brand.content_language_description":"Idioma usado en los subtítulos, hashtags y cualquier texto dentro de imágenes o videos generados por IA.","settings.members.title":"Miembros","settings.members.heading":"Miembros del equipo","settings.members.description":"Administra miembros e invitaciones de este workspace","settings.members.cancel":"Cancelar","settings.members.remove":"Eliminar","settings.members.make_admin":"Hacer administrador","settings.members.make_member":"Hacer miembro","settings.members.invite.title":"Invitar miembro","settings.members.invite.description":"Envía una invitación por correo para agregar colaboradores","settings.members.invite.email":"Correo electrónico","settings.members.invite.email_placeholder":"[email protected]","settings.members.invite.role":"Rol","settings.members.invite.role_placeholder":"Selecciona un rol","settings.members.invite.submit":"Enviar invitación","settings.members.pending.title":"Invitaciones pendientes","settings.members.pending.description":"Invitaciones en espera de aceptación","settings.members.pending.empty":"No hay invitaciones pendientes","settings.members.list.title":"Miembros","settings.members.list.description":"Personas con acceso a este workspace","settings.members.list.empty":"No hay miembros además del propietario","settings.members.remove_modal.title":"Eliminar miembro","settings.members.remove_modal.description":"¿Estás seguro de que deseas eliminar a este miembro del workspace? Perderá acceso a todos los recursos del workspace.","settings.members.remove_modal.action":"Eliminar miembro","settings.members.cancel_invite_modal.title":"Cancelar invitación","settings.members.cancel_invite_modal.description":"¿Estás seguro de que deseas cancelar esta invitación?","settings.members.cancel_invite_modal.action":"Cancelar invitación","settings.members.roles.owner":"Propietario","settings.members.roles.admin":"Administrador","settings.members.roles.member":"Miembro","settings.members.roles.viewer":"Espectador","settings.members.flash.invite_sent":"¡Invitación enviada correctamente!","settings.members.flash.invite_deleted":"Invitación eliminada.","settings.members.flash.member_removed":"¡Miembro eliminado correctamente!","settings.members.flash.role_updated":"Rol del miembro actualizado.","settings.members.flash.wrong_email":"Esta invitación es para otro correo electrónico.","settings.members.flash.already_member":"Ya eres miembro de este workspace.","settings.members.flash.invite_accepted":"¡Bienvenido! Ahora eres miembro del workspace.","settings.members.flash.invite_declined":"Invitación rechazada.","settings.flash.profile_updated":"¡Perfil actualizado correctamente!","settings.flash.language_updated":"¡Idioma actualizado correctamente!","settings.flash.password_updated":"¡Contraseña actualizada correctamente!","settings.flash.workspace_updated":"¡Configuración actualizada correctamente!","settings.flash.photo_updated":"¡Foto actualizada correctamente!","settings.flash.photo_deleted":"¡Foto eliminada correctamente!","settings.flash.logo_updated":"¡Logo subido correctamente!","settings.flash.logo_deleted":"¡Logo eliminado correctamente!","settings.flash.notifications_updated":"¡Preferencias de notificaciones actualizadas!","settings.api_keys.title":"Claves API","settings.api_keys.page_title":"Claves API","settings.api_keys.heading":"Claves API","settings.api_keys.description":"Administra claves API para acceso programático a tu workspace.","settings.api_keys.create":"Crear clave API","settings.api_keys.copy":"Copiar","settings.api_keys.new_token_message":"Tu nueva clave API ha sido creada. Cópiala ahora — no podrás verla de nuevo.","settings.api_keys.table.name":"Nombre","settings.api_keys.table.key":"Clave","settings.api_keys.table.status":"Estado","settings.api_keys.table.expires":"Expira","settings.api_keys.table.last_used":"Último uso","settings.api_keys.table.never":"Nunca","settings.api_keys.actions.copy_id":"Copiar ID de clave API","settings.api_keys.actions.copy_id_success":"ID de clave API copiado","settings.api_keys.actions.delete":"Eliminar","settings.api_keys.empty.title":"No hay claves API","settings.api_keys.empty.description":"Crea una clave API para acceder a tu workspace programáticamente.","settings.api_keys.delete_modal.title":"Eliminar clave API","settings.api_keys.delete_modal.description":"¿Estás seguro de que deseas eliminar esta clave API? Las aplicaciones que la usen perderán acceso inmediatamente.","settings.api_keys.delete_modal.action":"Eliminar clave API","settings.api_keys.create_dialog.title":"Crear clave API","settings.api_keys.create_dialog.description":"Crea una nueva clave API para acceso programático a tu workspace.","settings.api_keys.create_dialog.name":"Nombre","settings.api_keys.create_dialog.name_placeholder":"ej. Clave API de Producción","settings.api_keys.create_dialog.expires":"Fecha de expiración (opcional)","settings.api_keys.create_dialog.expires_placeholder":"Sin expiración","settings.api_keys.create_dialog.submit":"Crear","settings.api_keys.create_dialog.cancel":"Cancelar","settings.api_keys.flash.created":"¡Clave API creada correctamente!","settings.api_keys.flash.deleted":"¡Clave API eliminada correctamente!","sidebar.workspaces":"Workspaces","sidebar.select_workspace":"Seleccionar workspace","sidebar.create_workspace":"Crear workspace","sidebar.create_post":"Crear post","sidebar.profile":"Perfil","sidebar.log_out":"Cerrar sesión","sidebar.workspace.connections":"Conexiones","sidebar.workspace.hashtags":"Hashtags","sidebar.workspace.labels":"Etiquetas","sidebar.workspace.assets":"Medios","sidebar.workspace.api_keys":"API Keys","sidebar.workspace.settings":"Configuración","sidebar.workspace_select":"Workspace: Seleccionar","sidebar.theme":"Tema: :name","sidebar.theme_light":"Claro","sidebar.theme_dark":"Oscuro","sidebar.theme_system":"Sistema","sidebar.language":"Idioma: :name","sidebar.language_select":"Idioma: Seleccionar","sidebar.groups.posts":"Posts","sidebar.groups.workspace":"Workspace","sidebar.groups.account":"Cuenta","sidebar.groups.support":"Soporte","sidebar.analytics":"Analytics","sidebar.posts.calendar":"Calendario","sidebar.posts.all":"Todos","sidebar.posts.scheduled":"Programados","sidebar.posts.posted":"Publicados","sidebar.posts.drafts":"Borradores","sidebar.account.settings":"Configuración","sidebar.account.usage":"Uso","sidebar.account.billing":"Facturación","sidebar.notifications":"Notificaciones","sidebar.mark_all_read":"Marcar todo como leído","sidebar.mark_as_read":"Marcar como leído","sidebar.archive_all":"Archivar todo","sidebar.no_notifications":"Sin notificaciones","sidebar.support.discord":"Discord","sidebar.support.share_feedback":"Dar feedback","sidebar.support.last_updates":"Últimas actualizaciones","sidebar.support.docs":"Documentación","usage.title":"Uso","usage.section_account":"Cuenta","usage.section_account_description":"Cuotas y límites de tu plan :plan.","usage.section_ai":"Generación AI","usage.section_ai_description":"Uso de generación de imágenes y videos AI del mes actual.","usage.section_data":"Datos","usage.section_data_description":"Retención de datos y almacenamiento de tu plan.","usage.workspaces":"Workspaces","usage.social_accounts":"Cuentas Sociales","usage.members":"Miembros","usage.ai_images":"Imágenes","usage.ai_videos":"Videos","usage.data_retention":"Retención de Datos","usage.unlimited":"Ilimitado","usage.days":"días","usage.year":"año","usage.years":"años","validation.accepted":"El campo :attribute debe ser aceptado.","validation.accepted_if":"El campo :attribute debe ser aceptado cuando :other es :value.","validation.active_url":"El campo :attribute debe ser una URL válida.","validation.after":"El campo :attribute debe ser una fecha posterior a :date.","validation.after_or_equal":"El campo :attribute debe ser una fecha posterior o igual a :date.","validation.alpha":"El campo :attribute solo puede contener letras.","validation.alpha_dash":"El campo :attribute solo puede contener letras, números, guiones y guiones bajos.","validation.alpha_num":"El campo :attribute solo puede contener letras y números.","validation.any_of":"El campo :attribute no es válido.","validation.array":"El campo :attribute debe ser un arreglo.","validation.ascii":"El campo :attribute solo puede contener caracteres alfanuméricos de un byte y símbolos.","validation.before":"El campo :attribute debe ser una fecha anterior a :date.","validation.before_or_equal":"El campo :attribute debe ser una fecha anterior o igual a :date.","validation.between.array":"El campo :attribute debe tener entre :min y :max elementos.","validation.between.file":"El campo :attribute debe pesar entre :min y :max kilobytes.","validation.between.numeric":"El campo :attribute debe estar entre :min y :max.","validation.between.string":"El campo :attribute debe tener entre :min y :max caracteres.","validation.boolean":"El campo :attribute debe ser verdadero o falso.","validation.can":"El campo :attribute contiene un valor no autorizado.","validation.confirmed":"La confirmación del campo :attribute no coincide.","validation.contains":"Al campo :attribute le falta un valor requerido.","validation.current_password":"La contraseña es incorrecta.","validation.date":"El campo :attribute debe ser una fecha válida.","validation.date_equals":"El campo :attribute debe ser una fecha igual a :date.","validation.date_format":"El campo :attribute debe coincidir con el formato :format.","validation.decimal":"El campo :attribute debe tener :decimal decimales.","validation.declined":"El campo :attribute debe ser rechazado.","validation.declined_if":"El campo :attribute debe ser rechazado cuando :other es :value.","validation.different":"El campo :attribute y :other deben ser diferentes.","validation.digits":"El campo :attribute debe tener :digits dígitos.","validation.digits_between":"El campo :attribute debe tener entre :min y :max dígitos.","validation.dimensions":"El campo :attribute tiene dimensiones de imagen no válidas.","validation.distinct":"El campo :attribute tiene un valor duplicado.","validation.doesnt_contain":"El campo :attribute no debe contener ninguno de los siguientes: :values.","validation.doesnt_end_with":"El campo :attribute no debe terminar con uno de los siguientes: :values.","validation.doesnt_start_with":"El campo :attribute no debe comenzar con uno de los siguientes: :values.","validation.email":"El campo :attribute debe ser un correo electrónico válido.","validation.encoding":"El campo :attribute debe estar codificado en :encoding.","validation.ends_with":"El campo :attribute debe terminar con uno de los siguientes: :values.","validation.enum":"El :attribute seleccionado no es válido.","validation.exists":"El :attribute seleccionado no es válido.","validation.extensions":"El campo :attribute debe tener una de las siguientes extensiones: :values.","validation.file":"El campo :attribute debe ser un archivo.","validation.filled":"El campo :attribute debe tener un valor.","validation.gt.array":"El campo :attribute debe tener más de :value elementos.","validation.gt.file":"El campo :attribute debe pesar más de :value kilobytes.","validation.gt.numeric":"El campo :attribute debe ser mayor que :value.","validation.gt.string":"El campo :attribute debe tener más de :value caracteres.","validation.gte.array":"El campo :attribute debe tener :value elementos o más.","validation.gte.file":"El campo :attribute debe pesar :value kilobytes o más.","validation.gte.numeric":"El campo :attribute debe ser mayor o igual a :value.","validation.gte.string":"El campo :attribute debe tener :value caracteres o más.","validation.hex_color":"El campo :attribute debe ser un color hexadecimal válido.","validation.image":"El campo :attribute debe ser una imagen.","validation.in":"El :attribute seleccionado no es válido.","validation.in_array":"El campo :attribute debe existir en :other.","validation.in_array_keys":"El campo :attribute debe contener al menos una de las siguientes claves: :values.","validation.integer":"El campo :attribute debe ser un número entero.","validation.ip":"El campo :attribute debe ser una dirección IP válida.","validation.ipv4":"El campo :attribute debe ser una dirección IPv4 válida.","validation.ipv6":"El campo :attribute debe ser una dirección IPv6 válida.","validation.json":"El campo :attribute debe ser una cadena JSON válida.","validation.list":"El campo :attribute debe ser una lista.","validation.lowercase":"El campo :attribute debe estar en minúsculas.","validation.lt.array":"El campo :attribute debe tener menos de :value elementos.","validation.lt.file":"El campo :attribute debe pesar menos de :value kilobytes.","validation.lt.numeric":"El campo :attribute debe ser menor que :value.","validation.lt.string":"El campo :attribute debe tener menos de :value caracteres.","validation.lte.array":"El campo :attribute no debe tener más de :value elementos.","validation.lte.file":"El campo :attribute debe pesar :value kilobytes o menos.","validation.lte.numeric":"El campo :attribute debe ser menor o igual a :value.","validation.lte.string":"El campo :attribute debe tener :value caracteres o menos.","validation.mac_address":"El campo :attribute debe ser una dirección MAC válida.","validation.max.array":"El campo :attribute no debe tener más de :max elementos.","validation.max.file":"El campo :attribute no debe pesar más de :max kilobytes.","validation.max.numeric":"El campo :attribute no debe ser mayor que :max.","validation.max.string":"El campo :attribute no debe tener más de :max caracteres.","validation.max_digits":"El campo :attribute no debe tener más de :max dígitos.","validation.mimes":"El campo :attribute debe ser un archivo de tipo: :values.","validation.mimetypes":"El campo :attribute debe ser un archivo de tipo: :values.","validation.min.array":"El campo :attribute debe tener al menos :min elementos.","validation.min.file":"El campo :attribute debe pesar al menos :min kilobytes.","validation.min.numeric":"El campo :attribute debe ser al menos :min.","validation.min.string":"El campo :attribute debe tener al menos :min caracteres.","validation.min_digits":"El campo :attribute debe tener al menos :min dígitos.","validation.missing":"El campo :attribute debe estar ausente.","validation.missing_if":"El campo :attribute debe estar ausente cuando :other es :value.","validation.missing_unless":"El campo :attribute debe estar ausente a menos que :other sea :value.","validation.missing_with":"El campo :attribute debe estar ausente cuando :values está presente.","validation.missing_with_all":"El campo :attribute debe estar ausente cuando :values están presentes.","validation.multiple_of":"El campo :attribute debe ser múltiplo de :value.","validation.not_in":"El :attribute seleccionado no es válido.","validation.not_regex":"El formato del campo :attribute no es válido.","validation.numeric":"El campo :attribute debe ser un número.","validation.password.letters":"El campo :attribute debe contener al menos una letra.","validation.password.mixed":"El campo :attribute debe contener al menos una letra mayúscula y una minúscula.","validation.password.numbers":"El campo :attribute debe contener al menos un número.","validation.password.symbols":"El campo :attribute debe contener al menos un símbolo.","validation.password.uncompromised":"El :attribute proporcionado ha aparecido en una filtración de datos. Elige un :attribute diferente.","validation.present":"El campo :attribute debe estar presente.","validation.present_if":"El campo :attribute debe estar presente cuando :other es :value.","validation.present_unless":"El campo :attribute debe estar presente a menos que :other sea :value.","validation.present_with":"El campo :attribute debe estar presente cuando :values está presente.","validation.present_with_all":"El campo :attribute debe estar presente cuando :values están presentes.","validation.prohibited":"El campo :attribute está prohibido.","validation.prohibited_if":"El campo :attribute está prohibido cuando :other es :value.","validation.prohibited_if_accepted":"El campo :attribute está prohibido cuando :other es aceptado.","validation.prohibited_if_declined":"El campo :attribute está prohibido cuando :other es rechazado.","validation.prohibited_unless":"El campo :attribute está prohibido a menos que :other esté en :values.","validation.prohibits":"El campo :attribute prohíbe que :other esté presente.","validation.regex":"El formato del campo :attribute no es válido.","validation.required":"El campo :attribute es obligatorio.","validation.required_array_keys":"El campo :attribute debe contener entradas para: :values.","validation.required_if":"El campo :attribute es obligatorio cuando :other es :value.","validation.required_if_accepted":"El campo :attribute es obligatorio cuando :other es aceptado.","validation.required_if_declined":"El campo :attribute es obligatorio cuando :other es rechazado.","validation.required_unless":"El campo :attribute es obligatorio a menos que :other esté en :values.","validation.required_with":"El campo :attribute es obligatorio cuando :values está presente.","validation.required_with_all":"El campo :attribute es obligatorio cuando :values están presentes.","validation.required_without":"El campo :attribute es obligatorio cuando :values no está presente.","validation.required_without_all":"El campo :attribute es obligatorio cuando ninguno de :values está presente.","validation.same":"El campo :attribute debe coincidir con :other.","validation.size.array":"El campo :attribute debe contener :size elementos.","validation.size.file":"El campo :attribute debe pesar :size kilobytes.","validation.size.numeric":"El campo :attribute debe ser :size.","validation.size.string":"El campo :attribute debe tener :size caracteres.","validation.starts_with":"El campo :attribute debe comenzar con uno de los siguientes: :values.","validation.string":"El campo :attribute debe ser una cadena de texto.","validation.timezone":"El campo :attribute debe ser una zona horaria válida.","validation.unique":"El :attribute ya ha sido registrado.","validation.uploaded":"El :attribute no se pudo subir.","validation.uppercase":"El campo :attribute debe estar en mayúsculas.","validation.url":"El campo :attribute debe ser una URL válida.","validation.ulid":"El campo :attribute debe ser un ULID válido.","validation.uuid":"El campo :attribute debe ser un UUID válido.","validation.custom.attribute-name.rule-name":"custom-message","workspaces.title":"Workspaces","workspaces.select_title":"Tus workspaces","workspaces.select_description":"Selecciona un workspace para continuar","workspaces.current":"Actual","workspaces.connections":":count conexiones","workspaces.posts":":count posts","workspaces.create.page_title":"Crea tu workspace","workspaces.create.title":"Configura tu workspace","workspaces.create.description":"Cuéntanos sobre tu marca. Lo usaremos para personalizar las publicaciones generadas por IA con tu voz.","workspaces.create.website":"Sitio web","workspaces.create.website_placeholder":"https://tumarca.com","workspaces.create.autofill":"Autocompletar desde el sitio","workspaces.create.autofill_missing_url":"Ingresa una URL primero.","workspaces.create.autofill_success":"Información de la marca cargada.","workspaces.create.autofill_error":"No se pudo autocompletar. Puedes llenar los campos manualmente.","workspaces.create.autofill_errors.unreachable":"No pudimos acceder a ese sitio web (:reason).","workspaces.create.autofill_errors.http_status":"El sitio web devolvió un estado inesperado (:status).","workspaces.create.autofill_errors.invalid_scheme":"Solo se admiten URLs http y https.","workspaces.create.autofill_errors.missing_host":"A la URL le falta un host.","workspaces.create.autofill_errors.unresolvable_host":"No pudimos resolver el host (:host).","workspaces.create.autofill_errors.private_network":"No se permiten URLs que apunten a redes privadas.","workspaces.create.logo_captured":"Logo capturado de tu sitio.","workspaces.create.name":"Nombre del workspace","workspaces.create.name_placeholder":"ej. Acme Inc","workspaces.create.brand_description":"Descripción de la marca","workspaces.create.brand_description_placeholder":"¿Qué hace tu marca?","workspaces.create.tone":"Tono de la marca","workspaces.create.tone_professional":"Profesional","workspaces.create.tone_casual":"Casual","workspaces.create.tone_friendly":"Amigable","workspaces.create.tone_bold":"Audaz","workspaces.create.tone_inspirational":"Inspirador","workspaces.create.tone_humorous":"Humorístico","workspaces.create.tone_educational":"Educativo","workspaces.create.content_language":"Idioma del contenido","workspaces.create.content_language_description":"Las descripciones generadas por IA se escribirán en este idioma.","workspaces.create.voice_notes":"Notas de voz (opcional)","workspaces.create.voice_notes_placeholder":"ej. frases cortas y directas. evita jerga.","workspaces.create.brand_color":"Color de marca","workspaces.create.background_color":"Color de fondo","workspaces.create.text_color":"Color de texto","workspaces.create.submit":"Crear workspace","workspaces.create.first_workspace_success":"Workspace creado. Conecta una cuenta social para empezar a publicar.","workspaces.create.success":"Workspace creado."}\ No newline at end of file+{"accounts.title":"Conexiones","accounts.page_title":"Cuentas Sociales","accounts.description":"Resumen de todas tus cuentas sociales conectadas","accounts.add_social":"Agregar Red Social","accounts.add_social_title":"Conectar una Cuenta Social","accounts.add_social_description":"Conecta una cuenta social a TryPost para empezar a publicar","accounts.no_accounts":"No hay cuentas conectadas todavía","accounts.no_accounts_description":"Conecta tus redes sociales para empezar a programar y publicar posts","accounts.no_search_results":"Ninguna cuenta coincide con tu búsqueda","accounts.try_different_search":"Prueba otra palabra clave o limpia la búsqueda.","accounts.search":"Buscar cuentas...","accounts.added":"Agregada :date","accounts.limit_reached":"Has alcanzado el límite de cuentas sociales de tu plan.","accounts.not_connected":"No conectado","accounts.connect":"Conectar","accounts.connection_lost":"Conexión perdida","accounts.reconnect_account":"Reconectar cuenta","accounts.view_profile":"Ver perfil","accounts.disconnect":"Desconectar","accounts.table.account":"Cuenta","accounts.table.platform":"Plataforma","accounts.table.status":"Estado","accounts.table.last_used":"Último uso","accounts.table.added":"Añadida","accounts.table.active":"Activa","accounts.never_used":"Nunca usada","accounts.status.connected":"Conectada","accounts.status.disconnected":"Desconectada","accounts.descriptions.linkedin":"Conecta tu perfil personal de LinkedIn","accounts.descriptions.linkedin-page":"Conecta una página de empresa de LinkedIn","accounts.descriptions.x":"Conecta tu cuenta de X (Twitter)","accounts.descriptions.tiktok":"Conecta tu cuenta de TikTok","accounts.descriptions.youtube":"Conecta un canal de YouTube","accounts.descriptions.facebook":"Conecta una página de Facebook","accounts.descriptions.instagram":"Conecta una cuenta profesional de Instagram","accounts.descriptions.instagram-facebook":"Conecta Instagram vía página de Facebook","accounts.descriptions.threads":"Conecta tu cuenta de Threads","accounts.descriptions.pinterest":"Conecta tu cuenta de Pinterest","accounts.descriptions.bluesky":"Conecta tu cuenta de Bluesky","accounts.descriptions.mastodon":"Conecta tu cuenta de Mastodon","accounts.disconnect_modal.title":"Desconectar cuenta","accounts.disconnect_modal.description":"¿Estás seguro de que deseas desconectar esta cuenta? Puedes volver a conectarla en cualquier momento.","accounts.disconnect_modal.confirm":"Desconectar","accounts.disconnect_modal.cancel":"Cancelar","accounts.bluesky.title":"Conectar Bluesky","accounts.bluesky.description":"Introduce tus credenciales para conectar","accounts.bluesky.email":"Correo electrónico","accounts.bluesky.email_placeholder":"tuusuario.bsky.social","accounts.bluesky.app_password":"Contraseña de app","accounts.bluesky.app_password_placeholder":"xxxx-xxxx-xxxx-xxxx","accounts.bluesky.app_password_hint":"Usa una <strong>Contraseña de App</strong> por seguridad. Crea una en <a href=\"https://bsky.app/settings/app-passwords\" target=\"_blank\" class=\"underline\">bsky.app/settings</a>.","accounts.bluesky.submit":"Conectar Bluesky","accounts.bluesky.submitting":"Conectando...","accounts.mastodon.title":"Conectar Mastodon","accounts.mastodon.description":"Introduce tu instancia de Mastodon","accounts.mastodon.instance_url":"URL de la instancia","accounts.mastodon.instance_placeholder":"https://mastodon.social","accounts.mastodon.instance_hint":"Introduce la URL de tu instancia de Mastodon (ej: mastodon.social, techhub.social)","accounts.mastodon.submit":"Continuar con Mastodon","accounts.mastodon.submitting":"Conectando...","accounts.facebook.title":"Seleccionar página de Facebook","accounts.facebook.description":"Elige qué página deseas conectar","accounts.facebook.no_pages":"No se encontraron páginas","accounts.facebook.no_pages_description":"No eres administrador de ninguna página de Facebook.","accounts.facebook.page_label":"Página de Facebook","accounts.instagram_facebook.title":"Seleccionar cuenta de Instagram","accounts.instagram_facebook.description":"Elige qué cuenta de Instagram deseas conectar","accounts.instagram_facebook.no_pages":"No se encontraron cuentas de Instagram","accounts.instagram_facebook.no_pages_description":"No se encontraron páginas de Facebook con cuentas Instagram Business vinculadas.","accounts.linkedin.title":"Seleccionar página de LinkedIn","accounts.linkedin.description":"Elige qué página deseas conectar","accounts.linkedin.no_pages":"No se encontraron páginas","accounts.linkedin.no_pages_description":"No eres administrador de ninguna página de LinkedIn.","accounts.linkedin.page_label":"Página de LinkedIn","accounts.flash.disconnected":"¡Cuenta desconectada correctamente!","accounts.flash.connected":"¡Cuenta conectada correctamente!","accounts.flash.session_expired":"Sesión expirada. Inténtalo de nuevo.","accounts.flash.workspace_not_found":"Workspace no encontrado.","accounts.flash.activated":"¡Cuenta activada!","accounts.flash.deactivated":"¡Cuenta desactivada!","accounts.flash.already_connected":"Esta plataforma ya está conectada.","accounts.flash.no_youtube_channels":"No se encontraron canales de YouTube. Crea un canal primero.","analytics.channels":"Canales","analytics.no_accounts":"No hay cuentas conectadas con analytics.","analytics.select_account":"Selecciona una cuenta para ver analytics.","analytics.no_data":"No hay datos de analytics disponibles.","assets.title":"Medios","assets.tabs.my_uploads":"Mis subidas","assets.tabs.stock_photos":"Fotos gratuitas","assets.tabs.gifs":"GIFs","assets.upload.drag_drop":"Arrastra y suelta tus archivos aquí o haz clic para seleccionar","assets.upload.formats":"JPEG, PNG, GIF, WebP, MP4","assets.upload.uploading":"Subiendo...","assets.empty.title":"Todavía no hay medios","assets.empty.description":"Sube imágenes y videos para construir tu biblioteca de medios.","assets.save_to_assets":"Guardar en la biblioteca","assets.saved":"¡Guardado en tu biblioteca!","assets.create_post":"Crear post","assets.add_to_post":"Agregar al post","assets.search_placeholder":"Buscar media...","assets.delete.title":"Eliminar medio","assets.delete.description":"¿Estás seguro de que deseas eliminar este medio? Esta acción no se puede deshacer.","assets.delete.confirm":"Eliminar","assets.delete.cancel":"Cancelar","assets.unsplash.search_placeholder":"Buscar fotos gratuitas...","assets.unsplash.no_results":"No se encontraron fotos","assets.unsplash.no_results_description":"Prueba con otro término de búsqueda.","assets.unsplash.trending":"Tendencias en Unsplash","assets.unsplash.start_searching":"Busca fotos gratuitas de Unsplash","assets.giphy.trending":"Tendencias en Giphy","assets.giphy.search_placeholder":"Buscar GIFs...","assets.giphy.no_results":"No se encontraron GIFs","assets.giphy.no_results_description":"Prueba con otro término de búsqueda.","assets.giphy.powered_by":"Powered by GIPHY","auth.failed":"Estas credenciales no coinciden con nuestros registros.","auth.password":"La contraseña proporcionada es incorrecta.","auth.throttle":"Demasiados intentos de inicio de sesión. Inténtalo de nuevo en :seconds segundos.","auth.flash.welcome":"¡Bienvenido a TryPost!","auth.flash.welcome_trial":"¡Bienvenido a TryPost! Tu prueba ha comenzado.","auth.legal":"Al continuar, aceptas nuestros <a href=\"https://trypost.it/terms\" target=\"_blank\">Términos de Servicio</a> y <a href=\"https://trypost.it/privacy\" target=\"_blank\">Política de Privacidad</a>.","auth.slides.calendar.title":"Calendario Visual","auth.slides.calendar.description":"Planifica y programa tu contenido con un calendario intuitivo de arrastrar y soltar en todas tus cuentas sociales.","auth.slides.scheduling.title":"Programación Inteligente","auth.slides.scheduling.description":"Programa posts en LinkedIn, X, Instagram, TikTok, YouTube y más — todo desde un solo lugar.","auth.slides.media.title":"Contenido Multimedia","auth.slides.media.description":"Publica imágenes, carruseles, historias y reels. Cada plataforma recibe el formato correcto automáticamente.","auth.slides.video.title":"Publicación de Video","auth.slides.video.description":"Sube videos una vez y publícalos en TikTok, YouTube Shorts, Instagram Reels y Facebook Reels.","auth.slides.team.title":"Workspaces en Equipo","auth.slides.team.description":"Invita a tu equipo, asigna roles y gestiona múltiples marcas en workspaces separados.","auth.slides.hashtags.title":"Grupos de Hashtags","auth.slides.hashtags.description":"Guarda colecciones de hashtags y agrégalos a tus posts con un clic. Organiza con etiquetas y filtros.","auth.or_continue_with":"O continuar con","auth.google_login":"Iniciar sesión con Google","auth.google_signup":"Registrarse con Google","auth.signup_success.page_title":"Bienvenido","auth.signup_success.title":"Configurando tu cuenta","auth.signup_success.description":"Esto suele tardar solo unos segundos...","auth.login.title":"Inicia sesión en tu cuenta","auth.login.description":"Introduce tu correo y contraseña para iniciar sesión","auth.login.page_title":"Iniciar sesión","auth.login.email":"Correo electrónico","auth.login.password":"Contraseña","auth.login.forgot_password":"¿Olvidaste tu contraseña?","auth.login.remember_me":"Recuérdame","auth.login.submit":"Iniciar sesión","auth.login.no_account":"¿No tienes una cuenta?","auth.login.sign_up":"Regístrate","auth.register.title":"Crear una cuenta","auth.register.description":"Introduce tus datos para crear tu cuenta","auth.register.page_title":"Registro","auth.register.name":"Nombre","auth.register.name_placeholder":"Nombre completo","auth.register.email":"Correo electrónico","auth.register.password":"Contraseña","auth.register.show_password":"Mostrar contraseña","auth.register.hide_password":"Ocultar contraseña","auth.register.submit":"Crear cuenta","auth.register.has_account":"¿Ya tienes una cuenta?","auth.register.log_in":"Iniciar sesión","auth.forgot_password.title":"Olvidé mi contraseña","auth.forgot_password.description":"Introduce tu correo para recibir un enlace de restablecimiento","auth.forgot_password.page_title":"Olvidé mi contraseña","auth.forgot_password.email":"Correo electrónico","auth.forgot_password.submit":"Enviar enlace de restablecimiento","auth.forgot_password.return_to":"O vuelve a","auth.forgot_password.log_in":"iniciar sesión","auth.reset_password.title":"Restablecer contraseña","auth.reset_password.description":"Introduce tu nueva contraseña","auth.reset_password.page_title":"Restablecer contraseña","auth.reset_password.email":"Correo electrónico","auth.reset_password.password":"Contraseña","auth.reset_password.confirm_password":"Confirmar contraseña","auth.reset_password.confirm_placeholder":"Confirmar contraseña","auth.reset_password.submit":"Restablecer contraseña","auth.verify_email.title":"Verificar correo","auth.verify_email.description":"Verifica tu correo electrónico haciendo clic en el enlace que acabamos de enviarte.","auth.verify_email.page_title":"Verificación de correo","auth.verify_email.link_sent":"Se ha enviado un nuevo enlace de verificación al correo electrónico proporcionado durante el registro.","auth.verify_email.resend":"Reenviar correo de verificación","auth.verify_email.log_out":"Cerrar sesión","auth.accept_invite.page_title":"Aceptar invitación","auth.accept_invite.title":"¡Has sido invitado!","auth.accept_invite.description":"Has sido invitado a unirte al workspace :workspace.","auth.accept_invite.workspace":"Workspace","auth.accept_invite.your_role":"Tu rol","auth.accept_invite.email":"Correo electrónico","auth.accept_invite.accept":"Aceptar invitación","auth.accept_invite.decline":"Rechazar invitación","auth.accept_invite.login_prompt":"Inicia sesión o crea una cuenta para aceptar esta invitación.","auth.accept_invite.log_in":"Iniciar sesión","auth.accept_invite.create_account":"Crear cuenta","billing.title":"Suscripción","billing.description":"Administra tu suscripción y método de pago","billing.subscribe.page_title":"Comienza tu prueba gratuita","billing.subscribe.title":"Comienza tu prueba gratuita","billing.subscribe.description":":days días gratis para explorar todas las funciones.","billing.subscribe.start_trial":"Comenzar prueba de :days días","billing.subscribe.cancel_anytime":"Cancela en cualquier momento. Sin preguntas.","billing.subscribe.switch_workspace":"Cambiar workspace","billing.subscribe.features.calendar":"Calendario visual con arrastrar y soltar","billing.subscribe.features.scheduling":"Programación ilimitada de posts","billing.subscribe.features.media":"Imágenes, carruseles e historias","billing.subscribe.features.video":"Publicación de videos en todas las plataformas","billing.subscribe.features.team":"Colaboración en equipo y workspaces","billing.subscribe.features.hashtags":"Grupos de hashtags y etiquetas","billing.trial.title":"Periodo de prueba activo","billing.trial.description":"Tu prueba termina el :date. Después, tu suscripción se cobrará automáticamente.","billing.subscription.title":"Tu suscripción","billing.subscription.status":"Estado","billing.subscription.workspaces":"Workspaces","billing.subscription.quantity":"Cantidad de suscripción","billing.subscription.expires":"Expira :date","billing.subscription.canceled_on":"Tu suscripción se cancelará el :date","billing.subscription.manage":"Administrar en Stripe","billing.invoices.title":"Facturas","billing.invoices.description":"Historial de pagos","billing.invoices.empty":"No se encontraron facturas","billing.invoices.paid":"Pagado","billing.processing.page_title":"Procesando...","billing.processing.title":"Procesando tu suscripción","billing.processing.description":"Espera mientras configuramos tu cuenta. Solo tomará un momento.","billing.processing.success_title":"¡Todo listo!","billing.processing.success_description":"Tu suscripción está activa. Redirigiendo a tus workspaces...","billing.processing.cancelled_title":"Pago cancelado","billing.processing.cancelled_description":"Tu pago fue cancelado. No se realizaron cargos.","billing.processing.retry":"Intentar de nuevo","billing.status.active":"Activa","billing.status.canceled":"Cancelada","billing.status.incomplete":"Incompleta","billing.status.incomplete_expired":"Expirada","billing.status.past_due":"Vencida","billing.status.trialing":"Prueba","billing.status.unpaid":"Sin pagar","brands.new_brand":"Nueva Marca","brands.no_brands_yet":"No hay marcas todavía","brands.no_brands_description":"Crea marcas para organizar tus cuentas de redes sociales por cliente o proyecto","brands.accounts_count":":count cuentas","brands.create.title":"Crear Marca","brands.create.description":"Dale un nombre a tu marca para agrupar cuentas de redes sociales","brands.create.name":"Nombre de la Marca","brands.create.name_placeholder":"ej. Acme Corp, Personal","brands.create.submit":"Crear Marca","brands.create.submitting":"Creando...","brands.edit.title":"Editar Marca","brands.edit.description":"Actualiza el nombre de esta marca","brands.edit.name":"Nombre de la Marca","brands.edit.name_placeholder":"ej. Acme Corp, Personal","brands.edit.submit":"Guardar Cambios","brands.edit.submitting":"Guardando...","brands.delete.title":"Eliminar Marca","brands.delete.description":"¿Estás seguro de que deseas eliminar esta marca? Las cuentas de redes sociales se desasignarán pero no se eliminarán.","brands.delete.confirm":"Eliminar","brands.delete.cancel":"Cancelar","brands.flash.created":"¡Marca creada con éxito!","brands.flash.updated":"¡Marca actualizada con éxito!","brands.flash.deleted":"¡Marca eliminada con éxito!","calendar.title":"Calendario","calendar.today":"Hoy","calendar.day":"Día","calendar.week":"Semana","calendar.month":"Mes","calendar.new_post":"Nuevo post","calendar.no_content":"Sin contenido","calendar.more":"+:count más","comments.placeholder":"Escribe un comentario...","comments.reply_placeholder":"Escribe una respuesta...","comments.reply":"Responder","comments.edit":"Editar","comments.delete":"Eliminar","comments.edited":"editado","comments.save":"Guardar","comments.cancel":"Cancelar","comments.send":"Enviar","comments.replying_to":"Respondiendo a :name","comments.empty":"Todavía no hay comentarios. Inicia la conversación.","comments.load_more":"Cargar comentarios anteriores","common.confirm_modal.cannot_be_undone":"Esta acción no se puede deshacer.","common.confirm_modal.type":"Escribe","common.confirm_modal.to_confirm":"para confirmar.","common.confirm_modal.copy_to_clipboard":"Copiar al portapapeles","common.photo_upload.upload":"Subir","common.photo_upload.uploading":"Subiendo...","common.photo_upload.remove":"Eliminar foto","common.photo_upload.hint":"Recomendado: imagen cuadrada, máximo 2 MB.","common.timezone.select":"Seleccionar zona horaria","common.timezone.search":"Buscar zona horaria...","common.timezone.empty":"No se encontró zona horaria","common.date_picker.select":"Seleccionar fecha","common.cancel":"Cancelar","common.loading_more":"Cargando más...","hashtags.title":"Hashtags","hashtags.description":"Crea grupos de hashtags para agregarlos rápidamente a tus posts","hashtags.search":"Buscar hashtags...","hashtags.new_group":"Nuevo grupo","hashtags.no_groups_yet":"Aún no hay grupos de hashtags","hashtags.no_groups_description":"Crea grupos de hashtags para agregar rápidamente hashtags populares a tus posts","hashtags.no_search_results":"Ningún grupo coincide con tu búsqueda","hashtags.try_different_search":"Prueba otra palabra clave o limpia la búsqueda.","hashtags.create_first_group":"Crea tu primer grupo","hashtags.hashtags_count":":count hashtags","hashtags.table.name":"Nombre","hashtags.table.tags":"Hashtags","hashtags.table.count":"Cantidad","hashtags.table.created_at":"Creado","hashtags.create.title":"Crear grupo de hashtags","hashtags.create.description":"Dale un nombre a tu grupo y agrega hashtags separados por espacios o comas","hashtags.create.name":"Nombre del grupo","hashtags.create.name_placeholder":"ej: Marketing, Viajes, Comida","hashtags.create.hashtags":"Hashtags","hashtags.create.hashtags_placeholder":"#marketing #redessociales #negocios #crecimiento","hashtags.create.hashtags_hint":"Ingresa hashtags separados por espacios o comas. Incluye el símbolo #.","hashtags.create.submit":"Crear grupo","hashtags.create.submitting":"Creando...","hashtags.edit.title":"Editar grupo de hashtags","hashtags.edit.description":"Actualiza el nombre y los hashtags de este grupo","hashtags.edit.name":"Nombre del grupo","hashtags.edit.name_placeholder":"ej: Marketing, Viajes, Comida","hashtags.edit.hashtags":"Hashtags","hashtags.edit.hashtags_placeholder":"#marketing #redessociales #negocios #crecimiento","hashtags.edit.hashtags_hint":"Ingresa hashtags separados por espacios o comas. Incluye el símbolo #.","hashtags.edit.submit":"Guardar cambios","hashtags.edit.submitting":"Guardando...","hashtags.delete.title":"Eliminar grupo de hashtags","hashtags.delete.description":"¿Estás seguro de que deseas eliminar este grupo de hashtags? Esta acción no se puede deshacer.","hashtags.delete.confirm":"Eliminar","hashtags.delete.cancel":"Cancelar","hashtags.flash.created":"¡Grupo de hashtags creado correctamente!","hashtags.flash.updated":"¡Grupo de hashtags actualizado correctamente!","hashtags.flash.deleted":"¡Grupo de hashtags eliminado correctamente!","labels.title":"Etiquetas","labels.description":"Crea etiquetas para organizar y categorizar tus posts","labels.search":"Buscar etiquetas...","labels.new_label":"Nueva etiqueta","labels.no_labels_yet":"Aún no hay etiquetas","labels.no_search_results":"Ninguna etiqueta coincide con tu búsqueda","labels.try_different_search":"Prueba otra palabra clave o limpia la búsqueda.","labels.create_first_label":"Crea tu primera etiqueta","labels.table.name":"Nombre","labels.table.created_at":"Creado","labels.create.title":"Crear etiqueta","labels.create.description":"Dale un nombre y elige un color para tu etiqueta","labels.create.name":"Nombre","labels.create.name_placeholder":"Nombre de la etiqueta...","labels.create.color":"Color","labels.create.submit":"Crear etiqueta","labels.create.submitting":"Creando...","labels.edit.title":"Editar etiqueta","labels.edit.description":"Actualiza el nombre y el color de esta etiqueta","labels.edit.name":"Nombre","labels.edit.name_placeholder":"Nombre de la etiqueta...","labels.edit.color":"Color","labels.edit.submit":"Guardar cambios","labels.edit.submitting":"Guardando...","labels.delete.title":"Eliminar etiqueta","labels.delete.description":"¿Estás seguro de que deseas eliminar esta etiqueta? Esta acción no se puede deshacer.","labels.delete.confirm":"Eliminar","labels.delete.cancel":"Cancelar","labels.flash.created":"¡Etiqueta creada correctamente!","labels.flash.updated":"¡Etiqueta actualizada correctamente!","labels.flash.deleted":"¡Etiqueta eliminada correctamente!","mail.mentioned.subject":":name te mencionó en TryPost","mail.mentioned.title":":name te mencionó","mail.mentioned.intro":":name te mencionó en un comentario.","mail.mentioned.cta":"Ver comentario","mail.workspace_connections_disconnected.subject":"{1} :count cuenta necesita ser reconectada en :workspace|[2,*] :count cuentas necesitan ser reconectadas en :workspace","mail.workspace_connections_disconnected.title":"Cuentas necesitan reconexión","mail.workspace_connections_disconnected.intro":"Las siguientes cuentas sociales en tu workspace <strong>:workspace</strong> se han desconectado y necesitan ser reconectadas:","mail.workspace_connections_disconnected.reasons_title":"Esto puede haber ocurrido porque:","mail.workspace_connections_disconnected.reason_expired":"Los tokens de acceso expiraron","mail.workspace_connections_disconnected.reason_revoked":"Revocaste el acceso a TryPost en la plataforma","mail.workspace_connections_disconnected.reason_changed":"La plataforma cambió sus requisitos de autenticación","mail.workspace_connections_disconnected.reconnect_cta":"Reconecta estas cuentas para seguir programando y publicando posts.","mail.workspace_connections_disconnected.button":"Reconectar cuentas","pagination.previous":"« Anterior","pagination.next":"Siguiente »","passwords.reset":"Tu contraseña ha sido restablecida.","passwords.sent":"Te hemos enviado un enlace para restablecer tu contraseña.","passwords.throttled":"Espera antes de intentarlo de nuevo.","passwords.token":"Este token de restablecimiento de contraseña no es válido.","passwords.user":"No encontramos un usuario con ese correo electrónico.","posts.title":"Posts","posts.search":"Buscar posts...","posts.all_posts":"Todos los posts","posts.new_post":"Nuevo post","posts.no_posts":"No se encontraron posts","posts.no_search_results":"Ningún post coincide con tu búsqueda","posts.try_different_search":"Prueba otra palabra clave o limpia la búsqueda.","posts.start_creating":"Empieza creando tu primer post.","posts.table.status":"Estado","posts.table.content":"Contenido","posts.table.platforms":"Plataformas","posts.table.labels":"Etiquetas","posts.table.scheduled_at":"Fecha","posts.table.actions":"","posts.manage_posts":"Administra todos tus posts","posts.delete_confirm":"¿Estás seguro de que deseas eliminar este post?","posts.by":"por","posts.actions.view":"Ver post","posts.actions.delete":"Eliminar post","posts.form.post_type":"Tipo de post","posts.form.board":"Tablero","posts.form.select_board":"Seleccionar tablero","posts.form.search_board":"Buscar tablero...","posts.form.no_board_found":"No se encontró tablero","posts.form.media":"Multimedia","posts.form.min":"Min","posts.form.uploading":"Subiendo...","posts.form.drop_to_upload":"Suelta para subir","posts.form.drag_and_drop":"Arrastra y suelta o haz clic para subir","posts.form.photos_and_videos":"Fotos y videos","posts.form.photos_only":"Solo fotos","posts.form.videos_only":"Solo videos","posts.form.drag_to_reorder":"Arrastra para reordenar","posts.form.caption":"Descripción","posts.form.write_caption":"Escribe tu descripción...","posts.form.tiktok.settings":"Configuración de TikTok","posts.form.tiktok.posting_to":"Publicando en","posts.form.tiktok.privacy_level":"¿Quién puede ver este video?","posts.form.tiktok.privacy_placeholder":"Selecciona la visibilidad","posts.form.tiktok.privacy.public":"Público para todos","posts.form.tiktok.privacy.friends":"Amigos mutuos","posts.form.tiktok.privacy.followers":"Seguidores","posts.form.tiktok.privacy.private":"Solo yo","posts.form.tiktok.privacy_hint":"Las opciones disponibles dependen de la configuración de tu cuenta de TikTok.","posts.form.tiktok.auto_add_music":"Agregar música automáticamente","posts.form.tiktok.auto_add_music_hint":"Disponible solo para fotos. Agrega una música predeterminada que puedes cambiar después.","posts.form.tiktok.yes":"Sí","posts.form.tiktok.no":"No","posts.form.tiktok.allow_users":"Permitir a los usuarios:","posts.form.tiktok.comments":"Comentar","posts.form.tiktok.duet":"Dueto","posts.form.tiktok.stitch":"Stitch","posts.form.tiktok.is_aigc":"Video hecho con IA","posts.form.tiktok.disclose":"Divulgar contenido del video","posts.form.tiktok.disclose_hint":"Activa para divulgar que este video promueve bienes o servicios a cambio de algo de valor. Tu video puede promocionarte a ti, a un tercero o ambos.","posts.form.tiktok.promotional_organic_title":"Tu foto/video será etiquetado como \"Contenido Promocional\".","posts.form.tiktok.promotional_paid_title":"Tu foto/video será etiquetado como \"Asociación pagada\".","posts.form.tiktok.promotional_description":"Esto no se puede cambiar una vez publicado el video.","posts.form.tiktok.compliance_incomplete":"Debes indicar si tu contenido promociona a ti mismo, a un tercero o a ambos.","posts.form.tiktok.branded_blocks_private":"El contenido patrocinado no puede ser privado. Elige Público o Amigos mutuos.","posts.form.tiktok.interaction_disabled_by_creator":"Desactivado por la configuración de tu cuenta TikTok.","posts.form.tiktok.max_duration_exceeded":"El video dura :duration s pero esta cuenta solo permite videos de hasta :max s.","posts.form.tiktok.creator_info_loading":"Cargando la configuración de tu cuenta TikTok…","posts.form.tiktok.processing_hint":"Después de publicar, puede tardar unos minutos en procesarse y aparecer en tu perfil de TikTok.","posts.form.tiktok.brand_organic":"Tu marca","posts.form.tiktok.brand_organic_hint":"Estás promocionándote a ti mismo o a tu propia marca. Este video será clasificado como Brand Organic.","posts.form.tiktok.brand_content":"Contenido patrocinado","posts.form.tiktok.brand_content_hint":"Estás promocionando otra marca o a un tercero. Este video será clasificado como Branded Content.","posts.form.tiktok.compliance.agree":"Al publicar, aceptas la","posts.form.tiktok.compliance.music_usage":"Confirmación de Uso de Música","posts.form.tiktok.compliance.and":"y la","posts.form.tiktok.compliance.branded_policy":"Política de Contenido Patrocinado","posts.form.instagram.settings":"Configuración de Instagram","posts.form.instagram.posting_to":"Publicando en","posts.form.instagram.variant_label":"Tipo de publicación","posts.form.instagram.variant.feed":"Publicación","posts.form.instagram.variant.reel":"Reel","posts.form.instagram.variant.story":"Historia","posts.form.instagram.aspect_label":"Proporción","posts.form.instagram.aspect.square":"Cuadrado (1:1)","posts.form.instagram.aspect.portrait":"Vertical (4:5)","posts.form.instagram.aspect.landscape":"Horizontal (16:9)","posts.form.instagram.aspect.original":"Original","posts.form.facebook.settings":"Configuración de Facebook","posts.form.facebook.posting_to":"Publicando en","posts.form.facebook.variant_label":"Tipo de publicación","posts.form.facebook.variant.post":"Publicación","posts.form.facebook.variant.reel":"Reel","posts.form.facebook.variant.story":"Historia","posts.form.linkedin.settings":"Configuración de LinkedIn","posts.form.linkedin.settings_page":"Configuración de la Página de LinkedIn","posts.form.linkedin.posting_to":"Publicando en","posts.form.linkedin.variant_label":"Tipo de publicación","posts.form.linkedin.variant.post":"Publicación","posts.form.linkedin.variant.carousel":"Carrusel","posts.form.pinterest.settings":"Configuración de Pinterest","posts.form.pinterest.posting_to":"Publicando en","posts.form.pinterest.variant_label":"Tipo de pin","posts.form.pinterest.variant.pin":"Pin","posts.form.pinterest.variant.video_pin":"Video Pin","posts.form.pinterest.variant.carousel":"Carrusel","posts.form.warnings.no_variant":"Elige un tipo de publicación para continuar.","posts.form.warnings.requires_media":"Este tipo requiere al menos una imagen o video.","posts.form.warnings.max_files_exceeded":"Este tipo acepta hasta :max archivos (tienes :current).","posts.form.warnings.min_files_required":"Este tipo requiere al menos :min archivos (tienes :current).","posts.form.warnings.no_video_allowed":"Este tipo no acepta videos.","posts.form.warnings.no_image_allowed":"Este tipo acepta solo videos.","posts.form.warnings.gif_not_allowed":"Esta red no acepta GIF. Elimínalo o selecciona otra red.","posts.form.warnings.image_too_large":"La imagen supera el límite de :max (la tuya es :current).","posts.form.warnings.video_too_large":"El video supera el límite de :max (el tuyo es :current).","posts.form.warnings.video_too_long":"El video dura :current, pero este tipo permite hasta :max.","posts.form.warnings.aspect_ratio_too_narrow":"La proporción :current es demasiado alta (mínimo :min).","posts.form.warnings.aspect_ratio_too_wide":"La proporción :current es demasiado ancha (máximo :max).","posts.status.pending":"Pendiente","posts.status.draft":"Borrador","posts.status.scheduled":"Programado","posts.status.publishing":"Publicando","posts.status.published":"Publicado","posts.status.partially_published":"Parcialmente publicado","posts.status.failed":"Fallido","posts.descriptions.draft":"Posts esperando ser programados","posts.descriptions.scheduled":"Posts programados para publicar","posts.descriptions.published":"Posts ya publicados","posts.ai.generate.button_tooltip":"Generar con IA","posts.ai.generate.title":"Generar post con IA","posts.ai.generate.description":"Describe sobre qué debe ser el post. La IA usará el contexto de tu marca para escribirlo.","posts.ai.generate.prompt_label":"¿De qué trata este post?","posts.ai.generate.prompt_placeholder":"ej: anunciar nuestra nueva función de generación de imágenes para carruseles","posts.ai.generate.preview_label":"Vista previa","posts.ai.generate.start":"Generar","posts.ai.generate.apply":"Usar este contenido","posts.ai.generate.retry":"Intentar de nuevo","posts.ai.generate.cancel":"Cancelar","posts.ai.review.button_tooltip":"Revisar con IA","posts.ai.review.title":"Revisar post con IA","posts.ai.review.description":"La IA busca errores de gramática, ortografía y claridad. Aplica las sugerencias una a una.","posts.ai.review.loading":"Revisando tu texto...","posts.ai.review.no_issues":"No se encontraron problemas. Todo bien.","posts.ai.review.original":"Original","posts.ai.review.suggestion":"Sugerencia","posts.ai.review.apply":"Aplicar","posts.ai.review.applied":"Aplicado","posts.ai.review.close":"Cerrar","posts.show.title":"Detalles del post","posts.show.edit":"Editar","posts.show.no_content":"Sin texto","posts.show.platforms":"Plataformas","posts.show.no_platforms":"Ninguna plataforma seleccionada.","posts.show.view_on_platform":"Ver en la plataforma","posts.show.published_on":"Publicado el :date","posts.show.scheduled_for":"Programado para el :date","posts.show.draft":"Borrador","posts.show.status_pending":"Pendiente","posts.show.metrics":"Métricas","posts.show.metrics_loading":"Cargando métricas…","posts.show.metrics_unavailable":"Métricas aún no disponibles para esta plataforma.","posts.show.metrics_empty":"No se devolvieron métricas.","posts.show.summary.platforms":"Plataformas","posts.show.summary.published":"Publicado","posts.show.summary.failed":"Falló","posts.edit.title":"Editar post","posts.edit.view_title":"Ver post","posts.edit.manage_platforms":"Administrar plataformas","posts.edit.sync":"Sincronizar","posts.edit.labels":"Etiquetas","posts.edit.hashtags":"Hashtags","posts.edit.schedule":"Programar","posts.edit.publish":"Publicar","posts.edit.delete":"Eliminar","posts.edit.settings":"Configuración","posts.edit.schedule_for":"Programar para","posts.edit.scheduled_for":"Programado para","posts.edit.saving":"Guardando...","posts.edit.saved":"Guardado","posts.edit.draft":"Borrador","posts.edit.scheduled_at":"Programado:","posts.edit.published_at":"Publicado:","posts.edit.media":"Multimedia","posts.edit.add_media":"Añadir media","posts.edit.caption":"Descripción","posts.edit.caption_placeholder":"Escribe tu descripción...","posts.edit.compose_title":"Crear un post","posts.edit.compose_subtitle":"Compón tu mensaje y agrega media","posts.edit.preview_empty.title":"Ninguna plataforma seleccionada","posts.edit.preview_empty.description":"Selecciona una plataforma para publicar y ver la vista previa.","posts.edit.drag_drop":"Suelta los archivos para subir","posts.edit.drag_drop_hint":"Arrastra archivos aquí o usa los botones de arriba","posts.edit.drop_zone_title":"Añadir media","posts.edit.drop_zone_subtitle":"Arrastra archivos o haz clic para seleccionar","posts.edit.add":"Añadir","posts.edit.publish_to":"Publicar en","posts.edit.organize":"Organizar","posts.edit.no_caption":"Sin descripción","posts.edit.no_content":"Sin contenido","posts.edit.no_labels":"Todavía no hay etiquetas creadas","posts.edit.pick_time":"Elegir hora","posts.edit.post_now":"Publicar ahora","posts.edit.time":"Hora","posts.edit.cancel":"Cancelar","posts.edit.schedule_date":"Fecha de programación","posts.edit.view_on_platform":"Ver en la plataforma","posts.edit.platform_status":"Estado de la plataforma","posts.edit.compliance_incomplete":"Algunas configuraciones de plataforma están incompletas o son incompatibles con los medios adjuntos.","posts.edit.compliance.requires_media":"Agrega una imagen o video para publicar aquí.","posts.edit.compliance.too_many_files":"Solo se permiten :max archivo(s) en este formato.","posts.edit.compliance.too_few_files":"Agrega al menos :min archivos para este formato.","posts.edit.compliance.no_videos":"Solo se permiten imágenes en este formato.","posts.edit.compliance.no_images":"Solo se permiten videos en este formato.","posts.edit.compliance.no_gifs":"Los GIFs no son compatibles aquí.","posts.edit.compliance.video_too_large":"El video supera el límite de tamaño de esta plataforma.","posts.edit.compliance.video_too_long":"El video debe durar menos de :seconds segundos en este formato.","posts.edit.compliance.image_too_large":"La imagen supera el límite de tamaño de esta plataforma.","posts.edit.compliance.aspect_ratio_invalid":"La proporción de aspecto no es compatible con este formato.","posts.edit.compliance.no_content_type":"Elige un tipo de contenido para esta plataforma.","posts.edit.publishing":"Publicando...","posts.edit.publishing_overlay_title":"Tu publicación se está enviando","posts.edit.publishing_overlay_subtitle":"Esto puede tardar unos momentos. Puedes salir de esta página sin problemas.","posts.edit.tabs.preview":"Vista previa","posts.edit.tabs.schedule":"Programación","posts.edit.tabs.comments":"Comentarios","posts.edit.tabs.comments_empty":"Todavía no hay comentarios.","posts.edit.media_picker.title":"Elegir de la galería","posts.edit.media_picker.search":"Buscar media...","posts.edit.media_picker.empty":"Aún no hay archivos en tu galería","posts.edit.media_picker.cancel":"Cancelar","posts.edit.media_picker.add":"Agregar","posts.edit.media_picker.add_count":"Agregar :count","posts.edit.emoji_picker.search":"Buscar emoji","posts.edit.emoji_picker.empty":"No se encontraron emojis","posts.edit.emoji_picker.recent":"Usados con frecuencia","posts.edit.emoji_picker.smileys":"Caritas y emociones","posts.edit.emoji_picker.people":"Personas y cuerpo","posts.edit.emoji_picker.nature":"Animales y naturaleza","posts.edit.emoji_picker.food":"Comida y bebida","posts.edit.emoji_picker.activities":"Actividades","posts.edit.emoji_picker.travel":"Viajes y lugares","posts.edit.emoji_picker.objects":"Objetos","posts.edit.emoji_picker.symbols":"Símbolos","posts.edit.emoji_picker.flags":"Banderas","posts.edit.status.published":"Publicado","posts.edit.status.publishing":"Publicando...","posts.edit.status.failed":"Fallido","posts.edit.empty_state.title":"No hay plataformas seleccionadas","posts.edit.empty_state.description":"Selecciona al menos una plataforma para crear tu post","posts.edit.delete_modal.title":"Eliminar post","posts.edit.delete_modal.description":"¿Estás seguro de que deseas eliminar este post? Esta acción no se puede deshacer.","posts.edit.delete_modal.action":"Eliminar","posts.edit.delete_modal.cancel":"Cancelar","posts.edit.sync_enable.title":"¿Activar sincronización?","posts.edit.sync_enable.description":"Todas las plataformas compartirán el mismo contenido. Las ediciones personalizadas realizadas en plataformas individuales serán reemplazadas con el contenido actual.","posts.edit.sync_enable.cancel":"Cancelar","posts.edit.sync_enable.action":"Activar sincronización","posts.edit.sync_disable.title":"¿Desactivar sincronización?","posts.edit.sync_disable.description":"Cada plataforma mantendrá su contenido actual, pero las ediciones futuras solo se aplicarán a la plataforma que estés editando.","posts.edit.sync_disable.customize_note":"Podrás personalizar el contenido de cada plataforma individualmente.","posts.edit.sync_disable.cancel":"Cancelar","posts.edit.sync_disable.action":"Desactivar sincronización","posts.edit.platforms_dialog.title":"Seleccionar plataformas","posts.edit.platforms_dialog.description":"Elige en qué plataformas publicar este post.","posts.edit.hashtags_modal.search":"Buscar hashtags...","posts.edit.hashtags_modal.no_results":"No se encontraron hashtags.","posts.edit.validation.select_board":"Selecciona un tablero","posts.edit.validation.images_not_supported":"Imágenes no soportadas","posts.edit.validation.videos_not_supported":"Videos no soportados","posts.edit.validation.max_images":"Máximo :count imágenes","posts.edit.validation.requires_media":"Requiere multimedia","posts.edit.validation.requires_content":"Se requiere texto","posts.edit.validation.exceeded":":count excedido","posts.edit.validation.does_not_support_images":":platform no soporta imágenes","posts.edit.validation.supports_up_to_images":":platform soporta hasta :count imágenes","posts.edit.validation.does_not_support_videos":":platform no soporta videos","posts.content_types.instagram_feed.label":"Post del feed","posts.content_types.instagram_feed.description":"Aparece en tu feed y perfil","posts.content_types.instagram_reel.label":"Reel","posts.content_types.instagram_reel.description":"Video corto de hasta 90 segundos","posts.content_types.instagram_story.label":"Historia","posts.content_types.instagram_story.description":"Desaparece después de 24 horas","posts.content_types.linkedin_post.label":"Post","posts.content_types.linkedin_post.description":"Post estándar con texto y multimedia","posts.content_types.linkedin_carousel.label":"Carrusel","posts.content_types.linkedin_carousel.description":"Imágenes deslizables","posts.content_types.linkedin_page_post.label":"Post","posts.content_types.linkedin_page_post.description":"Post estándar con texto y multimedia","posts.content_types.linkedin_page_carousel.label":"Carrusel","posts.content_types.linkedin_page_carousel.description":"Imágenes deslizables","posts.content_types.facebook_post.label":"Post","posts.content_types.facebook_post.description":"Post estándar en tu página","posts.content_types.facebook_reel.label":"Reel","posts.content_types.facebook_reel.description":"Video corto de hasta 90 segundos","posts.content_types.facebook_story.label":"Historia","posts.content_types.facebook_story.description":"Desaparece después de 24 horas","posts.content_types.tiktok_video.label":"Video","posts.content_types.tiktok_video.description":"Contenido de video corto","posts.content_types.youtube_short.label":"Short","posts.content_types.youtube_short.description":"Video vertical de hasta 60 segundos","posts.content_types.x_post.label":"Post","posts.content_types.x_post.description":"Tweet con texto y multimedia","posts.content_types.threads_post.label":"Post","posts.content_types.threads_post.description":"Post de texto con multimedia opcional","posts.content_types.pinterest_pin.label":"Pin","posts.content_types.pinterest_pin.description":"Pin de imagen con enlace","posts.content_types.pinterest_video_pin.label":"Pin de video","posts.content_types.pinterest_video_pin.description":"Contenido de video","posts.content_types.pinterest_carousel.label":"Carrusel","posts.content_types.pinterest_carousel.description":"2-5 imágenes","posts.content_types.bluesky_post.label":"Post","posts.content_types.bluesky_post.description":"Post de texto con imágenes opcionales","posts.content_types.mastodon_post.label":"Post","posts.content_types.mastodon_post.description":"Post de texto con multimedia opcional","posts.platforms.linkedin":"LinkedIn","posts.platforms.linkedin-page":"Página de LinkedIn","posts.platforms.x":"X","posts.platforms.tiktok":"TikTok","posts.platforms.youtube":"YouTube Shorts","posts.platforms.facebook":"Página de Facebook","posts.platforms.instagram":"Instagram","posts.platforms.threads":"Threads","posts.platforms.pinterest":"Pinterest","posts.platforms.bluesky":"Bluesky","posts.platforms.mastodon":"Mastodon","posts.flash.scheduled":"¡Post programado correctamente!","posts.flash.publishing":"¡El post se está publicando! Puede tardar unos minutos en procesarse y aparecer en cada plataforma.","posts.flash.deleted":"¡Post eliminado correctamente!","posts.flash.cannot_edit_published":"Los posts publicados no se pueden editar.","posts.flash.cannot_delete_published":"Los posts publicados no se pueden eliminar.","posts.flash.connect_first":"Conecta al menos una red social antes de crear un post.","posts.errors.account_disconnected":"Cuenta social desconectada","posts.errors.account_inactive":"Cuenta social desactivada","posts.create.title":"Crear nuevo post","posts.create.description":"Elige cómo quieres empezar.","posts.create.scratch_title":"Empezar desde cero","posts.create.scratch_description":"Abre un post en blanco para escribirlo todo.","posts.create.ai_title":"Generar con IA","posts.create.ai_description":"Describe lo que quieres y la IA genera el contenido por ti.","posts.create.ai_configure_description":"Elige un formato y describe el post que quieres crear.","posts.create.template_title":"Usar una plantilla","posts.create.template_description":"Elige una de nuestras plantillas y personalízala.","posts.create.coming_soon":"Próximamente","posts.create.steps.format_title":"Elige un formato","posts.create.steps.format_description":"Selecciona el tipo de post que quieres crear.","posts.create.steps.account_title":"Elige una cuenta","posts.create.steps.account_description":"Selecciona la cuenta social donde publicar.","posts.create.steps.media_title":"Opciones de medios","posts.create.steps.media_carousel":"¿Cuántas diapositivas?","posts.create.steps.media_optional":"¿Incluir imágenes?","posts.create.steps.media_optional_label":"¿Cuántas imágenes?","posts.create.steps.media_none":"Ninguna","posts.create.steps.media_count_label":"Número de imágenes","posts.create.steps.prompt_title":"Describe tu post","posts.create.steps.prompt_label":"¿De qué trata este post?","posts.create.steps.prompt_placeholder":"Ej. Anuncia nuestra nueva función de carrusel para Instagram","posts.create.steps.preview_title":"Vista previa","posts.create.steps.preview_loading":"Generando tu contenido…","posts.create.steps.preview_error":"Algo salió mal. Por favor, inténtalo de nuevo.","posts.create.steps.create":"Crear post","posts.create.steps.back":"Atrás","posts.create.steps.next":"Continuar","posts.create.steps.cancel":"Cancelar","posts.create.steps.discard":"Descartar","posts.create.steps.retry":"Intentar de nuevo","posts.create.steps.no_platforms":"Sin cuentas conectadas","posts.create.steps.connect_first":"Conecta al menos una cuenta social para usar la generación con IA.","posts.create.steps.format.instagram_feed":"Post de Feed de Instagram","posts.create.steps.format.instagram_carousel":"Carrusel de Instagram","posts.create.steps.format.linkedin_post":"Post de LinkedIn","posts.create.steps.format.linkedin_page_post":"Post de Página de LinkedIn","posts.create.steps.format.x_post":"Post en X","posts.create.steps.format.bluesky_post":"Post en Bluesky","posts.create.steps.format.threads_post":"Post en Threads","posts.create.steps.format.mastodon_post":"Post en Mastodon","posts.create.steps.format.facebook_post":"Post en Facebook","posts.create.steps.format.pinterest_pin":"Pin de Pinterest","posts.create.steps.format.instagram_story":"Story de Instagram","posts.create.steps.format.facebook_story":"Story de Facebook","posts.templates.browser_title":"Elige una plantilla","posts.templates.browser_description":"Comienza con una plantilla curada y adáptala.","posts.templates.search_placeholder":"Buscar plantillas…","posts.templates.no_search_results":"Ninguna plantilla coincide con tu búsqueda","posts.templates.try_different_search":"Prueba otra palabra clave o limpia la búsqueda.","posts.templates.slides_count":"{count} slide|{count} slides","posts.templates.all_platforms":"Todas las plataformas","posts.templates.use_this":"Usar esta plantilla","posts.templates.no_templates":"No hay plantillas disponibles.","posts.templates.applying":"Aplicando plantilla…","posts.templates.category.product_launch":"Lanzamiento de producto","posts.templates.category.promotion":"Promoción","posts.templates.category.educational":"Educativo","posts.templates.category.behind_the_scenes":"Detrás de cámaras","posts.templates.category.testimonial":"Testimonio","posts.templates.category.industry_tip":"Consejo del sector","posts.templates.category.event":"Evento","posts.templates.category.engagement":"Interacción","settings.title":"Configuración","settings.description":"Administra tu perfil y configuración de la cuenta","settings.nav.profile":"Perfil","settings.nav.password":"Contraseña","settings.nav.workspace":"Workspace","settings.nav.members":"Miembros","settings.nav.notifications":"Notificaciones","settings.nav.billing":"Facturación","settings.notifications.title":"Preferencias de notificaciones","settings.notifications.heading":"Notificaciones por correo","settings.notifications.description":"Elige qué notificaciones por correo deseas recibir","settings.notifications.post_published":"Post publicado","settings.notifications.post_published_description":"Recibir un correo cuando tu post se publique correctamente","settings.notifications.post_failed":"Post fallido","settings.notifications.post_failed_description":"Recibir un correo cuando tu post falle al publicar","settings.notifications.account_disconnected":"Cuenta desconectada","settings.notifications.account_disconnected_description":"Recibir un correo cuando una cuenta social se desconecte","settings.notifications.save":"Guardar preferencias","settings.profile.title":"Configuración del perfil","settings.profile.photo_heading":"Foto de perfil","settings.profile.photo_description":"Sube una foto de perfil","settings.profile.heading":"Información del perfil","settings.profile.description":"Actualiza tu nombre y correo electrónico","settings.profile.avatar":"Avatar","settings.profile.name":"Nombre","settings.profile.name_placeholder":"Nombre completo","settings.profile.email":"Correo electrónico","settings.profile.email_placeholder":"Correo electrónico","settings.profile.email_unverified":"Tu correo electrónico no ha sido verificado.","settings.profile.resend_verification":"Haz clic aquí para reenviar el correo de verificación.","settings.profile.verification_sent":"Se ha enviado un nuevo enlace de verificación a tu correo electrónico.","settings.profile.save":"Guardar","settings.password.title":"Configuración de contraseña","settings.password.heading":"Actualizar contraseña","settings.password.description":"Asegúrate de que tu cuenta use una contraseña larga y aleatoria para mantenerte seguro","settings.password.current_password":"Contraseña actual","settings.password.current_password_placeholder":"Contraseña actual","settings.password.new_password":"Nueva contraseña","settings.password.new_password_placeholder":"Nueva contraseña","settings.password.confirm_password":"Confirmar contraseña","settings.password.confirm_password_placeholder":"Confirmar contraseña","settings.password.save":"Guardar contraseña","settings.delete_account.heading":"Eliminar cuenta","settings.delete_account.description":"Elimina tu cuenta y todos sus recursos","settings.delete_account.warning":"Advertencia","settings.delete_account.warning_message":"Procede con precaución, esta acción no se puede deshacer.","settings.delete_account.button":"Eliminar cuenta","settings.delete_account.modal_title":"¿Estás seguro de que deseas eliminar tu cuenta?","settings.delete_account.modal_description":"Una vez eliminada tu cuenta, todos sus recursos y datos también se eliminarán permanentemente. Introduce tu contraseña para confirmar que deseas eliminar permanentemente tu cuenta.","settings.delete_account.password":"Contraseña","settings.delete_account.password_placeholder":"Contraseña","settings.delete_account.cancel":"Cancelar","settings.delete_account.confirm":"Eliminar cuenta","settings.workspace.tabs.workspace":"Workspace","settings.workspace.tabs.brand":"Marca","settings.workspace.tabs.users":"Miembros","settings.workspace.tabs.api_keys":"API Keys","settings.workspace.title":"Configuración del workspace","settings.workspace.logo_heading":"Logo del workspace","settings.workspace.logo_description":"Sube un logo para tu workspace","settings.workspace.heading":"Nombre del workspace","settings.workspace.description":"Actualiza el nombre del workspace","settings.workspace.members_heading":"Miembros","settings.workspace.members_description":"Administra miembros e invitaciones del workspace","settings.workspace.name":"Nombre","settings.workspace.name_placeholder":"Mi Workspace","settings.workspace.save":"Guardar","settings.brand.title":"Marca","settings.brand.description":"Configura la identidad de tu marca para el contenido generado por IA.","settings.brand.website":"Sitio web","settings.brand.website_placeholder":"https://tumarca.com","settings.brand.brand_description":"Descripción","settings.brand.brand_description_placeholder":"Cuéntanos sobre tu marca, lo que haces y quién es tu audiencia...","settings.brand.tone":"Tono de voz","settings.brand.tone_professional":"Profesional","settings.brand.tone_casual":"Casual","settings.brand.tone_friendly":"Amigable","settings.brand.tone_bold":"Audaz","settings.brand.tone_inspirational":"Inspirador","settings.brand.tone_humorous":"Humorístico","settings.brand.tone_educational":"Educativo","settings.brand.voice_notes":"Notas de voz","settings.brand.voice_notes_placeholder":"Directrices adicionales de escritura, palabras a evitar, preferencias de estilo...","settings.brand.brand_color":"Color de marca","settings.brand.background_color":"Color de fondo","settings.brand.text_color":"Color de texto","settings.brand.font":"Fuente","settings.brand.content_language":"Idioma del contenido","settings.brand.content_language_description":"Idioma usado en los subtítulos, hashtags y cualquier texto dentro de imágenes o videos generados por IA.","settings.members.title":"Miembros","settings.members.heading":"Miembros del equipo","settings.members.description":"Administra miembros e invitaciones de este workspace","settings.members.cancel":"Cancelar","settings.members.remove":"Eliminar","settings.members.make_admin":"Hacer administrador","settings.members.make_member":"Hacer miembro","settings.members.invite.title":"Invitar miembro","settings.members.invite.description":"Envía una invitación por correo para agregar colaboradores","settings.members.invite.email":"Correo electrónico","settings.members.invite.email_placeholder":"[email protected]","settings.members.invite.role":"Rol","settings.members.invite.role_placeholder":"Selecciona un rol","settings.members.invite.submit":"Enviar invitación","settings.members.pending.title":"Invitaciones pendientes","settings.members.pending.description":"Invitaciones en espera de aceptación","settings.members.pending.empty":"No hay invitaciones pendientes","settings.members.list.title":"Miembros","settings.members.list.description":"Personas con acceso a este workspace","settings.members.list.empty":"No hay miembros además del propietario","settings.members.remove_modal.title":"Eliminar miembro","settings.members.remove_modal.description":"¿Estás seguro de que deseas eliminar a este miembro del workspace? Perderá acceso a todos los recursos del workspace.","settings.members.remove_modal.action":"Eliminar miembro","settings.members.cancel_invite_modal.title":"Cancelar invitación","settings.members.cancel_invite_modal.description":"¿Estás seguro de que deseas cancelar esta invitación?","settings.members.cancel_invite_modal.action":"Cancelar invitación","settings.members.roles.owner":"Propietario","settings.members.roles.admin":"Administrador","settings.members.roles.member":"Miembro","settings.members.roles.viewer":"Espectador","settings.members.flash.invite_sent":"¡Invitación enviada correctamente!","settings.members.flash.invite_deleted":"Invitación eliminada.","settings.members.flash.member_removed":"¡Miembro eliminado correctamente!","settings.members.flash.role_updated":"Rol del miembro actualizado.","settings.members.flash.wrong_email":"Esta invitación es para otro correo electrónico.","settings.members.flash.already_member":"Ya eres miembro de este workspace.","settings.members.flash.invite_accepted":"¡Bienvenido! Ahora eres miembro del workspace.","settings.members.flash.invite_declined":"Invitación rechazada.","settings.flash.profile_updated":"¡Perfil actualizado correctamente!","settings.flash.language_updated":"¡Idioma actualizado correctamente!","settings.flash.password_updated":"¡Contraseña actualizada correctamente!","settings.flash.workspace_updated":"¡Configuración actualizada correctamente!","settings.flash.photo_updated":"¡Foto actualizada correctamente!","settings.flash.photo_deleted":"¡Foto eliminada correctamente!","settings.flash.logo_updated":"¡Logo subido correctamente!","settings.flash.logo_deleted":"¡Logo eliminado correctamente!","settings.flash.notifications_updated":"¡Preferencias de notificaciones actualizadas!","settings.api_keys.title":"Claves API","settings.api_keys.page_title":"Claves API","settings.api_keys.heading":"Claves API","settings.api_keys.description":"Administra claves API para acceso programático a tu workspace.","settings.api_keys.create":"Crear clave API","settings.api_keys.copy":"Copiar","settings.api_keys.new_token_message":"Tu nueva clave API ha sido creada. Cópiala ahora — no podrás verla de nuevo.","settings.api_keys.table.name":"Nombre","settings.api_keys.table.key":"Clave","settings.api_keys.table.status":"Estado","settings.api_keys.table.expires":"Expira","settings.api_keys.table.last_used":"Último uso","settings.api_keys.table.never":"Nunca","settings.api_keys.actions.copy_id":"Copiar ID de clave API","settings.api_keys.actions.copy_id_success":"ID de clave API copiado","settings.api_keys.actions.delete":"Eliminar","settings.api_keys.empty.title":"No hay claves API","settings.api_keys.empty.description":"Crea una clave API para acceder a tu workspace programáticamente.","settings.api_keys.delete_modal.title":"Eliminar clave API","settings.api_keys.delete_modal.description":"¿Estás seguro de que deseas eliminar esta clave API? Las aplicaciones que la usen perderán acceso inmediatamente.","settings.api_keys.delete_modal.action":"Eliminar clave API","settings.api_keys.create_dialog.title":"Crear clave API","settings.api_keys.create_dialog.description":"Crea una nueva clave API para acceso programático a tu workspace.","settings.api_keys.create_dialog.name":"Nombre","settings.api_keys.create_dialog.name_placeholder":"ej. Clave API de Producción","settings.api_keys.create_dialog.expires":"Fecha de expiración (opcional)","settings.api_keys.create_dialog.expires_placeholder":"Sin expiración","settings.api_keys.create_dialog.submit":"Crear","settings.api_keys.create_dialog.cancel":"Cancelar","settings.api_keys.flash.created":"¡Clave API creada correctamente!","settings.api_keys.flash.deleted":"¡Clave API eliminada correctamente!","sidebar.workspaces":"Workspaces","sidebar.select_workspace":"Seleccionar workspace","sidebar.create_workspace":"Crear workspace","sidebar.create_post":"Crear post","sidebar.profile":"Perfil","sidebar.log_out":"Cerrar sesión","sidebar.workspace.connections":"Conexiones","sidebar.workspace.hashtags":"Hashtags","sidebar.workspace.labels":"Etiquetas","sidebar.workspace.assets":"Medios","sidebar.workspace.api_keys":"API Keys","sidebar.workspace.settings":"Configuración","sidebar.workspace_select":"Workspace: Seleccionar","sidebar.theme":"Tema: :name","sidebar.theme_light":"Claro","sidebar.theme_dark":"Oscuro","sidebar.theme_system":"Sistema","sidebar.language":"Idioma: :name","sidebar.language_select":"Idioma: Seleccionar","sidebar.groups.posts":"Posts","sidebar.groups.workspace":"Workspace","sidebar.groups.account":"Cuenta","sidebar.groups.support":"Soporte","sidebar.analytics":"Analytics","sidebar.posts.calendar":"Calendario","sidebar.posts.all":"Todos","sidebar.posts.scheduled":"Programados","sidebar.posts.posted":"Publicados","sidebar.posts.drafts":"Borradores","sidebar.account.settings":"Configuración","sidebar.account.usage":"Uso","sidebar.account.billing":"Facturación","sidebar.notifications":"Notificaciones","sidebar.mark_all_read":"Marcar todo como leído","sidebar.mark_as_read":"Marcar como leído","sidebar.archive_all":"Archivar todo","sidebar.no_notifications":"Sin notificaciones","sidebar.support.discord":"Discord","sidebar.support.share_feedback":"Dar feedback","sidebar.support.last_updates":"Últimas actualizaciones","sidebar.support.docs":"Documentación","usage.title":"Uso","usage.section_account":"Cuenta","usage.section_account_description":"Cuotas y límites de tu plan :plan.","usage.section_ai":"Generación AI","usage.section_ai_description":"Uso de generación de imágenes y videos AI del mes actual.","usage.section_data":"Datos","usage.section_data_description":"Retención de datos y almacenamiento de tu plan.","usage.workspaces":"Workspaces","usage.social_accounts":"Cuentas Sociales","usage.members":"Miembros","usage.ai_images":"Imágenes","usage.ai_videos":"Videos","usage.data_retention":"Retención de Datos","usage.unlimited":"Ilimitado","usage.days":"días","usage.year":"año","usage.years":"años","validation.accepted":"El campo :attribute debe ser aceptado.","validation.accepted_if":"El campo :attribute debe ser aceptado cuando :other es :value.","validation.active_url":"El campo :attribute debe ser una URL válida.","validation.after":"El campo :attribute debe ser una fecha posterior a :date.","validation.after_or_equal":"El campo :attribute debe ser una fecha posterior o igual a :date.","validation.alpha":"El campo :attribute solo puede contener letras.","validation.alpha_dash":"El campo :attribute solo puede contener letras, números, guiones y guiones bajos.","validation.alpha_num":"El campo :attribute solo puede contener letras y números.","validation.any_of":"El campo :attribute no es válido.","validation.array":"El campo :attribute debe ser un arreglo.","validation.ascii":"El campo :attribute solo puede contener caracteres alfanuméricos de un byte y símbolos.","validation.before":"El campo :attribute debe ser una fecha anterior a :date.","validation.before_or_equal":"El campo :attribute debe ser una fecha anterior o igual a :date.","validation.between.array":"El campo :attribute debe tener entre :min y :max elementos.","validation.between.file":"El campo :attribute debe pesar entre :min y :max kilobytes.","validation.between.numeric":"El campo :attribute debe estar entre :min y :max.","validation.between.string":"El campo :attribute debe tener entre :min y :max caracteres.","validation.boolean":"El campo :attribute debe ser verdadero o falso.","validation.can":"El campo :attribute contiene un valor no autorizado.","validation.confirmed":"La confirmación del campo :attribute no coincide.","validation.contains":"Al campo :attribute le falta un valor requerido.","validation.current_password":"La contraseña es incorrecta.","validation.date":"El campo :attribute debe ser una fecha válida.","validation.date_equals":"El campo :attribute debe ser una fecha igual a :date.","validation.date_format":"El campo :attribute debe coincidir con el formato :format.","validation.decimal":"El campo :attribute debe tener :decimal decimales.","validation.declined":"El campo :attribute debe ser rechazado.","validation.declined_if":"El campo :attribute debe ser rechazado cuando :other es :value.","validation.different":"El campo :attribute y :other deben ser diferentes.","validation.digits":"El campo :attribute debe tener :digits dígitos.","validation.digits_between":"El campo :attribute debe tener entre :min y :max dígitos.","validation.dimensions":"El campo :attribute tiene dimensiones de imagen no válidas.","validation.distinct":"El campo :attribute tiene un valor duplicado.","validation.doesnt_contain":"El campo :attribute no debe contener ninguno de los siguientes: :values.","validation.doesnt_end_with":"El campo :attribute no debe terminar con uno de los siguientes: :values.","validation.doesnt_start_with":"El campo :attribute no debe comenzar con uno de los siguientes: :values.","validation.email":"El campo :attribute debe ser un correo electrónico válido.","validation.encoding":"El campo :attribute debe estar codificado en :encoding.","validation.ends_with":"El campo :attribute debe terminar con uno de los siguientes: :values.","validation.enum":"El :attribute seleccionado no es válido.","validation.exists":"El :attribute seleccionado no es válido.","validation.extensions":"El campo :attribute debe tener una de las siguientes extensiones: :values.","validation.file":"El campo :attribute debe ser un archivo.","validation.filled":"El campo :attribute debe tener un valor.","validation.gt.array":"El campo :attribute debe tener más de :value elementos.","validation.gt.file":"El campo :attribute debe pesar más de :value kilobytes.","validation.gt.numeric":"El campo :attribute debe ser mayor que :value.","validation.gt.string":"El campo :attribute debe tener más de :value caracteres.","validation.gte.array":"El campo :attribute debe tener :value elementos o más.","validation.gte.file":"El campo :attribute debe pesar :value kilobytes o más.","validation.gte.numeric":"El campo :attribute debe ser mayor o igual a :value.","validation.gte.string":"El campo :attribute debe tener :value caracteres o más.","validation.hex_color":"El campo :attribute debe ser un color hexadecimal válido.","validation.image":"El campo :attribute debe ser una imagen.","validation.in":"El :attribute seleccionado no es válido.","validation.in_array":"El campo :attribute debe existir en :other.","validation.in_array_keys":"El campo :attribute debe contener al menos una de las siguientes claves: :values.","validation.integer":"El campo :attribute debe ser un número entero.","validation.ip":"El campo :attribute debe ser una dirección IP válida.","validation.ipv4":"El campo :attribute debe ser una dirección IPv4 válida.","validation.ipv6":"El campo :attribute debe ser una dirección IPv6 válida.","validation.json":"El campo :attribute debe ser una cadena JSON válida.","validation.list":"El campo :attribute debe ser una lista.","validation.lowercase":"El campo :attribute debe estar en minúsculas.","validation.lt.array":"El campo :attribute debe tener menos de :value elementos.","validation.lt.file":"El campo :attribute debe pesar menos de :value kilobytes.","validation.lt.numeric":"El campo :attribute debe ser menor que :value.","validation.lt.string":"El campo :attribute debe tener menos de :value caracteres.","validation.lte.array":"El campo :attribute no debe tener más de :value elementos.","validation.lte.file":"El campo :attribute debe pesar :value kilobytes o menos.","validation.lte.numeric":"El campo :attribute debe ser menor o igual a :value.","validation.lte.string":"El campo :attribute debe tener :value caracteres o menos.","validation.mac_address":"El campo :attribute debe ser una dirección MAC válida.","validation.max.array":"El campo :attribute no debe tener más de :max elementos.","validation.max.file":"El campo :attribute no debe pesar más de :max kilobytes.","validation.max.numeric":"El campo :attribute no debe ser mayor que :max.","validation.max.string":"El campo :attribute no debe tener más de :max caracteres.","validation.max_digits":"El campo :attribute no debe tener más de :max dígitos.","validation.mimes":"El campo :attribute debe ser un archivo de tipo: :values.","validation.mimetypes":"El campo :attribute debe ser un archivo de tipo: :values.","validation.min.array":"El campo :attribute debe tener al menos :min elementos.","validation.min.file":"El campo :attribute debe pesar al menos :min kilobytes.","validation.min.numeric":"El campo :attribute debe ser al menos :min.","validation.min.string":"El campo :attribute debe tener al menos :min caracteres.","validation.min_digits":"El campo :attribute debe tener al menos :min dígitos.","validation.missing":"El campo :attribute debe estar ausente.","validation.missing_if":"El campo :attribute debe estar ausente cuando :other es :value.","validation.missing_unless":"El campo :attribute debe estar ausente a menos que :other sea :value.","validation.missing_with":"El campo :attribute debe estar ausente cuando :values está presente.","validation.missing_with_all":"El campo :attribute debe estar ausente cuando :values están presentes.","validation.multiple_of":"El campo :attribute debe ser múltiplo de :value.","validation.not_in":"El :attribute seleccionado no es válido.","validation.not_regex":"El formato del campo :attribute no es válido.","validation.numeric":"El campo :attribute debe ser un número.","validation.password.letters":"El campo :attribute debe contener al menos una letra.","validation.password.mixed":"El campo :attribute debe contener al menos una letra mayúscula y una minúscula.","validation.password.numbers":"El campo :attribute debe contener al menos un número.","validation.password.symbols":"El campo :attribute debe contener al menos un símbolo.","validation.password.uncompromised":"El :attribute proporcionado ha aparecido en una filtración de datos. Elige un :attribute diferente.","validation.present":"El campo :attribute debe estar presente.","validation.present_if":"El campo :attribute debe estar presente cuando :other es :value.","validation.present_unless":"El campo :attribute debe estar presente a menos que :other sea :value.","validation.present_with":"El campo :attribute debe estar presente cuando :values está presente.","validation.present_with_all":"El campo :attribute debe estar presente cuando :values están presentes.","validation.prohibited":"El campo :attribute está prohibido.","validation.prohibited_if":"El campo :attribute está prohibido cuando :other es :value.","validation.prohibited_if_accepted":"El campo :attribute está prohibido cuando :other es aceptado.","validation.prohibited_if_declined":"El campo :attribute está prohibido cuando :other es rechazado.","validation.prohibited_unless":"El campo :attribute está prohibido a menos que :other esté en :values.","validation.prohibits":"El campo :attribute prohíbe que :other esté presente.","validation.regex":"El formato del campo :attribute no es válido.","validation.required":"El campo :attribute es obligatorio.","validation.required_array_keys":"El campo :attribute debe contener entradas para: :values.","validation.required_if":"El campo :attribute es obligatorio cuando :other es :value.","validation.required_if_accepted":"El campo :attribute es obligatorio cuando :other es aceptado.","validation.required_if_declined":"El campo :attribute es obligatorio cuando :other es rechazado.","validation.required_unless":"El campo :attribute es obligatorio a menos que :other esté en :values.","validation.required_with":"El campo :attribute es obligatorio cuando :values está presente.","validation.required_with_all":"El campo :attribute es obligatorio cuando :values están presentes.","validation.required_without":"El campo :attribute es obligatorio cuando :values no está presente.","validation.required_without_all":"El campo :attribute es obligatorio cuando ninguno de :values está presente.","validation.same":"El campo :attribute debe coincidir con :other.","validation.size.array":"El campo :attribute debe contener :size elementos.","validation.size.file":"El campo :attribute debe pesar :size kilobytes.","validation.size.numeric":"El campo :attribute debe ser :size.","validation.size.string":"El campo :attribute debe tener :size caracteres.","validation.starts_with":"El campo :attribute debe comenzar con uno de los siguientes: :values.","validation.string":"El campo :attribute debe ser una cadena de texto.","validation.timezone":"El campo :attribute debe ser una zona horaria válida.","validation.unique":"El :attribute ya ha sido registrado.","validation.uploaded":"El :attribute no se pudo subir.","validation.uppercase":"El campo :attribute debe estar en mayúsculas.","validation.url":"El campo :attribute debe ser una URL válida.","validation.ulid":"El campo :attribute debe ser un ULID válido.","validation.uuid":"El campo :attribute debe ser un UUID válido.","validation.custom.attribute-name.rule-name":"custom-message","workspaces.title":"Workspaces","workspaces.select_title":"Tus workspaces","workspaces.select_description":"Selecciona un workspace para continuar","workspaces.current":"Actual","workspaces.connections":":count conexiones","workspaces.posts":":count posts","workspaces.create.page_title":"Crea tu workspace","workspaces.create.title":"Configura tu workspace","workspaces.create.description":"Cuéntanos un poco sobre ti o tu proyecto. Lo usaremos para personalizar las publicaciones generadas por IA con tu voz.","workspaces.create.website":"Sitio web","workspaces.create.website_placeholder":"https://tumarca.com","workspaces.create.autofill":"Autocompletar desde el sitio","workspaces.create.autofill_missing_url":"Ingresa una URL primero.","workspaces.create.autofill_success":"Información de la marca cargada.","workspaces.create.autofill_error":"No se pudo autocompletar. Puedes llenar los campos manualmente.","workspaces.create.autofill_errors.unreachable":"No pudimos acceder a ese sitio web (:reason).","workspaces.create.autofill_errors.http_status":"El sitio web devolvió un estado inesperado (:status).","workspaces.create.autofill_errors.invalid_scheme":"Solo se admiten URLs http y https.","workspaces.create.autofill_errors.missing_host":"A la URL le falta un host.","workspaces.create.autofill_errors.unresolvable_host":"No pudimos resolver el host (:host).","workspaces.create.autofill_errors.private_network":"No se permiten URLs que apunten a redes privadas.","workspaces.create.logo_captured":"Logo capturado de tu sitio.","workspaces.create.name":"Nombre del workspace","workspaces.create.name_placeholder":"ej. Acme Inc","workspaces.create.brand_description":"Descripción de la marca","workspaces.create.brand_description_placeholder":"¿Qué hace tu marca?","workspaces.create.tone":"Tono de la marca","workspaces.create.tone_professional":"Profesional","workspaces.create.tone_casual":"Casual","workspaces.create.tone_friendly":"Amigable","workspaces.create.tone_bold":"Audaz","workspaces.create.tone_inspirational":"Inspirador","workspaces.create.tone_humorous":"Humorístico","workspaces.create.tone_educational":"Educativo","workspaces.create.content_language":"Idioma del contenido","workspaces.create.content_language_description":"Las descripciones generadas por IA se escribirán en este idioma.","workspaces.create.voice_notes":"Notas de voz (opcional)","workspaces.create.voice_notes_placeholder":"ej. frases cortas y directas. evita jerga.","workspaces.create.brand_color":"Color de marca","workspaces.create.background_color":"Color de fondo","workspaces.create.text_color":"Color de texto","workspaces.create.submit":"Crear workspace","workspaces.create.first_workspace_success":"Workspace creado. Conecta una cuenta social para empezar a publicar.","workspaces.create.success":"Workspace creado."}\ No newline at end of filediff --git a/lang/php_pt-BR.json b/lang/php_pt-BR.jsonindex 183f3f07d..8cf7ccbc7 100644--- a/lang/php_pt-BR.json+++ b/lang/php_pt-BR.json@@ -1 +1 @@-{"accounts.title":"Conexões","accounts.page_title":"Contas Sociais","accounts.description":"Visão geral de todas as suas contas sociais conectadas","accounts.add_social":"Adicionar Rede Social","accounts.add_social_title":"Conectar uma Conta Social","accounts.add_social_description":"Conecte uma conta social ao TryPost para começar a publicar","accounts.no_accounts":"Nenhuma conta conectada ainda","accounts.no_accounts_description":"Conecte suas redes sociais para começar a agendar e publicar posts","accounts.no_search_results":"Nenhuma conta corresponde à sua busca","accounts.try_different_search":"Tente outra palavra-chave ou limpe a busca.","accounts.search":"Buscar contas...","accounts.added":"Adicionada :date","accounts.limit_reached":"Você atingiu o limite de contas sociais do seu plano.","accounts.not_connected":"Não conectado","accounts.connect":"Conectar","accounts.connection_lost":"Conexão perdida","accounts.reconnect_account":"Reconectar conta","accounts.view_profile":"Ver perfil","accounts.disconnect":"Desconectar","accounts.table.account":"Conta","accounts.table.platform":"Plataforma","accounts.table.status":"Status","accounts.table.last_used":"Último uso","accounts.table.added":"Adicionada","accounts.table.active":"Ativa","accounts.never_used":"Nunca usada","accounts.status.connected":"Conectada","accounts.status.disconnected":"Desconectada","accounts.descriptions.linkedin":"Conecte seu perfil pessoal do LinkedIn","accounts.descriptions.linkedin-page":"Conecte uma página de empresa do LinkedIn","accounts.descriptions.x":"Conecte sua conta do X (Twitter)","accounts.descriptions.tiktok":"Conecte sua conta do TikTok","accounts.descriptions.youtube":"Conecte um canal do YouTube","accounts.descriptions.facebook":"Conecte uma página do Facebook","accounts.descriptions.instagram":"Conecte uma conta profissional do Instagram","accounts.descriptions.instagram-facebook":"Conecte Instagram via página do Facebook","accounts.descriptions.threads":"Conecte sua conta do Threads","accounts.descriptions.pinterest":"Conecte sua conta do Pinterest","accounts.descriptions.bluesky":"Conecte sua conta do Bluesky","accounts.descriptions.mastodon":"Conecte sua conta do Mastodon","accounts.disconnect_modal.title":"Desconectar Conta","accounts.disconnect_modal.description":"Tem certeza que deseja desconectar esta conta? Você pode reconectá-la a qualquer momento.","accounts.disconnect_modal.confirm":"Desconectar","accounts.disconnect_modal.cancel":"Cancelar","accounts.bluesky.title":"Conectar Bluesky","accounts.bluesky.description":"Digite suas credenciais para conectar","accounts.bluesky.email":"E-mail","accounts.bluesky.email_placeholder":"seuhandle.bsky.social","accounts.bluesky.app_password":"Senha do App","accounts.bluesky.app_password_placeholder":"xxxx-xxxx-xxxx-xxxx","accounts.bluesky.app_password_hint":"Use uma <strong>Senha do App</strong> por segurança. Crie uma em <a href=\"https://bsky.app/settings/app-passwords\" target=\"_blank\" class=\"underline\">bsky.app/settings</a>.","accounts.bluesky.submit":"Conectar Bluesky","accounts.bluesky.submitting":"Conectando...","accounts.mastodon.title":"Conectar Mastodon","accounts.mastodon.description":"Digite a instância do seu Mastodon","accounts.mastodon.instance_url":"URL da Instância","accounts.mastodon.instance_placeholder":"https://mastodon.social","accounts.mastodon.instance_hint":"Digite a URL da sua instância Mastodon (ex: mastodon.social, techhub.social)","accounts.mastodon.submit":"Continuar com Mastodon","accounts.mastodon.submitting":"Conectando...","accounts.facebook.title":"Selecionar Página do Facebook","accounts.facebook.description":"Escolha qual página você deseja conectar","accounts.facebook.no_pages":"Nenhuma página encontrada","accounts.facebook.no_pages_description":"Você não é administrador de nenhuma página do Facebook.","accounts.facebook.page_label":"Página do Facebook","accounts.instagram_facebook.title":"Selecionar Conta do Instagram","accounts.instagram_facebook.description":"Escolha qual conta do Instagram você deseja conectar","accounts.instagram_facebook.no_pages":"Nenhuma conta do Instagram encontrada","accounts.instagram_facebook.no_pages_description":"Nenhuma Página do Facebook com conta Instagram Business vinculada foi encontrada.","accounts.linkedin.title":"Selecionar Página do LinkedIn","accounts.linkedin.description":"Escolha qual página você deseja conectar","accounts.linkedin.no_pages":"Nenhuma página encontrada","accounts.linkedin.no_pages_description":"Você não é administrador de nenhuma página do LinkedIn.","accounts.linkedin.page_label":"Página do LinkedIn","accounts.flash.disconnected":"Conta desconectada com sucesso!","accounts.flash.connected":"Conta conectada com sucesso!","accounts.flash.session_expired":"Sessão expirada. Por favor, tente novamente.","accounts.flash.workspace_not_found":"Workspace não encontrado.","accounts.flash.activated":"Conta ativada!","accounts.flash.deactivated":"Conta desativada!","accounts.flash.already_connected":"Esta plataforma já está conectada.","accounts.flash.no_youtube_channels":"Nenhum canal do YouTube encontrado. Por favor, crie um canal primeiro.","analytics.channels":"Canais","analytics.no_accounts":"Nenhuma conta conectada com analytics.","analytics.select_account":"Selecione uma conta para ver analytics.","analytics.no_data":"Nenhum dado de analytics disponível.","assets.title":"Mídias","assets.tabs.my_uploads":"Meus uploads","assets.tabs.stock_photos":"Fotos gratuitas","assets.tabs.gifs":"GIFs","assets.upload.drag_drop":"Arraste e solte seus arquivos aqui ou clique para selecionar","assets.upload.formats":"JPEG, PNG, GIF, WebP, MP4","assets.upload.uploading":"Enviando...","assets.empty.title":"Nenhuma mídia ainda","assets.empty.description":"Envie imagens e vídeos para criar sua biblioteca de mídia.","assets.save_to_assets":"Salvar na biblioteca","assets.saved":"Salvo na sua biblioteca!","assets.create_post":"Criar post","assets.add_to_post":"Adicionar ao post","assets.search_placeholder":"Buscar mídia...","assets.delete.title":"Excluir mídia","assets.delete.description":"Tem certeza que deseja excluir esta mídia? Esta ação não pode ser desfeita.","assets.delete.confirm":"Excluir","assets.delete.cancel":"Cancelar","assets.unsplash.search_placeholder":"Buscar fotos gratuitas...","assets.unsplash.no_results":"Nenhuma foto encontrada","assets.unsplash.no_results_description":"Tente outro termo de busca.","assets.unsplash.trending":"Em alta no Unsplash","assets.unsplash.start_searching":"Busque fotos gratuitas do Unsplash","assets.giphy.trending":"Em alta no Giphy","assets.giphy.search_placeholder":"Buscar GIFs...","assets.giphy.no_results":"Nenhum GIF encontrado","assets.giphy.no_results_description":"Tente outro termo de busca.","assets.giphy.powered_by":"Powered by GIPHY","assistant.placeholder":"Me peça para escrever uma legenda, gerar uma imagem ou vídeo...","assistant.thinking":"Pensando...","assistant.add_to_post":"Adicionar ao post","assistant.added":"Adicionado","assistant.error":"Algo deu errado. Tente novamente.","assistant.retry":"Tentar de novo","assistant.image_generated":"Aqui está a imagem gerada:","assistant.video_generated":"Aqui está o vídeo gerado:","assistant.audio_generated":"Aqui está o áudio gerado:","assistant.empty":"Me pergunte qualquer coisa. Posso escrever legendas, gerar imagens e produzir vídeos.","assistant.limit_reached_images":"Você atingiu o limite mensal de geração de imagens.","assistant.limit_reached_videos":"Você atingiu o limite mensal de geração de vídeos.","assistant.content_blocked":"Não posso ajudar com esse tipo de conteúdo. Estou aqui para ajudar você a criar conteúdo seguro e engajador para redes sociais.","auth.failed":"Essas credenciais não correspondem aos nossos registros.","auth.password":"A senha fornecida está incorreta.","auth.throttle":"Muitas tentativas de login. Por favor, tente novamente em :seconds segundos.","auth.flash.welcome":"Bem-vindo ao TryPost!","auth.flash.welcome_trial":"Bem-vindo ao TryPost! Seu período de teste começou.","auth.legal":"Ao continuar, você concorda com nossos <a href=\"https://trypost.it/terms\" target=\"_blank\">Termos de Serviço</a> e <a href=\"https://trypost.it/privacy\" target=\"_blank\">Política de Privacidade</a>.","auth.slides.calendar.title":"Calendário Visual","auth.slides.calendar.description":"Planeje e agende seu conteúdo com um calendário intuitivo de arrastar e soltar em todas as suas contas sociais.","auth.slides.scheduling.title":"Agendamento Inteligente","auth.slides.scheduling.description":"Agende posts no LinkedIn, X, Instagram, TikTok, YouTube e mais — tudo em um só lugar.","auth.slides.media.title":"Mídia Rica","auth.slides.media.description":"Publique imagens, carrosséis, stories e reels. Cada plataforma recebe o formato correto automaticamente.","auth.slides.video.title":"Publicação de Vídeo","auth.slides.video.description":"Envie vídeos uma vez e publique no TikTok, YouTube Shorts, Instagram Reels e Facebook Reels.","auth.slides.team.title":"Workspaces em Equipe","auth.slides.team.description":"Convide sua equipe, atribua funções e gerencie múltiplas marcas em workspaces separados.","auth.slides.hashtags.title":"Grupos de Hashtags","auth.slides.hashtags.description":"Salve coleções de hashtags e adicione aos posts com um clique. Organize com etiquetas e filtros.","auth.or_continue_with":"Ou continue com","auth.google_login":"Entrar com Google","auth.google_signup":"Cadastrar com Google","auth.signup_success.page_title":"Bem-vindo","auth.signup_success.title":"Configurando sua conta","auth.signup_success.description":"Isso geralmente leva apenas alguns segundos...","auth.login.title":"Entrar na sua conta","auth.login.description":"Digite seu email e senha abaixo para entrar","auth.login.page_title":"Entrar","auth.login.email":"Endereço de email","auth.login.password":"Senha","auth.login.forgot_password":"Esqueceu a senha?","auth.login.remember_me":"Lembrar de mim","auth.login.submit":"Entrar","auth.login.no_account":"Não tem uma conta?","auth.login.sign_up":"Cadastre-se","auth.register.title":"Criar uma conta","auth.register.description":"Digite seus dados abaixo para criar sua conta","auth.register.page_title":"Cadastro","auth.register.name":"Nome","auth.register.name_placeholder":"Nome completo","auth.register.email":"Endereço de email","auth.register.password":"Senha","auth.register.show_password":"Mostrar senha","auth.register.hide_password":"Esconder senha","auth.register.submit":"Criar conta","auth.register.has_account":"Já tem uma conta?","auth.register.log_in":"Entrar","auth.forgot_password.title":"Esqueceu a senha","auth.forgot_password.description":"Digite seu email para receber um link de redefinição de senha","auth.forgot_password.page_title":"Esqueceu a senha","auth.forgot_password.email":"Endereço de email","auth.forgot_password.submit":"Enviar link de redefinição","auth.forgot_password.return_to":"Ou, volte para","auth.forgot_password.log_in":"entrar","auth.reset_password.title":"Redefinir senha","auth.reset_password.description":"Por favor, digite sua nova senha abaixo","auth.reset_password.page_title":"Redefinir senha","auth.reset_password.email":"Email","auth.reset_password.password":"Senha","auth.reset_password.confirm_password":"Confirmar Senha","auth.reset_password.confirm_placeholder":"Confirmar senha","auth.reset_password.submit":"Redefinir senha","auth.verify_email.title":"Verificar email","auth.verify_email.description":"Por favor, verifique seu endereço de email clicando no link que acabamos de enviar.","auth.verify_email.page_title":"Verificação de email","auth.verify_email.link_sent":"Um novo link de verificação foi enviado para o endereço de email que você forneceu durante o cadastro.","auth.verify_email.resend":"Reenviar email de verificação","auth.verify_email.log_out":"Sair","auth.accept_invite.page_title":"Aceitar Convite","auth.accept_invite.title":"Você foi convidado!","auth.accept_invite.description":"Você foi convidado para participar do workspace :workspace.","auth.accept_invite.workspace":"Workspace","auth.accept_invite.your_role":"Seu cargo","auth.accept_invite.email":"Email","auth.accept_invite.accept":"Aceitar Convite","auth.accept_invite.decline":"Recusar Convite","auth.accept_invite.login_prompt":"Entre ou crie uma conta para aceitar este convite.","auth.accept_invite.log_in":"Entrar","auth.accept_invite.create_account":"Criar Conta","billing.title":"Assinatura","billing.description":"Gerencie sua assinatura e método de pagamento","billing.subscribe.page_title":"Comece seu teste gratuito","billing.subscribe.title":"Comece seu teste gratuito","billing.subscribe.description":":days dias grátis para explorar todos os recursos.","billing.subscribe.start_trial":"Começar teste de :days dias","billing.subscribe.cancel_anytime":"Cancele a qualquer momento. Sem perguntas.","billing.subscribe.switch_workspace":"Trocar workspace","billing.subscribe.features.calendar":"Calendário visual com arrastar e soltar","billing.subscribe.features.scheduling":"Agendamento ilimitado de posts","billing.subscribe.features.media":"Imagens, carrosséis e stories","billing.subscribe.features.video":"Publicação de vídeos em todas as plataformas","billing.subscribe.features.team":"Colaboração em equipe e workspaces","billing.subscribe.features.hashtags":"Grupos de hashtags e etiquetas","billing.trial.title":"Período de teste ativo","billing.trial.description":"Seu período de teste termina em :date. Após isso, sua assinatura será cobrada automaticamente.","billing.subscription.title":"Sua Assinatura","billing.subscription.status":"Status","billing.subscription.workspaces":"Workspaces","billing.subscription.quantity":"Quantidade da assinatura","billing.subscription.expires":"Expira em :date","billing.subscription.canceled_on":"Sua assinatura será cancelada em :date","billing.subscription.manage":"Gerenciar no Stripe","billing.invoices.title":"Faturas","billing.invoices.description":"Histórico de pagamentos","billing.invoices.empty":"Nenhuma fatura encontrada","billing.invoices.paid":"Pago","billing.processing.page_title":"Processando...","billing.processing.title":"Processando sua assinatura","billing.processing.description":"Aguarde enquanto configuramos sua conta. Isso levará apenas um momento.","billing.processing.success_title":"Tudo pronto!","billing.processing.success_description":"Sua assinatura está ativa. Redirecionando para seus workspaces...","billing.processing.cancelled_title":"Pagamento cancelado","billing.processing.cancelled_description":"Seu pagamento foi cancelado. Nenhuma cobrança foi realizada.","billing.processing.retry":"Tentar novamente","billing.status.active":"Ativo","billing.status.canceled":"Cancelado","billing.status.incomplete":"Incompleto","billing.status.incomplete_expired":"Expirado","billing.status.past_due":"Vencido","billing.status.trialing":"Teste","billing.status.unpaid":"Não pago","brands.new_brand":"Nova Marca","brands.no_brands_yet":"Nenhuma marca ainda","brands.no_brands_description":"Crie marcas para organizar suas contas de redes sociais por cliente ou projeto","brands.accounts_count":":count contas","brands.create.title":"Criar Marca","brands.create.description":"Dê um nome à sua marca para agrupar contas de redes sociais","brands.create.name":"Nome da Marca","brands.create.name_placeholder":"ex. Acme Corp, Pessoal","brands.create.submit":"Criar Marca","brands.create.submitting":"Criando...","brands.edit.title":"Editar Marca","brands.edit.description":"Atualize o nome desta marca","brands.edit.name":"Nome da Marca","brands.edit.name_placeholder":"ex. Acme Corp, Pessoal","brands.edit.submit":"Salvar Alterações","brands.edit.submitting":"Salvando...","brands.delete.title":"Excluir Marca","brands.delete.description":"Tem certeza de que deseja excluir esta marca? As contas de redes sociais serão desvinculadas mas não excluídas.","brands.delete.confirm":"Excluir","brands.delete.cancel":"Cancelar","brands.flash.created":"Marca criada com sucesso!","brands.flash.updated":"Marca atualizada com sucesso!","brands.flash.deleted":"Marca excluída com sucesso!","calendar.title":"Calendário","calendar.today":"Hoje","calendar.day":"Dia","calendar.week":"Semana","calendar.month":"Mês","calendar.new_post":"Novo Post","calendar.no_content":"Sem conteúdo","calendar.more":"+:count mais","comments.placeholder":"Escreva um comentário...","comments.reply_placeholder":"Escreva uma resposta...","comments.reply":"Responder","comments.edit":"Editar","comments.delete":"Excluir","comments.edited":"editado","comments.save":"Salvar","comments.cancel":"Cancelar","comments.send":"Enviar","comments.replying_to":"Respondendo a :name","comments.empty":"Nenhum comentário ainda. Comece a conversa.","comments.load_more":"Carregar comentários antigos","common.confirm_modal.cannot_be_undone":"Esta ação não pode ser desfeita.","common.confirm_modal.type":"Digite","common.confirm_modal.to_confirm":"para confirmar.","common.confirm_modal.copy_to_clipboard":"Copiar para a área de transferência","common.photo_upload.upload":"Enviar","common.photo_upload.uploading":"Enviando...","common.photo_upload.remove":"Remover foto","common.photo_upload.hint":"Recomendado: imagem quadrada, máximo 2 MB.","common.timezone.select":"Selecionar fuso horário","common.timezone.search":"Buscar fuso horário...","common.timezone.empty":"Fuso horário não encontrado","common.date_picker.select":"Selecionar data","common.cancel":"Cancelar","common.loading_more":"Carregando mais...","hashtags.title":"Hashtags","hashtags.description":"Crie grupos de hashtags para adicionar rapidamente aos seus posts","hashtags.search":"Buscar hashtags...","hashtags.new_group":"Novo Grupo","hashtags.no_groups_yet":"Nenhum grupo de hashtags ainda","hashtags.no_groups_description":"Crie grupos de hashtags para adicionar rapidamente hashtags populares aos seus posts","hashtags.no_search_results":"Nenhum grupo corresponde à sua busca","hashtags.try_different_search":"Tente outra palavra-chave ou limpe a busca.","hashtags.create_first_group":"Crie seu primeiro grupo","hashtags.hashtags_count":":count hashtags","hashtags.table.name":"Nome","hashtags.table.tags":"Hashtags","hashtags.table.count":"Quantidade","hashtags.table.created_at":"Criado","hashtags.create.title":"Criar Grupo de Hashtags","hashtags.create.description":"Dê um nome ao grupo e adicione hashtags separadas por espaços ou vírgulas","hashtags.create.name":"Nome do Grupo","hashtags.create.name_placeholder":"ex: Marketing, Viagem, Comida","hashtags.create.hashtags":"Hashtags","hashtags.create.hashtags_placeholder":"#marketing #redessociais #negocios #crescimento","hashtags.create.hashtags_hint":"Digite as hashtags separadas por espaços ou vírgulas. Inclua o símbolo #.","hashtags.create.submit":"Criar Grupo","hashtags.create.submitting":"Criando...","hashtags.edit.title":"Editar Grupo de Hashtags","hashtags.edit.description":"Atualize o nome e as hashtags deste grupo","hashtags.edit.name":"Nome do Grupo","hashtags.edit.name_placeholder":"ex: Marketing, Viagem, Comida","hashtags.edit.hashtags":"Hashtags","hashtags.edit.hashtags_placeholder":"#marketing #redessociais #negocios #crescimento","hashtags.edit.hashtags_hint":"Digite as hashtags separadas por espaços ou vírgulas. Inclua o símbolo #.","hashtags.edit.submit":"Salvar Alterações","hashtags.edit.submitting":"Salvando...","hashtags.delete.title":"Excluir Grupo de Hashtags","hashtags.delete.description":"Tem certeza que deseja excluir este grupo de hashtags? Esta ação não pode ser desfeita.","hashtags.delete.confirm":"Excluir","hashtags.delete.cancel":"Cancelar","hashtags.flash.created":"Grupo de hashtags criado com sucesso!","hashtags.flash.updated":"Grupo de hashtags atualizado com sucesso!","hashtags.flash.deleted":"Grupo de hashtags excluído com sucesso!","labels.title":"Etiquetas","labels.description":"Crie etiquetas para organizar e categorizar seus posts","labels.search":"Buscar etiquetas...","labels.new_label":"Nova Etiqueta","labels.no_labels_yet":"Nenhuma etiqueta ainda","labels.no_search_results":"Nenhuma etiqueta corresponde à sua busca","labels.try_different_search":"Tente outra palavra-chave ou limpe a busca.","labels.create_first_label":"Crie sua primeira etiqueta","labels.table.name":"Nome","labels.table.created_at":"Criado","labels.create.title":"Criar Etiqueta","labels.create.description":"Dê um nome e escolha uma cor para sua etiqueta","labels.create.name":"Nome","labels.create.name_placeholder":"Digite o nome da etiqueta...","labels.create.color":"Cor","labels.create.submit":"Criar Etiqueta","labels.create.submitting":"Criando...","labels.edit.title":"Editar Etiqueta","labels.edit.description":"Atualize o nome e a cor desta etiqueta","labels.edit.name":"Nome","labels.edit.name_placeholder":"Digite o nome da etiqueta...","labels.edit.color":"Cor","labels.edit.submit":"Salvar Alterações","labels.edit.submitting":"Salvando...","labels.delete.title":"Excluir Etiqueta","labels.delete.description":"Tem certeza que deseja excluir esta etiqueta? Esta ação não pode ser desfeita.","labels.delete.confirm":"Excluir","labels.delete.cancel":"Cancelar","labels.flash.created":"Etiqueta criada com sucesso!","labels.flash.updated":"Etiqueta atualizada com sucesso!","labels.flash.deleted":"Etiqueta excluída com sucesso!","mail.mentioned.subject":":name mencionou você no TryPost","mail.mentioned.title":":name mencionou você","mail.mentioned.intro":":name mencionou você num comentário.","mail.mentioned.cta":"Ver comentário","mail.workspace_connections_disconnected.subject":"{1} :count conta precisa ser reconectada em :workspace|[2,*] :count contas precisam ser reconectadas em :workspace","mail.workspace_connections_disconnected.title":"Contas Precisam ser Reconectadas","mail.workspace_connections_disconnected.intro":"As seguintes contas de redes sociais no seu workspace <strong>:workspace</strong> foram desconectadas e precisam ser reconectadas:","mail.workspace_connections_disconnected.reasons_title":"Isso pode ter acontecido porque:","mail.workspace_connections_disconnected.reason_expired":"Os tokens de acesso expiraram","mail.workspace_connections_disconnected.reason_revoked":"Você revogou o acesso ao TryPost na plataforma","mail.workspace_connections_disconnected.reason_changed":"A plataforma mudou os requisitos de autenticação","mail.workspace_connections_disconnected.reconnect_cta":"Por favor, reconecte essas contas para continuar agendando e publicando posts.","mail.workspace_connections_disconnected.button":"Reconectar Contas","pagination.previous":"« Anterior","pagination.next":"Próximo »","passwords.reset":"Sua senha foi redefinida.","passwords.sent":"Enviamos o link de redefinição de senha por e-mail.","passwords.throttled":"Por favor, aguarde antes de tentar novamente.","passwords.token":"Este token de redefinição de senha é inválido.","passwords.user":"Não conseguimos encontrar um usuário com esse endereço de e-mail.","posts.title":"Posts","posts.search":"Buscar posts...","posts.all_posts":"Todos os Posts","posts.new_post":"Novo Post","posts.no_posts":"Nenhum post encontrado","posts.no_search_results":"Nenhum post corresponde à sua busca","posts.try_different_search":"Tente outra palavra-chave ou limpe a busca.","posts.start_creating":"Comece criando seu primeiro post.","posts.table.status":"Status","posts.table.content":"Conteúdo","posts.table.platforms":"Plataformas","posts.table.labels":"Etiquetas","posts.table.scheduled_at":"Data","posts.table.actions":"","posts.manage_posts":"Gerencie todos os seus posts","posts.delete_confirm":"Tem certeza que deseja excluir este post?","posts.by":"por","posts.actions.view":"Ver post","posts.actions.delete":"Excluir post","posts.form.post_type":"Tipo de Post","posts.form.board":"Pasta","posts.form.select_board":"Selecione uma pasta","posts.form.search_board":"Buscar pasta...","posts.form.no_board_found":"Nenhuma pasta encontrada","posts.form.media":"Mídia","posts.form.min":"Mín","posts.form.uploading":"Enviando...","posts.form.drop_to_upload":"Solte para enviar","posts.form.drag_and_drop":"Arraste e solte ou clique para enviar","posts.form.photos_and_videos":"Fotos e vídeos","posts.form.photos_only":"Apenas fotos","posts.form.videos_only":"Apenas vídeos","posts.form.drag_to_reorder":"Arraste para reordenar","posts.form.caption":"Legenda","posts.form.write_caption":"Escreva sua legenda...","posts.form.tiktok.settings":"Configurações do TikTok","posts.form.tiktok.posting_to":"Publicando em","posts.form.tiktok.privacy_level":"Quem pode ver este vídeo?","posts.form.tiktok.privacy_placeholder":"Selecione a visibilidade","posts.form.tiktok.privacy.public":"Público para todos","posts.form.tiktok.privacy.friends":"Amigos em comum","posts.form.tiktok.privacy.followers":"Seguidores","posts.form.tiktok.privacy.private":"Apenas eu","posts.form.tiktok.privacy_hint":"As opções disponíveis dependem das configurações da sua conta TikTok.","posts.form.tiktok.auto_add_music":"Adicionar música automaticamente","posts.form.tiktok.auto_add_music_hint":"Disponível apenas para fotos. Adiciona uma música padrão que pode ser alterada depois.","posts.form.tiktok.yes":"Sim","posts.form.tiktok.no":"Não","posts.form.tiktok.allow_users":"Permitir que usuários:","posts.form.tiktok.comments":"Comentem","posts.form.tiktok.duet":"Dueto","posts.form.tiktok.stitch":"Stitch","posts.form.tiktok.is_aigc":"Vídeo feito com IA","posts.form.tiktok.disclose":"Divulgar conteúdo do vídeo","posts.form.tiktok.disclose_hint":"Ative para divulgar que este vídeo promove bens ou serviços em troca de algo de valor. Seu vídeo pode promover você, terceiros ou ambos.","posts.form.tiktok.promotional_organic_title":"Sua foto/vídeo será rotulado como \"Conteúdo Promocional\".","posts.form.tiktok.promotional_paid_title":"Sua foto/vídeo será rotulado como \"Parceria paga\".","posts.form.tiktok.promotional_description":"Isso não poderá ser alterado após a publicação.","posts.form.tiktok.compliance_incomplete":"Você precisa indicar se o conteúdo promove você mesmo, terceiros ou ambos.","posts.form.tiktok.branded_blocks_private":"Conteúdo patrocinado não pode ser privado. Escolha Público ou Amigos em comum.","posts.form.tiktok.interaction_disabled_by_creator":"Desativado pelas configurações da sua conta TikTok.","posts.form.tiktok.max_duration_exceeded":"Vídeo tem :duration s mas esta conta só permite vídeos de até :max s.","posts.form.tiktok.creator_info_loading":"Carregando configurações da sua conta TikTok…","posts.form.tiktok.processing_hint":"Após publicar, pode levar alguns minutos para o conteúdo ser processado e aparecer no seu perfil TikTok.","posts.form.tiktok.brand_organic":"Sua marca","posts.form.tiktok.brand_organic_hint":"Você está promovendo você mesmo ou sua própria marca. Este vídeo será classificado como Brand Organic.","posts.form.tiktok.brand_content":"Conteúdo patrocinado","posts.form.tiktok.brand_content_hint":"Você está promovendo outra marca ou terceiros. Este vídeo será classificado como Branded Content.","posts.form.tiktok.compliance.agree":"Ao publicar, você concorda com a","posts.form.tiktok.compliance.music_usage":"Confirmação de Uso de Música","posts.form.tiktok.compliance.and":"e","posts.form.tiktok.compliance.branded_policy":"Política de Conteúdo Patrocinado","posts.form.instagram.settings":"Configurações do Instagram","posts.form.instagram.posting_to":"Publicando em","posts.form.instagram.variant_label":"Tipo de publicação","posts.form.instagram.variant.feed":"Post","posts.form.instagram.variant.reel":"Reel","posts.form.instagram.variant.story":"Story","posts.form.instagram.aspect_label":"Proporção","posts.form.instagram.aspect.square":"Quadrado (1:1)","posts.form.instagram.aspect.portrait":"Retrato (4:5)","posts.form.instagram.aspect.landscape":"Paisagem (16:9)","posts.form.instagram.aspect.original":"Original","posts.form.facebook.settings":"Configurações do Facebook","posts.form.facebook.posting_to":"Publicando em","posts.form.facebook.variant_label":"Tipo de publicação","posts.form.facebook.variant.post":"Post","posts.form.facebook.variant.reel":"Reel","posts.form.facebook.variant.story":"Story","posts.form.linkedin.settings":"Configurações do LinkedIn","posts.form.linkedin.settings_page":"Configurações da Página do LinkedIn","posts.form.linkedin.posting_to":"Publicando em","posts.form.linkedin.variant_label":"Tipo de publicação","posts.form.linkedin.variant.post":"Post","posts.form.linkedin.variant.carousel":"Carrossel","posts.form.pinterest.settings":"Configurações do Pinterest","posts.form.pinterest.posting_to":"Publicando em","posts.form.pinterest.variant_label":"Tipo de pin","posts.form.pinterest.variant.pin":"Pin","posts.form.pinterest.variant.video_pin":"Video Pin","posts.form.pinterest.variant.carousel":"Carrossel","posts.form.warnings.no_variant":"Escolha um tipo de publicação para continuar.","posts.form.warnings.requires_media":"Este tipo exige pelo menos uma imagem ou vídeo.","posts.form.warnings.max_files_exceeded":"Este tipo aceita até :max arquivos (você tem :current).","posts.form.warnings.min_files_required":"Este tipo exige pelo menos :min arquivos (você tem :current).","posts.form.warnings.no_video_allowed":"Este tipo não aceita vídeos.","posts.form.warnings.no_image_allowed":"Este tipo aceita apenas vídeos.","posts.form.warnings.gif_not_allowed":"Esta rede não aceita GIF. Remova o GIF ou escolha outra rede.","posts.form.warnings.image_too_large":"A imagem passa do limite de :max (a sua tem :current).","posts.form.warnings.video_too_large":"O vídeo passa do limite de :max (o seu tem :current).","posts.form.warnings.video_too_long":"O vídeo dura :current, mas este tipo permite no máximo :max.","posts.form.warnings.aspect_ratio_too_narrow":"A proporção :current está muito alta (mínimo :min).","posts.form.warnings.aspect_ratio_too_wide":"A proporção :current está muito larga (máximo :max).","posts.status.pending":"Pendente","posts.status.draft":"Rascunho","posts.status.scheduled":"Agendado","posts.status.publishing":"Publicando","posts.status.published":"Publicado","posts.status.partially_published":"Parcialmente Publicado","posts.status.failed":"Falhou","posts.descriptions.draft":"Posts aguardando agendamento","posts.descriptions.scheduled":"Posts agendados para publicação","posts.descriptions.published":"Posts já publicados","posts.show.title":"Detalhes do Post","posts.show.edit":"Editar","posts.show.no_content":"Sem legenda","posts.show.platforms":"Plataformas","posts.show.no_platforms":"Nenhuma plataforma selecionada.","posts.show.view_on_platform":"Ver na plataforma","posts.show.published_on":"Publicado em :date","posts.show.scheduled_for":"Agendado para :date","posts.show.draft":"Rascunho","posts.show.status_pending":"Pendente","posts.show.metrics":"Métricas","posts.show.metrics_loading":"Carregando métricas…","posts.show.metrics_unavailable":"Métricas ainda não disponíveis para esta plataforma.","posts.show.metrics_empty":"Nenhuma métrica retornada.","posts.show.summary.platforms":"Plataformas","posts.show.summary.published":"Publicado","posts.show.summary.failed":"Falhou","posts.edit.title":"Editar Post","posts.edit.view_title":"Visualizar Post","posts.edit.manage_platforms":"Gerenciar plataformas","posts.edit.sync":"Sincronizar","posts.edit.labels":"Etiqueta","posts.edit.hashtags":"Hashtags","posts.edit.schedule":"Agendar","posts.edit.publish":"Publicar","posts.edit.delete":"Excluir","posts.edit.settings":"Configurações","posts.edit.schedule_for":"Agendar para","posts.edit.scheduled_for":"Agendado para","posts.edit.saving":"Salvando...","posts.edit.saved":"Salvo","posts.edit.draft":"Rascunho","posts.edit.scheduled_at":"Agendado:","posts.edit.published_at":"Publicado:","posts.edit.media":"Mídia","posts.edit.add_media":"Adicionar mídia","posts.edit.caption":"Legenda","posts.edit.caption_placeholder":"Escreva sua legenda...","posts.edit.compose_title":"Crie um post","posts.edit.compose_subtitle":"Componha sua mensagem e adicione mídia","posts.edit.preview_empty.title":"Nenhuma plataforma selecionada","posts.edit.preview_empty.description":"Selecione uma plataforma para publicar e ver o preview.","posts.edit.drag_drop":"Solte os arquivos para enviar","posts.edit.drag_drop_hint":"Arraste arquivos aqui ou use os botões acima","posts.edit.drop_zone_title":"Adicionar mídia","posts.edit.drop_zone_subtitle":"Arraste arquivos ou clique para selecionar","posts.edit.add":"Adicionar","posts.edit.publish_to":"Publicar em","posts.edit.organize":"Organizar","posts.edit.no_caption":"Sem legenda","posts.edit.no_content":"Sem conteúdo","posts.edit.no_labels":"Nenhuma etiqueta criada ainda","posts.edit.pick_time":"Escolher horário","posts.edit.post_now":"Publicar agora","posts.edit.time":"Horário","posts.edit.cancel":"Cancelar","posts.edit.schedule_date":"Data de agendamento","posts.edit.view_on_platform":"Ver na plataforma","posts.edit.platform_status":"Status da plataforma","posts.edit.compliance_incomplete":"Algumas configurações de plataforma estão incompletas ou incompatíveis com a mídia anexada.","posts.edit.compliance.requires_media":"Adicione uma imagem ou vídeo para publicar aqui.","posts.edit.compliance.too_many_files":"Apenas :max arquivo(s) permitido(s) para este formato.","posts.edit.compliance.too_few_files":"Adicione pelo menos :min arquivos para este formato.","posts.edit.compliance.no_videos":"Apenas imagens são permitidas neste formato.","posts.edit.compliance.no_images":"Apenas vídeos são permitidos neste formato.","posts.edit.compliance.no_gifs":"GIFs não são suportados aqui.","posts.edit.compliance.video_too_large":"Vídeo excede o limite de tamanho desta plataforma.","posts.edit.compliance.video_too_long":"Vídeo deve ter menos de :seconds segundos neste formato.","posts.edit.compliance.image_too_large":"Imagem excede o limite de tamanho desta plataforma.","posts.edit.compliance.aspect_ratio_invalid":"A proporção da imagem não é suportada por este formato.","posts.edit.compliance.no_content_type":"Escolha um tipo de conteúdo para esta plataforma.","posts.edit.publishing":"Publicando...","posts.edit.publishing_overlay_title":"Seu post está sendo publicado","posts.edit.publishing_overlay_subtitle":"Isso pode levar alguns instantes. Você pode sair desta página sem problemas.","posts.edit.tabs.preview":"Pré-visualização","posts.edit.tabs.schedule":"Agendamento","posts.edit.tabs.comments":"Comentários","posts.edit.tabs.comments_empty":"Nenhum comentário ainda.","posts.edit.tabs.writing_assistant":"Assistente IA","posts.edit.tabs.writing_assistant_empty":"Assistente de escrita em breve.","posts.edit.media_picker.title":"Escolher da galeria","posts.edit.media_picker.search":"Buscar mídia...","posts.edit.media_picker.empty":"Sua galeria ainda está vazia","posts.edit.media_picker.cancel":"Cancelar","posts.edit.media_picker.add":"Adicionar","posts.edit.media_picker.add_count":"Adicionar :count","posts.edit.emoji_picker.search":"Buscar emoji","posts.edit.emoji_picker.empty":"Nenhum emoji encontrado","posts.edit.emoji_picker.recent":"Usados recentemente","posts.edit.emoji_picker.smileys":"Sorrisos e emoções","posts.edit.emoji_picker.people":"Pessoas e corpo","posts.edit.emoji_picker.nature":"Animais e natureza","posts.edit.emoji_picker.food":"Comidas e bebidas","posts.edit.emoji_picker.activities":"Atividades","posts.edit.emoji_picker.travel":"Viagens e lugares","posts.edit.emoji_picker.objects":"Objetos","posts.edit.emoji_picker.symbols":"Símbolos","posts.edit.emoji_picker.flags":"Bandeiras","posts.edit.status.published":"Publicado","posts.edit.status.publishing":"Publicando...","posts.edit.status.failed":"Falhou","posts.edit.empty_state.title":"Nenhuma plataforma selecionada","posts.edit.empty_state.description":"Selecione pelo menos uma plataforma para criar seu post","posts.edit.delete_modal.title":"Excluir Post","posts.edit.delete_modal.description":"Tem certeza que deseja excluir este post? Esta ação não pode ser desfeita.","posts.edit.delete_modal.action":"Excluir","posts.edit.delete_modal.cancel":"Cancelar","posts.edit.sync_enable.title":"Ativar sincronização?","posts.edit.sync_enable.description":"Todas as plataformas compartilharão o mesmo conteúdo. Qualquer edição personalizada feita em plataformas individuais será substituída pelo conteúdo atual.","posts.edit.sync_enable.cancel":"Cancelar","posts.edit.sync_enable.action":"Ativar sincronização","posts.edit.sync_disable.title":"Desativar sincronização?","posts.edit.sync_disable.description":"Cada plataforma manterá seu conteúdo atual, mas edições futuras serão aplicadas apenas à plataforma que você estiver editando.","posts.edit.sync_disable.customize_note":"Você poderá personalizar o conteúdo para cada plataforma individualmente.","posts.edit.sync_disable.cancel":"Cancelar","posts.edit.sync_disable.action":"Desativar sincronização","posts.edit.platforms_dialog.title":"Selecionar Plataformas","posts.edit.platforms_dialog.description":"Escolha em quais plataformas publicar este post.","posts.edit.hashtags_modal.search":"Buscar hashtags...","posts.edit.hashtags_modal.no_results":"Nenhuma hashtag encontrada.","posts.edit.validation.select_board":"Selecione uma pasta","posts.edit.validation.images_not_supported":"Imagens não suportadas","posts.edit.validation.videos_not_supported":"Vídeos não suportados","posts.edit.validation.max_images":"Máx :count imagens","posts.edit.validation.requires_media":"Requer mídia","posts.edit.validation.requires_content":"Texto é obrigatório","posts.edit.validation.exceeded":":count excedido","posts.edit.validation.does_not_support_images":":platform não suporta imagens","posts.edit.validation.supports_up_to_images":":platform suporta até :count imagens","posts.edit.validation.does_not_support_videos":":platform não suporta vídeos","posts.content_types.instagram_feed.label":"Post do Feed","posts.content_types.instagram_feed.description":"Aparece no seu feed e perfil","posts.content_types.instagram_reel.label":"Reels","posts.content_types.instagram_reel.description":"Vídeo curto de até 90 segundos","posts.content_types.instagram_story.label":"Story","posts.content_types.instagram_story.description":"Desaparece após 24 horas","posts.content_types.linkedin_post.label":"Post","posts.content_types.linkedin_post.description":"Post padrão com texto e mídia","posts.content_types.linkedin_carousel.label":"Carrossel","posts.content_types.linkedin_carousel.description":"Imagens deslizáveis","posts.content_types.linkedin_page_post.label":"Post","posts.content_types.linkedin_page_post.description":"Post padrão com texto e mídia","posts.content_types.linkedin_page_carousel.label":"Carrossel","posts.content_types.linkedin_page_carousel.description":"Imagens deslizáveis","posts.content_types.facebook_post.label":"Post","posts.content_types.facebook_post.description":"Post padrão na sua página","posts.content_types.facebook_reel.label":"Reels","posts.content_types.facebook_reel.description":"Vídeo curto de até 90 segundos","posts.content_types.facebook_story.label":"Story","posts.content_types.facebook_story.description":"Desaparece após 24 horas","posts.content_types.tiktok_video.label":"Vídeo","posts.content_types.tiktok_video.description":"Conteúdo de vídeo curto","posts.content_types.youtube_short.label":"Short","posts.content_types.youtube_short.description":"Vídeo vertical de até 60 segundos","posts.content_types.x_post.label":"Post","posts.content_types.x_post.description":"Tweet com texto e mídia","posts.content_types.threads_post.label":"Post","posts.content_types.threads_post.description":"Post de texto com mídia opcional","posts.content_types.pinterest_pin.label":"Pin","posts.content_types.pinterest_pin.description":"Pin de imagem com link","posts.content_types.pinterest_video_pin.label":"Pin de Vídeo","posts.content_types.pinterest_video_pin.description":"Conteúdo em vídeo","posts.content_types.pinterest_carousel.label":"Carrossel","posts.content_types.pinterest_carousel.description":"2-5 imagens","posts.content_types.bluesky_post.label":"Post","posts.content_types.bluesky_post.description":"Post de texto com imagens opcionais","posts.content_types.mastodon_post.label":"Post","posts.content_types.mastodon_post.description":"Post de texto com mídia opcional","posts.platforms.linkedin":"LinkedIn","posts.platforms.linkedin-page":"Página do LinkedIn","posts.platforms.x":"X","posts.platforms.tiktok":"TikTok","posts.platforms.youtube":"YouTube Shorts","posts.platforms.facebook":"Página do Facebook","posts.platforms.instagram":"Instagram","posts.platforms.threads":"Threads","posts.platforms.pinterest":"Pinterest","posts.platforms.bluesky":"Bluesky","posts.platforms.mastodon":"Mastodon","posts.flash.scheduled":"Post agendado com sucesso!","posts.flash.publishing":"Post está sendo publicado! Pode levar alguns minutos para processar e aparecer em cada plataforma.","posts.flash.deleted":"Post excluído com sucesso!","posts.flash.cannot_edit_published":"Posts publicados não podem ser editados.","posts.flash.cannot_delete_published":"Posts publicados não podem ser excluídos.","posts.flash.connect_first":"Conecte pelo menos uma rede social antes de criar um post.","posts.errors.account_disconnected":"Conta social está desconectada","posts.errors.account_inactive":"Conta social está desativada","settings.title":"Configurações","settings.description":"Gerencie seu perfil e configurações da conta","settings.nav.profile":"Perfil","settings.nav.password":"Senha","settings.nav.workspace":"Workspace","settings.nav.members":"Membros","settings.nav.notifications":"Notificações","settings.nav.billing":"Faturamento","settings.notifications.title":"Preferências de notificações","settings.notifications.heading":"Notificações por e-mail","settings.notifications.description":"Escolha quais notificações por e-mail deseja receber","settings.notifications.post_published":"Post publicado","settings.notifications.post_published_description":"Receber um e-mail quando seu post for publicado com sucesso","settings.notifications.post_failed":"Post falhou","settings.notifications.post_failed_description":"Receber um e-mail quando seu post falhar ao publicar","settings.notifications.account_disconnected":"Conta desconectada","settings.notifications.account_disconnected_description":"Receber um e-mail quando uma conta social for desconectada","settings.notifications.save":"Salvar preferências","settings.profile.title":"Configurações do perfil","settings.profile.photo_heading":"Foto do perfil","settings.profile.photo_description":"Envie uma foto de perfil","settings.profile.heading":"Informações do perfil","settings.profile.description":"Atualize seu nome e endereço de e-mail","settings.profile.avatar":"Avatar","settings.profile.name":"Nome","settings.profile.name_placeholder":"Nome completo","settings.profile.email":"Endereço de e-mail","settings.profile.email_placeholder":"Endereço de e-mail","settings.profile.email_unverified":"Seu endereço de e-mail não foi verificado.","settings.profile.resend_verification":"Clique aqui para reenviar o e-mail de verificação.","settings.profile.verification_sent":"Um novo link de verificação foi enviado para seu endereço de e-mail.","settings.profile.save":"Salvar","settings.password.title":"Configurações de senha","settings.password.heading":"Atualizar senha","settings.password.description":"Certifique-se de que sua conta esteja usando uma senha longa e aleatória para se manter seguro","settings.password.current_password":"Senha atual","settings.password.current_password_placeholder":"Senha atual","settings.password.new_password":"Nova senha","settings.password.new_password_placeholder":"Nova senha","settings.password.confirm_password":"Confirmar senha","settings.password.confirm_password_placeholder":"Confirmar senha","settings.password.save":"Salvar senha","settings.delete_account.heading":"Excluir conta","settings.delete_account.description":"Exclua sua conta e todos os seus recursos","settings.delete_account.warning":"Atenção","settings.delete_account.warning_message":"Por favor, prossiga com cuidado, isso não pode ser desfeito.","settings.delete_account.button":"Excluir conta","settings.delete_account.modal_title":"Tem certeza que deseja excluir sua conta?","settings.delete_account.modal_description":"Uma vez que sua conta for excluída, todos os seus recursos e dados também serão permanentemente excluídos. Por favor, digite sua senha para confirmar que deseja excluir permanentemente sua conta.","settings.delete_account.password":"Senha","settings.delete_account.password_placeholder":"Senha","settings.delete_account.cancel":"Cancelar","settings.delete_account.confirm":"Excluir conta","settings.workspace.tabs.workspace":"Workspace","settings.workspace.tabs.brand":"Marca","settings.workspace.tabs.users":"Membros","settings.workspace.tabs.api_keys":"API Keys","settings.workspace.title":"Configurações do workspace","settings.workspace.logo_heading":"Logo do workspace","settings.workspace.logo_description":"Envie um logo para o workspace","settings.workspace.heading":"Nome do workspace","settings.workspace.description":"Atualize o nome do workspace","settings.workspace.members_heading":"Membros","settings.workspace.members_description":"Gerencie membros e convites do workspace","settings.workspace.name":"Nome","settings.workspace.name_placeholder":"Meu Workspace","settings.workspace.save":"Salvar","settings.brand.title":"Marca","settings.brand.description":"Configure a identidade da sua marca para os conteúdos gerados por AI.","settings.brand.website":"Site","settings.brand.website_placeholder":"https://suamarca.com","settings.brand.brand_description":"Descrição","settings.brand.brand_description_placeholder":"Conte sobre sua marca, o que você faz e quem é seu público...","settings.brand.tone":"Tom de voz","settings.brand.tone_professional":"Profissional","settings.brand.tone_casual":"Casual","settings.brand.tone_friendly":"Amigável","settings.brand.tone_bold":"Ousado","settings.brand.tone_inspirational":"Inspirador","settings.brand.tone_humorous":"Bem-humorado","settings.brand.tone_educational":"Educacional","settings.brand.voice_notes":"Notas de voz","settings.brand.voice_notes_placeholder":"Diretrizes adicionais de escrita, palavras a evitar, preferências de estilo...","settings.brand.brand_color":"Cor da marca","settings.brand.background_color":"Cor de fundo","settings.brand.text_color":"Cor do texto","settings.brand.content_language":"Idioma do conteúdo","settings.brand.content_language_description":"Idioma usado nas legendas, hashtags e em qualquer texto dentro de imagens ou vídeos gerados por AI.","settings.members.title":"Membros","settings.members.heading":"Membros da equipe","settings.members.description":"Gerencie membros e convites deste workspace","settings.members.cancel":"Cancelar","settings.members.remove":"Remover","settings.members.make_admin":"Tornar administrador","settings.members.make_member":"Tornar membro","settings.members.invite.title":"Convidar Membro","settings.members.invite.description":"Envie um convite por e-mail para adicionar colaboradores","settings.members.invite.email":"E-mail","settings.members.invite.email_placeholder":"[email protected]","settings.members.invite.role":"Função","settings.members.invite.role_placeholder":"Selecione uma função","settings.members.invite.submit":"Enviar Convite","settings.members.pending.title":"Convites Pendentes","settings.members.pending.description":"Convites aguardando aceitação","settings.members.pending.empty":"Nenhum convite pendente","settings.members.list.title":"Membros","settings.members.list.description":"Pessoas com acesso a este workspace","settings.members.list.empty":"Nenhum membro além do proprietário","settings.members.remove_modal.title":"Remover membro","settings.members.remove_modal.description":"Tem certeza que deseja remover este membro do workspace? Ele perderá acesso a todos os recursos do workspace.","settings.members.remove_modal.action":"Remover membro","settings.members.cancel_invite_modal.title":"Cancelar convite","settings.members.cancel_invite_modal.description":"Tem certeza que deseja cancelar este convite?","settings.members.cancel_invite_modal.action":"Cancelar convite","settings.members.roles.owner":"Proprietário","settings.members.roles.admin":"Administrador","settings.members.roles.member":"Membro","settings.members.roles.viewer":"Visualizador","settings.members.flash.invite_sent":"Convite enviado com sucesso!","settings.members.flash.invite_deleted":"Convite excluído.","settings.members.flash.member_removed":"Membro removido com sucesso.","settings.members.flash.role_updated":"Função do membro atualizada.","settings.members.flash.wrong_email":"Este convite é para um endereço de e-mail diferente.","settings.members.flash.already_member":"Você já é membro deste workspace.","settings.members.flash.invite_accepted":"Bem-vindo! Você agora é membro do workspace.","settings.members.flash.invite_declined":"Convite recusado.","settings.flash.profile_updated":"Perfil atualizado com sucesso!","settings.flash.language_updated":"Idioma atualizado com sucesso!","settings.flash.password_updated":"Senha atualizada com sucesso!","settings.flash.workspace_updated":"Configurações atualizadas com sucesso!","settings.flash.photo_updated":"Foto atualizada com sucesso!","settings.flash.photo_deleted":"Foto removida com sucesso!","settings.flash.logo_updated":"Logo enviado com sucesso!","settings.flash.logo_deleted":"Logo removido com sucesso!","settings.flash.notifications_updated":"Preferências de notificações atualizadas!","settings.api_keys.title":"Chaves API","settings.api_keys.page_title":"Chaves API","settings.api_keys.heading":"Chaves API","settings.api_keys.description":"Gerencie chaves API para acesso programático ao seu workspace.","settings.api_keys.create":"Criar chave API","settings.api_keys.copy":"Copiar","settings.api_keys.new_token_message":"Sua nova chave API foi criada. Copie agora — você não poderá vê-la novamente.","settings.api_keys.table.name":"Nome","settings.api_keys.table.key":"Chave","settings.api_keys.table.status":"Status","settings.api_keys.table.expires":"Expira","settings.api_keys.table.last_used":"Último uso","settings.api_keys.table.never":"Nunca","settings.api_keys.actions.copy_id":"Copiar ID da chave API","settings.api_keys.actions.copy_id_success":"ID da chave API copiado","settings.api_keys.actions.delete":"Excluir","settings.api_keys.empty.title":"Nenhuma chave API","settings.api_keys.empty.description":"Crie uma chave API para acessar seu workspace programaticamente.","settings.api_keys.delete_modal.title":"Excluir chave API","settings.api_keys.delete_modal.description":"Tem certeza que deseja excluir esta chave API? Aplicações que a usam perderão acesso imediatamente.","settings.api_keys.delete_modal.action":"Excluir chave API","settings.api_keys.create_dialog.title":"Criar chave API","settings.api_keys.create_dialog.description":"Crie uma nova chave API para acesso programático ao seu workspace.","settings.api_keys.create_dialog.name":"Nome","settings.api_keys.create_dialog.name_placeholder":"ex. Chave API de Produção","settings.api_keys.create_dialog.expires":"Data de expiração (opcional)","settings.api_keys.create_dialog.expires_placeholder":"Sem expiração","settings.api_keys.create_dialog.submit":"Criar","settings.api_keys.create_dialog.cancel":"Cancelar","settings.api_keys.flash.created":"Chave de API criada com sucesso!","settings.api_keys.flash.deleted":"Chave de API excluída com sucesso!","sidebar.workspaces":"Espaços de trabalho","sidebar.select_workspace":"Selecionar workspace","sidebar.create_workspace":"Criar workspace","sidebar.create_post":"Novo post","sidebar.profile":"Perfil","sidebar.log_out":"Sair","sidebar.workspace.connections":"Conexões","sidebar.workspace.hashtags":"Hashtags","sidebar.workspace.labels":"Etiquetas","sidebar.workspace.assets":"Mídias","sidebar.workspace.api_keys":"API Keys","sidebar.workspace.settings":"Configurações","sidebar.workspace_select":"Workspace: Selecionar","sidebar.theme":"Tema: :name","sidebar.theme_light":"Claro","sidebar.theme_dark":"Escuro","sidebar.theme_system":"Sistema","sidebar.language":"Idioma: :name","sidebar.language_select":"Idioma: Selecionar","sidebar.groups.posts":"Posts","sidebar.groups.workspace":"Workspace","sidebar.groups.account":"Conta","sidebar.groups.support":"Suporte","sidebar.analytics":"Analytics","sidebar.posts.calendar":"Calendário","sidebar.posts.all":"Todos","sidebar.posts.scheduled":"Agendados","sidebar.posts.posted":"Publicados","sidebar.posts.drafts":"Rascunhos","sidebar.account.settings":"Configurações","sidebar.account.usage":"Uso","sidebar.account.billing":"Faturamento","sidebar.notifications":"Notificações","sidebar.mark_all_read":"Marcar tudo como lido","sidebar.mark_as_read":"Marcar como lido","sidebar.archive_all":"Arquivar tudo","sidebar.no_notifications":"Sem notificações","sidebar.support.discord":"Discord","sidebar.support.share_feedback":"Enviar feedback","sidebar.support.last_updates":"Últimas Atualizações","sidebar.support.docs":"Documentação","usage.title":"Uso","usage.section_account":"Conta","usage.section_account_description":"Cotas e limites do seu plano :plan.","usage.section_ai":"Geração AI","usage.section_ai_description":"Uso de geração de imagens e vídeos AI do mês atual.","usage.section_data":"Dados","usage.section_data_description":"Retenção de dados e armazenamento do seu plano.","usage.workspaces":"Workspaces","usage.social_accounts":"Contas Sociais","usage.members":"Membros","usage.ai_images":"Imagens","usage.ai_videos":"Vídeos","usage.data_retention":"Retenção de Dados","usage.unlimited":"Ilimitado","usage.days":"dias","usage.year":"ano","usage.years":"anos","validation.accepted":"O campo :attribute deve ser aceito.","validation.accepted_if":"O campo :attribute deve ser aceito quando :other for :value.","validation.active_url":"O campo :attribute deve ser uma URL válida.","validation.after":"O campo :attribute deve ser uma data posterior a :date.","validation.after_or_equal":"O campo :attribute deve ser uma data posterior ou igual a :date.","validation.alpha":"O campo :attribute deve conter apenas letras.","validation.alpha_dash":"O campo :attribute deve conter apenas letras, números, hifens e underscores.","validation.alpha_num":"O campo :attribute deve conter apenas letras e números.","validation.any_of":"O campo :attribute é inválido.","validation.array":"O campo :attribute deve ser um array.","validation.ascii":"O campo :attribute deve conter apenas caracteres alfanuméricos e símbolos de um byte.","validation.before":"O campo :attribute deve ser uma data anterior a :date.","validation.before_or_equal":"O campo :attribute deve ser uma data anterior ou igual a :date.","validation.between.array":"O campo :attribute deve ter entre :min e :max itens.","validation.between.file":"O campo :attribute deve estar entre :min e :max kilobytes.","validation.between.numeric":"O campo :attribute deve estar entre :min e :max.","validation.between.string":"O campo :attribute deve estar entre :min e :max caracteres.","validation.boolean":"O campo :attribute deve ser verdadeiro ou falso.","validation.can":"O campo :attribute contém um valor não autorizado.","validation.confirmed":"A confirmação do campo :attribute não corresponde.","validation.contains":"O campo :attribute está faltando um valor obrigatório.","validation.current_password":"A senha está incorreta.","validation.date":"O campo :attribute deve ser uma data válida.","validation.date_equals":"O campo :attribute deve ser uma data igual a :date.","validation.date_format":"O campo :attribute deve corresponder ao formato :format.","validation.decimal":"O campo :attribute deve ter :decimal casas decimais.","validation.declined":"O campo :attribute deve ser recusado.","validation.declined_if":"O campo :attribute deve ser recusado quando :other for :value.","validation.different":"O campo :attribute e :other devem ser diferentes.","validation.digits":"O campo :attribute deve ter :digits dígitos.","validation.digits_between":"O campo :attribute deve ter entre :min e :max dígitos.","validation.dimensions":"O campo :attribute deve ter dimensões de imagem válidas.","validation.distinct":"O campo :attribute tem um valor duplicado.","validation.doesnt_contain":"O campo :attribute não deve conter nenhum dos seguintes: :values.","validation.doesnt_end_with":"O campo :attribute não deve terminar com nenhum dos seguintes: :values.","validation.doesnt_start_with":"O campo :attribute não deve começar com nenhum dos seguintes: :values.","validation.email":"O campo :attribute deve ser um endereço de e-mail válido.","validation.encoding":"O campo :attribute deve ser codificado em :encoding.","validation.ends_with":"O campo :attribute deve terminar com um dos seguintes: :values.","validation.enum":"O :attribute selecionado é inválido.","validation.exists":"O :attribute selecionado é inválido.","validation.extensions":"O campo :attribute deve ter uma das seguintes extensões: :values.","validation.file":"O campo :attribute deve ser um arquivo.","validation.filled":"O campo :attribute deve ter um valor.","validation.gt.array":"O campo :attribute deve ter mais de :value itens.","validation.gt.file":"O campo :attribute deve ser maior que :value kilobytes.","validation.gt.numeric":"O campo :attribute deve ser maior que :value.","validation.gt.string":"O campo :attribute deve ser maior que :value caracteres.","validation.gte.array":"O campo :attribute deve ter :value itens ou mais.","validation.gte.file":"O campo :attribute deve ser maior ou igual a :value kilobytes.","validation.gte.numeric":"O campo :attribute deve ser maior ou igual a :value.","validation.gte.string":"O campo :attribute deve ser maior ou igual a :value caracteres.","validation.hex_color":"O campo :attribute deve ser uma cor hexadecimal válida.","validation.image":"O campo :attribute deve ser uma imagem.","validation.in":"O :attribute selecionado é inválido.","validation.in_array":"O campo :attribute deve existir em :other.","validation.in_array_keys":"O campo :attribute deve conter pelo menos uma das seguintes chaves: :values.","validation.integer":"O campo :attribute deve ser um inteiro.","validation.ip":"O campo :attribute deve ser um endereço IP válido.","validation.ipv4":"O campo :attribute deve ser um endereço IPv4 válido.","validation.ipv6":"O campo :attribute deve ser um endereço IPv6 válido.","validation.json":"O campo :attribute deve ser uma string JSON válida.","validation.list":"O campo :attribute deve ser uma lista.","validation.lowercase":"O campo :attribute deve estar em minúsculas.","validation.lt.array":"O campo :attribute deve ter menos de :value itens.","validation.lt.file":"O campo :attribute deve ser menor que :value kilobytes.","validation.lt.numeric":"O campo :attribute deve ser menor que :value.","validation.lt.string":"O campo :attribute deve ser menor que :value caracteres.","validation.lte.array":"O campo :attribute deve ter :value itens ou menos.","validation.lte.file":"O campo :attribute deve ser menor ou igual a :value kilobytes.","validation.lte.numeric":"O campo :attribute deve ser menor ou igual a :value.","validation.lte.string":"O campo :attribute deve ser menor ou igual a :value caracteres.","validation.mac_address":"O campo :attribute deve ser um endereço MAC válido.","validation.max.array":"O campo :attribute deve ter no máximo :max itens.","validation.max.file":"O campo :attribute deve ter no máximo :max kilobytes.","validation.max.numeric":"O campo :attribute deve ter no máximo :max.","validation.max.string":"O campo :attribute deve ter no máximo :max caracteres.","validation.max_digits":"O campo :attribute não deve ter mais que :max dígitos.","validation.mimes":"O campo :attribute deve ser um arquivo do tipo: :values.","validation.mimetypes":"O campo :attribute deve ser um arquivo do tipo: :values.","validation.min.array":"O campo :attribute deve ter pelo menos :min itens.","validation.min.file":"O campo :attribute deve ter pelo menos :min kilobytes.","validation.min.numeric":"O campo :attribute deve ter pelo menos :min.","validation.min.string":"O campo :attribute deve ter pelo menos :min caracteres.","validation.min_digits":"O campo :attribute deve ter pelo menos :min dígitos.","validation.missing":"O campo :attribute deve estar ausente.","validation.missing_if":"O campo :attribute deve estar ausente quando :other for :value.","validation.missing_unless":"O campo :attribute deve estar ausente a menos que :other seja :value.","validation.missing_with":"O campo :attribute deve estar ausente quando :values estiver presente.","validation.missing_with_all":"O campo :attribute deve estar ausente quando :values estiverem presentes.","validation.multiple_of":"O campo :attribute deve ser um múltiplo de :value.","validation.not_in":"O :attribute selecionado é inválido.","validation.not_regex":"O formato do campo :attribute é inválido.","validation.numeric":"O campo :attribute deve ser um número.","validation.password.letters":"O campo :attribute deve conter pelo menos uma letra.","validation.password.mixed":"O campo :attribute deve conter pelo menos uma letra maiúscula e uma minúscula.","validation.password.numbers":"O campo :attribute deve conter pelo menos um número.","validation.password.symbols":"O campo :attribute deve conter pelo menos um símbolo.","validation.password.uncompromised":"O :attribute fornecido apareceu em um vazamento de dados. Por favor, escolha um :attribute diferente.","validation.present":"O campo :attribute deve estar presente.","validation.present_if":"O campo :attribute deve estar presente quando :other for :value.","validation.present_unless":"O campo :attribute deve estar presente a menos que :other seja :value.","validation.present_with":"O campo :attribute deve estar presente quando :values estiver presente.","validation.present_with_all":"O campo :attribute deve estar presente quando :values estiverem presentes.","validation.prohibited":"O campo :attribute é proibido.","validation.prohibited_if":"O campo :attribute é proibido quando :other for :value.","validation.prohibited_if_accepted":"O campo :attribute é proibido quando :other for aceito.","validation.prohibited_if_declined":"O campo :attribute é proibido quando :other for recusado.","validation.prohibited_unless":"O campo :attribute é proibido a menos que :other esteja em :values.","validation.prohibits":"O campo :attribute proíbe :other de estar presente.","validation.regex":"O formato do campo :attribute é inválido.","validation.required":"O campo :attribute é obrigatório.","validation.required_array_keys":"O campo :attribute deve conter entradas para: :values.","validation.required_if":"O campo :attribute é obrigatório quando :other for :value.","validation.required_if_accepted":"O campo :attribute é obrigatório quando :other for aceito.","validation.required_if_declined":"O campo :attribute é obrigatório quando :other for recusado.","validation.required_unless":"O campo :attribute é obrigatório a menos que :other esteja em :values.","validation.required_with":"O campo :attribute é obrigatório quando :values estiver presente.","validation.required_with_all":"O campo :attribute é obrigatório quando :values estiverem presentes.","validation.required_without":"O campo :attribute é obrigatório quando :values não estiver presente.","validation.required_without_all":"O campo :attribute é obrigatório quando nenhum dos :values estiver presente.","validation.same":"O campo :attribute deve ser igual a :other.","validation.size.array":"O campo :attribute deve conter :size itens.","validation.size.file":"O campo :attribute deve ter :size kilobytes.","validation.size.numeric":"O campo :attribute deve ser :size.","validation.size.string":"O campo :attribute deve ter :size caracteres.","validation.starts_with":"O campo :attribute deve começar com um dos seguintes: :values.","validation.string":"O campo :attribute deve ser uma string.","validation.timezone":"O campo :attribute deve ser um fuso horário válido.","validation.unique":"O :attribute já foi utilizado.","validation.uploaded":"O :attribute falhou ao ser enviado.","validation.uppercase":"O campo :attribute deve estar em maiúsculo.","validation.url":"O campo :attribute deve ser uma URL válida.","validation.ulid":"O campo :attribute deve ser um ULID válido.","validation.uuid":"O campo :attribute deve ser um UUID válido.","validation.custom.attribute-name.rule-name":"custom-message","workspaces.title":"Workspaces","workspaces.select_title":"Seus workspaces","workspaces.select_description":"Selecione um workspace para continuar","workspaces.current":"Atual","workspaces.connections":":count conexões","workspaces.posts":":count posts","workspaces.create.page_title":"Crie seu workspace","workspaces.create.title":"Configure seu workspace","workspaces.create.description":"Conte sobre sua marca. Vamos usar isso para personalizar posts gerados por IA com a sua voz.","workspaces.create.website":"Site","workspaces.create.website_placeholder":"https://suamarca.com","workspaces.create.autofill":"Preencher do site","workspaces.create.autofill_missing_url":"Informe uma URL primeiro.","workspaces.create.autofill_success":"Informações da marca carregadas.","workspaces.create.autofill_error":"Não foi possível preencher automaticamente. Você pode preencher os campos manualmente.","workspaces.create.autofill_errors.unreachable":"Não conseguimos acessar esse site (:reason).","workspaces.create.autofill_errors.http_status":"O site retornou um status inesperado (:status).","workspaces.create.autofill_errors.invalid_scheme":"Apenas URLs http e https são suportadas.","workspaces.create.autofill_errors.missing_host":"A URL está sem um host.","workspaces.create.autofill_errors.unresolvable_host":"Não conseguimos resolver o host (:host).","workspaces.create.autofill_errors.private_network":"URLs apontando para redes privadas não são permitidas.","workspaces.create.logo_captured":"Logo capturada do seu site.","workspaces.create.name":"Nome do workspace","workspaces.create.name_placeholder":"ex. Acme Inc","workspaces.create.brand_description":"Descrição da marca","workspaces.create.brand_description_placeholder":"O que sua marca faz?","workspaces.create.tone":"Tom da marca","workspaces.create.tone_professional":"Profissional","workspaces.create.tone_casual":"Casual","workspaces.create.tone_friendly":"Amigável","workspaces.create.tone_bold":"Ousado","workspaces.create.tone_inspirational":"Inspirador","workspaces.create.tone_humorous":"Bem-humorado","workspaces.create.tone_educational":"Educacional","workspaces.create.content_language":"Idioma do conteúdo","workspaces.create.content_language_description":"Legendas geradas por IA serão escritas neste idioma.","workspaces.create.voice_notes":"Notas de voz (opcional)","workspaces.create.voice_notes_placeholder":"ex. frases curtas e diretas. sem jargão.","workspaces.create.brand_color":"Cor da marca","workspaces.create.background_color":"Cor de fundo","workspaces.create.text_color":"Cor do texto","workspaces.create.submit":"Criar workspace","workspaces.create.first_workspace_success":"Workspace criado. Conecte uma conta social para começar a postar.","workspaces.create.success":"Workspace criado."}\ No newline at end of file+{"accounts.title":"Conexões","accounts.page_title":"Contas Sociais","accounts.description":"Visão geral de todas as suas contas sociais conectadas","accounts.add_social":"Adicionar Rede Social","accounts.add_social_title":"Conectar uma Conta Social","accounts.add_social_description":"Conecte uma conta social ao TryPost para começar a publicar","accounts.no_accounts":"Nenhuma conta conectada ainda","accounts.no_accounts_description":"Conecte suas redes sociais para começar a agendar e publicar posts","accounts.no_search_results":"Nenhuma conta corresponde à sua busca","accounts.try_different_search":"Tente outra palavra-chave ou limpe a busca.","accounts.search":"Buscar contas...","accounts.added":"Adicionada :date","accounts.limit_reached":"Você atingiu o limite de contas sociais do seu plano.","accounts.not_connected":"Não conectado","accounts.connect":"Conectar","accounts.connection_lost":"Conexão perdida","accounts.reconnect_account":"Reconectar conta","accounts.view_profile":"Ver perfil","accounts.disconnect":"Desconectar","accounts.table.account":"Conta","accounts.table.platform":"Plataforma","accounts.table.status":"Status","accounts.table.last_used":"Último uso","accounts.table.added":"Adicionada","accounts.table.active":"Ativa","accounts.never_used":"Nunca usada","accounts.status.connected":"Conectada","accounts.status.disconnected":"Desconectada","accounts.descriptions.linkedin":"Conecte seu perfil pessoal do LinkedIn","accounts.descriptions.linkedin-page":"Conecte uma página de empresa do LinkedIn","accounts.descriptions.x":"Conecte sua conta do X (Twitter)","accounts.descriptions.tiktok":"Conecte sua conta do TikTok","accounts.descriptions.youtube":"Conecte um canal do YouTube","accounts.descriptions.facebook":"Conecte uma página do Facebook","accounts.descriptions.instagram":"Conecte uma conta profissional do Instagram","accounts.descriptions.instagram-facebook":"Conecte Instagram via página do Facebook","accounts.descriptions.threads":"Conecte sua conta do Threads","accounts.descriptions.pinterest":"Conecte sua conta do Pinterest","accounts.descriptions.bluesky":"Conecte sua conta do Bluesky","accounts.descriptions.mastodon":"Conecte sua conta do Mastodon","accounts.disconnect_modal.title":"Desconectar Conta","accounts.disconnect_modal.description":"Tem certeza que deseja desconectar esta conta? Você pode reconectá-la a qualquer momento.","accounts.disconnect_modal.confirm":"Desconectar","accounts.disconnect_modal.cancel":"Cancelar","accounts.bluesky.title":"Conectar Bluesky","accounts.bluesky.description":"Digite suas credenciais para conectar","accounts.bluesky.email":"E-mail","accounts.bluesky.email_placeholder":"seuhandle.bsky.social","accounts.bluesky.app_password":"Senha do App","accounts.bluesky.app_password_placeholder":"xxxx-xxxx-xxxx-xxxx","accounts.bluesky.app_password_hint":"Use uma <strong>Senha do App</strong> por segurança. Crie uma em <a href=\"https://bsky.app/settings/app-passwords\" target=\"_blank\" class=\"underline\">bsky.app/settings</a>.","accounts.bluesky.submit":"Conectar Bluesky","accounts.bluesky.submitting":"Conectando...","accounts.mastodon.title":"Conectar Mastodon","accounts.mastodon.description":"Digite a instância do seu Mastodon","accounts.mastodon.instance_url":"URL da Instância","accounts.mastodon.instance_placeholder":"https://mastodon.social","accounts.mastodon.instance_hint":"Digite a URL da sua instância Mastodon (ex: mastodon.social, techhub.social)","accounts.mastodon.submit":"Continuar com Mastodon","accounts.mastodon.submitting":"Conectando...","accounts.facebook.title":"Selecionar Página do Facebook","accounts.facebook.description":"Escolha qual página você deseja conectar","accounts.facebook.no_pages":"Nenhuma página encontrada","accounts.facebook.no_pages_description":"Você não é administrador de nenhuma página do Facebook.","accounts.facebook.page_label":"Página do Facebook","accounts.instagram_facebook.title":"Selecionar Conta do Instagram","accounts.instagram_facebook.description":"Escolha qual conta do Instagram você deseja conectar","accounts.instagram_facebook.no_pages":"Nenhuma conta do Instagram encontrada","accounts.instagram_facebook.no_pages_description":"Nenhuma Página do Facebook com conta Instagram Business vinculada foi encontrada.","accounts.linkedin.title":"Selecionar Página do LinkedIn","accounts.linkedin.description":"Escolha qual página você deseja conectar","accounts.linkedin.no_pages":"Nenhuma página encontrada","accounts.linkedin.no_pages_description":"Você não é administrador de nenhuma página do LinkedIn.","accounts.linkedin.page_label":"Página do LinkedIn","accounts.flash.disconnected":"Conta desconectada com sucesso!","accounts.flash.connected":"Conta conectada com sucesso!","accounts.flash.session_expired":"Sessão expirada. Por favor, tente novamente.","accounts.flash.workspace_not_found":"Workspace não encontrado.","accounts.flash.activated":"Conta ativada!","accounts.flash.deactivated":"Conta desativada!","accounts.flash.already_connected":"Esta plataforma já está conectada.","accounts.flash.no_youtube_channels":"Nenhum canal do YouTube encontrado. Por favor, crie um canal primeiro.","analytics.channels":"Canais","analytics.no_accounts":"Nenhuma conta conectada com analytics.","analytics.select_account":"Selecione uma conta para ver analytics.","analytics.no_data":"Nenhum dado de analytics disponível.","assets.title":"Mídias","assets.tabs.my_uploads":"Meus uploads","assets.tabs.stock_photos":"Fotos gratuitas","assets.tabs.gifs":"GIFs","assets.upload.drag_drop":"Arraste e solte seus arquivos aqui ou clique para selecionar","assets.upload.formats":"JPEG, PNG, GIF, WebP, MP4","assets.upload.uploading":"Enviando...","assets.empty.title":"Nenhuma mídia ainda","assets.empty.description":"Envie imagens e vídeos para criar sua biblioteca de mídia.","assets.save_to_assets":"Salvar na biblioteca","assets.saved":"Salvo na sua biblioteca!","assets.create_post":"Criar post","assets.add_to_post":"Adicionar ao post","assets.search_placeholder":"Buscar mídia...","assets.delete.title":"Excluir mídia","assets.delete.description":"Tem certeza que deseja excluir esta mídia? Esta ação não pode ser desfeita.","assets.delete.confirm":"Excluir","assets.delete.cancel":"Cancelar","assets.unsplash.search_placeholder":"Buscar fotos gratuitas...","assets.unsplash.no_results":"Nenhuma foto encontrada","assets.unsplash.no_results_description":"Tente outro termo de busca.","assets.unsplash.trending":"Em alta no Unsplash","assets.unsplash.start_searching":"Busque fotos gratuitas do Unsplash","assets.giphy.trending":"Em alta no Giphy","assets.giphy.search_placeholder":"Buscar GIFs...","assets.giphy.no_results":"Nenhum GIF encontrado","assets.giphy.no_results_description":"Tente outro termo de busca.","assets.giphy.powered_by":"Powered by GIPHY","auth.failed":"Essas credenciais não correspondem aos nossos registros.","auth.password":"A senha fornecida está incorreta.","auth.throttle":"Muitas tentativas de login. Por favor, tente novamente em :seconds segundos.","auth.flash.welcome":"Bem-vindo ao TryPost!","auth.flash.welcome_trial":"Bem-vindo ao TryPost! Seu período de teste começou.","auth.legal":"Ao continuar, você concorda com nossos <a href=\"https://trypost.it/terms\" target=\"_blank\">Termos de Serviço</a> e <a href=\"https://trypost.it/privacy\" target=\"_blank\">Política de Privacidade</a>.","auth.slides.calendar.title":"Calendário Visual","auth.slides.calendar.description":"Planeje e agende seu conteúdo com um calendário intuitivo de arrastar e soltar em todas as suas contas sociais.","auth.slides.scheduling.title":"Agendamento Inteligente","auth.slides.scheduling.description":"Agende posts no LinkedIn, X, Instagram, TikTok, YouTube e mais — tudo em um só lugar.","auth.slides.media.title":"Mídia Rica","auth.slides.media.description":"Publique imagens, carrosséis, stories e reels. Cada plataforma recebe o formato correto automaticamente.","auth.slides.video.title":"Publicação de Vídeo","auth.slides.video.description":"Envie vídeos uma vez e publique no TikTok, YouTube Shorts, Instagram Reels e Facebook Reels.","auth.slides.team.title":"Workspaces em Equipe","auth.slides.team.description":"Convide sua equipe, atribua funções e gerencie múltiplas marcas em workspaces separados.","auth.slides.hashtags.title":"Grupos de Hashtags","auth.slides.hashtags.description":"Salve coleções de hashtags e adicione aos posts com um clique. Organize com etiquetas e filtros.","auth.or_continue_with":"Ou continue com","auth.google_login":"Entrar com Google","auth.google_signup":"Cadastrar com Google","auth.signup_success.page_title":"Bem-vindo","auth.signup_success.title":"Configurando sua conta","auth.signup_success.description":"Isso geralmente leva apenas alguns segundos...","auth.login.title":"Entrar na sua conta","auth.login.description":"Digite seu email e senha abaixo para entrar","auth.login.page_title":"Entrar","auth.login.email":"Endereço de email","auth.login.password":"Senha","auth.login.forgot_password":"Esqueceu a senha?","auth.login.remember_me":"Lembrar de mim","auth.login.submit":"Entrar","auth.login.no_account":"Não tem uma conta?","auth.login.sign_up":"Cadastre-se","auth.register.title":"Criar uma conta","auth.register.description":"Digite seus dados abaixo para criar sua conta","auth.register.page_title":"Cadastro","auth.register.name":"Nome","auth.register.name_placeholder":"Nome completo","auth.register.email":"Endereço de email","auth.register.password":"Senha","auth.register.show_password":"Mostrar senha","auth.register.hide_password":"Esconder senha","auth.register.submit":"Criar conta","auth.register.has_account":"Já tem uma conta?","auth.register.log_in":"Entrar","auth.forgot_password.title":"Esqueceu a senha","auth.forgot_password.description":"Digite seu email para receber um link de redefinição de senha","auth.forgot_password.page_title":"Esqueceu a senha","auth.forgot_password.email":"Endereço de email","auth.forgot_password.submit":"Enviar link de redefinição","auth.forgot_password.return_to":"Ou, volte para","auth.forgot_password.log_in":"entrar","auth.reset_password.title":"Redefinir senha","auth.reset_password.description":"Por favor, digite sua nova senha abaixo","auth.reset_password.page_title":"Redefinir senha","auth.reset_password.email":"Email","auth.reset_password.password":"Senha","auth.reset_password.confirm_password":"Confirmar Senha","auth.reset_password.confirm_placeholder":"Confirmar senha","auth.reset_password.submit":"Redefinir senha","auth.verify_email.title":"Verificar email","auth.verify_email.description":"Por favor, verifique seu endereço de email clicando no link que acabamos de enviar.","auth.verify_email.page_title":"Verificação de email","auth.verify_email.link_sent":"Um novo link de verificação foi enviado para o endereço de email que você forneceu durante o cadastro.","auth.verify_email.resend":"Reenviar email de verificação","auth.verify_email.log_out":"Sair","auth.accept_invite.page_title":"Aceitar Convite","auth.accept_invite.title":"Você foi convidado!","auth.accept_invite.description":"Você foi convidado para participar do workspace :workspace.","auth.accept_invite.workspace":"Workspace","auth.accept_invite.your_role":"Seu cargo","auth.accept_invite.email":"Email","auth.accept_invite.accept":"Aceitar Convite","auth.accept_invite.decline":"Recusar Convite","auth.accept_invite.login_prompt":"Entre ou crie uma conta para aceitar este convite.","auth.accept_invite.log_in":"Entrar","auth.accept_invite.create_account":"Criar Conta","billing.title":"Assinatura","billing.description":"Gerencie sua assinatura e método de pagamento","billing.subscribe.page_title":"Comece seu teste gratuito","billing.subscribe.title":"Comece seu teste gratuito","billing.subscribe.description":":days dias grátis para explorar todos os recursos.","billing.subscribe.start_trial":"Começar teste de :days dias","billing.subscribe.cancel_anytime":"Cancele a qualquer momento. Sem perguntas.","billing.subscribe.switch_workspace":"Trocar workspace","billing.subscribe.features.calendar":"Calendário visual com arrastar e soltar","billing.subscribe.features.scheduling":"Agendamento ilimitado de posts","billing.subscribe.features.media":"Imagens, carrosséis e stories","billing.subscribe.features.video":"Publicação de vídeos em todas as plataformas","billing.subscribe.features.team":"Colaboração em equipe e workspaces","billing.subscribe.features.hashtags":"Grupos de hashtags e etiquetas","billing.trial.title":"Período de teste ativo","billing.trial.description":"Seu período de teste termina em :date. Após isso, sua assinatura será cobrada automaticamente.","billing.subscription.title":"Sua Assinatura","billing.subscription.status":"Status","billing.subscription.workspaces":"Workspaces","billing.subscription.quantity":"Quantidade da assinatura","billing.subscription.expires":"Expira em :date","billing.subscription.canceled_on":"Sua assinatura será cancelada em :date","billing.subscription.manage":"Gerenciar no Stripe","billing.invoices.title":"Faturas","billing.invoices.description":"Histórico de pagamentos","billing.invoices.empty":"Nenhuma fatura encontrada","billing.invoices.paid":"Pago","billing.processing.page_title":"Processando...","billing.processing.title":"Processando sua assinatura","billing.processing.description":"Aguarde enquanto configuramos sua conta. Isso levará apenas um momento.","billing.processing.success_title":"Tudo pronto!","billing.processing.success_description":"Sua assinatura está ativa. Redirecionando para seus workspaces...","billing.processing.cancelled_title":"Pagamento cancelado","billing.processing.cancelled_description":"Seu pagamento foi cancelado. Nenhuma cobrança foi realizada.","billing.processing.retry":"Tentar novamente","billing.status.active":"Ativo","billing.status.canceled":"Cancelado","billing.status.incomplete":"Incompleto","billing.status.incomplete_expired":"Expirado","billing.status.past_due":"Vencido","billing.status.trialing":"Teste","billing.status.unpaid":"Não pago","brands.new_brand":"Nova Marca","brands.no_brands_yet":"Nenhuma marca ainda","brands.no_brands_description":"Crie marcas para organizar suas contas de redes sociais por cliente ou projeto","brands.accounts_count":":count contas","brands.create.title":"Criar Marca","brands.create.description":"Dê um nome à sua marca para agrupar contas de redes sociais","brands.create.name":"Nome da Marca","brands.create.name_placeholder":"ex. Acme Corp, Pessoal","brands.create.submit":"Criar Marca","brands.create.submitting":"Criando...","brands.edit.title":"Editar Marca","brands.edit.description":"Atualize o nome desta marca","brands.edit.name":"Nome da Marca","brands.edit.name_placeholder":"ex. Acme Corp, Pessoal","brands.edit.submit":"Salvar Alterações","brands.edit.submitting":"Salvando...","brands.delete.title":"Excluir Marca","brands.delete.description":"Tem certeza de que deseja excluir esta marca? As contas de redes sociais serão desvinculadas mas não excluídas.","brands.delete.confirm":"Excluir","brands.delete.cancel":"Cancelar","brands.flash.created":"Marca criada com sucesso!","brands.flash.updated":"Marca atualizada com sucesso!","brands.flash.deleted":"Marca excluída com sucesso!","calendar.title":"Calendário","calendar.today":"Hoje","calendar.day":"Dia","calendar.week":"Semana","calendar.month":"Mês","calendar.new_post":"Novo Post","calendar.no_content":"Sem conteúdo","calendar.more":"+:count mais","comments.placeholder":"Escreva um comentário...","comments.reply_placeholder":"Escreva uma resposta...","comments.reply":"Responder","comments.edit":"Editar","comments.delete":"Excluir","comments.edited":"editado","comments.save":"Salvar","comments.cancel":"Cancelar","comments.send":"Enviar","comments.replying_to":"Respondendo a :name","comments.empty":"Nenhum comentário ainda. Comece a conversa.","comments.load_more":"Carregar comentários antigos","common.confirm_modal.cannot_be_undone":"Esta ação não pode ser desfeita.","common.confirm_modal.type":"Digite","common.confirm_modal.to_confirm":"para confirmar.","common.confirm_modal.copy_to_clipboard":"Copiar para a área de transferência","common.photo_upload.upload":"Enviar","common.photo_upload.uploading":"Enviando...","common.photo_upload.remove":"Remover foto","common.photo_upload.hint":"Recomendado: imagem quadrada, máximo 2 MB.","common.timezone.select":"Selecionar fuso horário","common.timezone.search":"Buscar fuso horário...","common.timezone.empty":"Fuso horário não encontrado","common.date_picker.select":"Selecionar data","common.cancel":"Cancelar","common.loading_more":"Carregando mais...","hashtags.title":"Hashtags","hashtags.description":"Crie grupos de hashtags para adicionar rapidamente aos seus posts","hashtags.search":"Buscar hashtags...","hashtags.new_group":"Novo Grupo","hashtags.no_groups_yet":"Nenhum grupo de hashtags ainda","hashtags.no_groups_description":"Crie grupos de hashtags para adicionar rapidamente hashtags populares aos seus posts","hashtags.no_search_results":"Nenhum grupo corresponde à sua busca","hashtags.try_different_search":"Tente outra palavra-chave ou limpe a busca.","hashtags.create_first_group":"Crie seu primeiro grupo","hashtags.hashtags_count":":count hashtags","hashtags.table.name":"Nome","hashtags.table.tags":"Hashtags","hashtags.table.count":"Quantidade","hashtags.table.created_at":"Criado","hashtags.create.title":"Criar Grupo de Hashtags","hashtags.create.description":"Dê um nome ao grupo e adicione hashtags separadas por espaços ou vírgulas","hashtags.create.name":"Nome do Grupo","hashtags.create.name_placeholder":"ex: Marketing, Viagem, Comida","hashtags.create.hashtags":"Hashtags","hashtags.create.hashtags_placeholder":"#marketing #redessociais #negocios #crescimento","hashtags.create.hashtags_hint":"Digite as hashtags separadas por espaços ou vírgulas. Inclua o símbolo #.","hashtags.create.submit":"Criar Grupo","hashtags.create.submitting":"Criando...","hashtags.edit.title":"Editar Grupo de Hashtags","hashtags.edit.description":"Atualize o nome e as hashtags deste grupo","hashtags.edit.name":"Nome do Grupo","hashtags.edit.name_placeholder":"ex: Marketing, Viagem, Comida","hashtags.edit.hashtags":"Hashtags","hashtags.edit.hashtags_placeholder":"#marketing #redessociais #negocios #crescimento","hashtags.edit.hashtags_hint":"Digite as hashtags separadas por espaços ou vírgulas. Inclua o símbolo #.","hashtags.edit.submit":"Salvar Alterações","hashtags.edit.submitting":"Salvando...","hashtags.delete.title":"Excluir Grupo de Hashtags","hashtags.delete.description":"Tem certeza que deseja excluir este grupo de hashtags? Esta ação não pode ser desfeita.","hashtags.delete.confirm":"Excluir","hashtags.delete.cancel":"Cancelar","hashtags.flash.created":"Grupo de hashtags criado com sucesso!","hashtags.flash.updated":"Grupo de hashtags atualizado com sucesso!","hashtags.flash.deleted":"Grupo de hashtags excluído com sucesso!","labels.title":"Etiquetas","labels.description":"Crie etiquetas para organizar e categorizar seus posts","labels.search":"Buscar etiquetas...","labels.new_label":"Nova Etiqueta","labels.no_labels_yet":"Nenhuma etiqueta ainda","labels.no_search_results":"Nenhuma etiqueta corresponde à sua busca","labels.try_different_search":"Tente outra palavra-chave ou limpe a busca.","labels.create_first_label":"Crie sua primeira etiqueta","labels.table.name":"Nome","labels.table.created_at":"Criado","labels.create.title":"Criar Etiqueta","labels.create.description":"Dê um nome e escolha uma cor para sua etiqueta","labels.create.name":"Nome","labels.create.name_placeholder":"Digite o nome da etiqueta...","labels.create.color":"Cor","labels.create.submit":"Criar Etiqueta","labels.create.submitting":"Criando...","labels.edit.title":"Editar Etiqueta","labels.edit.description":"Atualize o nome e a cor desta etiqueta","labels.edit.name":"Nome","labels.edit.name_placeholder":"Digite o nome da etiqueta...","labels.edit.color":"Cor","labels.edit.submit":"Salvar Alterações","labels.edit.submitting":"Salvando...","labels.delete.title":"Excluir Etiqueta","labels.delete.description":"Tem certeza que deseja excluir esta etiqueta? Esta ação não pode ser desfeita.","labels.delete.confirm":"Excluir","labels.delete.cancel":"Cancelar","labels.flash.created":"Etiqueta criada com sucesso!","labels.flash.updated":"Etiqueta atualizada com sucesso!","labels.flash.deleted":"Etiqueta excluída com sucesso!","mail.mentioned.subject":":name mencionou você no TryPost","mail.mentioned.title":":name mencionou você","mail.mentioned.intro":":name mencionou você num comentário.","mail.mentioned.cta":"Ver comentário","mail.workspace_connections_disconnected.subject":"{1} :count conta precisa ser reconectada em :workspace|[2,*] :count contas precisam ser reconectadas em :workspace","mail.workspace_connections_disconnected.title":"Contas Precisam ser Reconectadas","mail.workspace_connections_disconnected.intro":"As seguintes contas de redes sociais no seu workspace <strong>:workspace</strong> foram desconectadas e precisam ser reconectadas:","mail.workspace_connections_disconnected.reasons_title":"Isso pode ter acontecido porque:","mail.workspace_connections_disconnected.reason_expired":"Os tokens de acesso expiraram","mail.workspace_connections_disconnected.reason_revoked":"Você revogou o acesso ao TryPost na plataforma","mail.workspace_connections_disconnected.reason_changed":"A plataforma mudou os requisitos de autenticação","mail.workspace_connections_disconnected.reconnect_cta":"Por favor, reconecte essas contas para continuar agendando e publicando posts.","mail.workspace_connections_disconnected.button":"Reconectar Contas","pagination.previous":"« Anterior","pagination.next":"Próximo »","passwords.reset":"Sua senha foi redefinida.","passwords.sent":"Enviamos o link de redefinição de senha por e-mail.","passwords.throttled":"Por favor, aguarde antes de tentar novamente.","passwords.token":"Este token de redefinição de senha é inválido.","passwords.user":"Não conseguimos encontrar um usuário com esse endereço de e-mail.","posts.title":"Posts","posts.search":"Buscar posts...","posts.all_posts":"Todos os Posts","posts.new_post":"Novo Post","posts.no_posts":"Nenhum post encontrado","posts.no_search_results":"Nenhum post corresponde à sua busca","posts.try_different_search":"Tente outra palavra-chave ou limpe a busca.","posts.start_creating":"Comece criando seu primeiro post.","posts.table.status":"Status","posts.table.content":"Conteúdo","posts.table.platforms":"Plataformas","posts.table.labels":"Etiquetas","posts.table.scheduled_at":"Data","posts.table.actions":"","posts.manage_posts":"Gerencie todos os seus posts","posts.delete_confirm":"Tem certeza que deseja excluir este post?","posts.by":"por","posts.actions.view":"Ver post","posts.actions.delete":"Excluir post","posts.form.post_type":"Tipo de Post","posts.form.board":"Pasta","posts.form.select_board":"Selecione uma pasta","posts.form.search_board":"Buscar pasta...","posts.form.no_board_found":"Nenhuma pasta encontrada","posts.form.media":"Mídia","posts.form.min":"Mín","posts.form.uploading":"Enviando...","posts.form.drop_to_upload":"Solte para enviar","posts.form.drag_and_drop":"Arraste e solte ou clique para enviar","posts.form.photos_and_videos":"Fotos e vídeos","posts.form.photos_only":"Apenas fotos","posts.form.videos_only":"Apenas vídeos","posts.form.drag_to_reorder":"Arraste para reordenar","posts.form.caption":"Legenda","posts.form.write_caption":"Escreva sua legenda...","posts.form.tiktok.settings":"Configurações do TikTok","posts.form.tiktok.posting_to":"Publicando em","posts.form.tiktok.privacy_level":"Quem pode ver este vídeo?","posts.form.tiktok.privacy_placeholder":"Selecione a visibilidade","posts.form.tiktok.privacy.public":"Público para todos","posts.form.tiktok.privacy.friends":"Amigos em comum","posts.form.tiktok.privacy.followers":"Seguidores","posts.form.tiktok.privacy.private":"Apenas eu","posts.form.tiktok.privacy_hint":"As opções disponíveis dependem das configurações da sua conta TikTok.","posts.form.tiktok.auto_add_music":"Adicionar música automaticamente","posts.form.tiktok.auto_add_music_hint":"Disponível apenas para fotos. Adiciona uma música padrão que pode ser alterada depois.","posts.form.tiktok.yes":"Sim","posts.form.tiktok.no":"Não","posts.form.tiktok.allow_users":"Permitir que usuários:","posts.form.tiktok.comments":"Comentem","posts.form.tiktok.duet":"Dueto","posts.form.tiktok.stitch":"Stitch","posts.form.tiktok.is_aigc":"Vídeo feito com IA","posts.form.tiktok.disclose":"Divulgar conteúdo do vídeo","posts.form.tiktok.disclose_hint":"Ative para divulgar que este vídeo promove bens ou serviços em troca de algo de valor. Seu vídeo pode promover você, terceiros ou ambos.","posts.form.tiktok.promotional_organic_title":"Sua foto/vídeo será rotulado como \"Conteúdo Promocional\".","posts.form.tiktok.promotional_paid_title":"Sua foto/vídeo será rotulado como \"Parceria paga\".","posts.form.tiktok.promotional_description":"Isso não poderá ser alterado após a publicação.","posts.form.tiktok.compliance_incomplete":"Você precisa indicar se o conteúdo promove você mesmo, terceiros ou ambos.","posts.form.tiktok.branded_blocks_private":"Conteúdo patrocinado não pode ser privado. Escolha Público ou Amigos em comum.","posts.form.tiktok.interaction_disabled_by_creator":"Desativado pelas configurações da sua conta TikTok.","posts.form.tiktok.max_duration_exceeded":"Vídeo tem :duration s mas esta conta só permite vídeos de até :max s.","posts.form.tiktok.creator_info_loading":"Carregando configurações da sua conta TikTok…","posts.form.tiktok.processing_hint":"Após publicar, pode levar alguns minutos para o conteúdo ser processado e aparecer no seu perfil TikTok.","posts.form.tiktok.brand_organic":"Sua marca","posts.form.tiktok.brand_organic_hint":"Você está promovendo você mesmo ou sua própria marca. Este vídeo será classificado como Brand Organic.","posts.form.tiktok.brand_content":"Conteúdo patrocinado","posts.form.tiktok.brand_content_hint":"Você está promovendo outra marca ou terceiros. Este vídeo será classificado como Branded Content.","posts.form.tiktok.compliance.agree":"Ao publicar, você concorda com a","posts.form.tiktok.compliance.music_usage":"Confirmação de Uso de Música","posts.form.tiktok.compliance.and":"e","posts.form.tiktok.compliance.branded_policy":"Política de Conteúdo Patrocinado","posts.form.instagram.settings":"Configurações do Instagram","posts.form.instagram.posting_to":"Publicando em","posts.form.instagram.variant_label":"Tipo de publicação","posts.form.instagram.variant.feed":"Post","posts.form.instagram.variant.reel":"Reel","posts.form.instagram.variant.story":"Story","posts.form.instagram.aspect_label":"Proporção","posts.form.instagram.aspect.square":"Quadrado (1:1)","posts.form.instagram.aspect.portrait":"Retrato (4:5)","posts.form.instagram.aspect.landscape":"Paisagem (16:9)","posts.form.instagram.aspect.original":"Original","posts.form.facebook.settings":"Configurações do Facebook","posts.form.facebook.posting_to":"Publicando em","posts.form.facebook.variant_label":"Tipo de publicação","posts.form.facebook.variant.post":"Post","posts.form.facebook.variant.reel":"Reel","posts.form.facebook.variant.story":"Story","posts.form.linkedin.settings":"Configurações do LinkedIn","posts.form.linkedin.settings_page":"Configurações da Página do LinkedIn","posts.form.linkedin.posting_to":"Publicando em","posts.form.linkedin.variant_label":"Tipo de publicação","posts.form.linkedin.variant.post":"Post","posts.form.linkedin.variant.carousel":"Carrossel","posts.form.pinterest.settings":"Configurações do Pinterest","posts.form.pinterest.posting_to":"Publicando em","posts.form.pinterest.variant_label":"Tipo de pin","posts.form.pinterest.variant.pin":"Pin","posts.form.pinterest.variant.video_pin":"Video Pin","posts.form.pinterest.variant.carousel":"Carrossel","posts.form.warnings.no_variant":"Escolha um tipo de publicação para continuar.","posts.form.warnings.requires_media":"Este tipo exige pelo menos uma imagem ou vídeo.","posts.form.warnings.max_files_exceeded":"Este tipo aceita até :max arquivos (você tem :current).","posts.form.warnings.min_files_required":"Este tipo exige pelo menos :min arquivos (você tem :current).","posts.form.warnings.no_video_allowed":"Este tipo não aceita vídeos.","posts.form.warnings.no_image_allowed":"Este tipo aceita apenas vídeos.","posts.form.warnings.gif_not_allowed":"Esta rede não aceita GIF. Remova o GIF ou escolha outra rede.","posts.form.warnings.image_too_large":"A imagem passa do limite de :max (a sua tem :current).","posts.form.warnings.video_too_large":"O vídeo passa do limite de :max (o seu tem :current).","posts.form.warnings.video_too_long":"O vídeo dura :current, mas este tipo permite no máximo :max.","posts.form.warnings.aspect_ratio_too_narrow":"A proporção :current está muito alta (mínimo :min).","posts.form.warnings.aspect_ratio_too_wide":"A proporção :current está muito larga (máximo :max).","posts.status.pending":"Pendente","posts.status.draft":"Rascunho","posts.status.scheduled":"Agendado","posts.status.publishing":"Publicando","posts.status.published":"Publicado","posts.status.partially_published":"Parcialmente Publicado","posts.status.failed":"Falhou","posts.descriptions.draft":"Posts aguardando agendamento","posts.descriptions.scheduled":"Posts agendados para publicação","posts.descriptions.published":"Posts já publicados","posts.ai.generate.button_tooltip":"Gerar com IA","posts.ai.generate.title":"Gerar post com IA","posts.ai.generate.description":"Descreva sobre o que o post deve ser. A IA vai usar o contexto da sua marca pra escrever.","posts.ai.generate.prompt_label":"Sobre o que é esse post?","posts.ai.generate.prompt_placeholder":"ex: anunciar nossa nova feature de geração de imagens pra carrosséis","posts.ai.generate.preview_label":"Prévia","posts.ai.generate.start":"Gerar","posts.ai.generate.apply":"Usar este conteúdo","posts.ai.generate.retry":"Tentar de novo","posts.ai.generate.cancel":"Cancelar","posts.ai.review.button_tooltip":"Revisar com IA","posts.ai.review.title":"Revisar post com IA","posts.ai.review.description":"IA analisa gramática, ortografia e clareza. Aplique as sugestões uma a uma.","posts.ai.review.loading":"Revisando seu texto...","posts.ai.review.no_issues":"Nenhum problema encontrado. Tudo certo.","posts.ai.review.original":"Original","posts.ai.review.suggestion":"Sugestão","posts.ai.review.apply":"Aplicar","posts.ai.review.applied":"Aplicado","posts.ai.review.close":"Fechar","posts.show.title":"Detalhes do Post","posts.show.edit":"Editar","posts.show.no_content":"Sem legenda","posts.show.platforms":"Plataformas","posts.show.no_platforms":"Nenhuma plataforma selecionada.","posts.show.view_on_platform":"Ver na plataforma","posts.show.published_on":"Publicado em :date","posts.show.scheduled_for":"Agendado para :date","posts.show.draft":"Rascunho","posts.show.status_pending":"Pendente","posts.show.metrics":"Métricas","posts.show.metrics_loading":"Carregando métricas…","posts.show.metrics_unavailable":"Métricas ainda não disponíveis para esta plataforma.","posts.show.metrics_empty":"Nenhuma métrica retornada.","posts.show.summary.platforms":"Plataformas","posts.show.summary.published":"Publicado","posts.show.summary.failed":"Falhou","posts.edit.title":"Editar Post","posts.edit.view_title":"Visualizar Post","posts.edit.manage_platforms":"Gerenciar plataformas","posts.edit.sync":"Sincronizar","posts.edit.labels":"Etiqueta","posts.edit.hashtags":"Hashtags","posts.edit.schedule":"Agendar","posts.edit.publish":"Publicar","posts.edit.delete":"Excluir","posts.edit.settings":"Configurações","posts.edit.schedule_for":"Agendar para","posts.edit.scheduled_for":"Agendado para","posts.edit.saving":"Salvando...","posts.edit.saved":"Salvo","posts.edit.draft":"Rascunho","posts.edit.scheduled_at":"Agendado:","posts.edit.published_at":"Publicado:","posts.edit.media":"Mídia","posts.edit.add_media":"Adicionar mídia","posts.edit.caption":"Legenda","posts.edit.caption_placeholder":"Escreva sua legenda...","posts.edit.compose_title":"Crie um post","posts.edit.compose_subtitle":"Componha sua mensagem e adicione mídia","posts.edit.preview_empty.title":"Nenhuma plataforma selecionada","posts.edit.preview_empty.description":"Selecione uma plataforma para publicar e ver o preview.","posts.edit.drag_drop":"Solte os arquivos para enviar","posts.edit.drag_drop_hint":"Arraste arquivos aqui ou use os botões acima","posts.edit.drop_zone_title":"Adicionar mídia","posts.edit.drop_zone_subtitle":"Arraste arquivos ou clique para selecionar","posts.edit.add":"Adicionar","posts.edit.publish_to":"Publicar em","posts.edit.organize":"Organizar","posts.edit.no_caption":"Sem legenda","posts.edit.no_content":"Sem conteúdo","posts.edit.no_labels":"Nenhuma etiqueta criada ainda","posts.edit.pick_time":"Escolher horário","posts.edit.post_now":"Publicar agora","posts.edit.time":"Horário","posts.edit.cancel":"Cancelar","posts.edit.schedule_date":"Data de agendamento","posts.edit.view_on_platform":"Ver na plataforma","posts.edit.platform_status":"Status da plataforma","posts.edit.compliance_incomplete":"Algumas configurações de plataforma estão incompletas ou incompatíveis com a mídia anexada.","posts.edit.compliance.requires_media":"Adicione uma imagem ou vídeo para publicar aqui.","posts.edit.compliance.too_many_files":"Apenas :max arquivo(s) permitido(s) para este formato.","posts.edit.compliance.too_few_files":"Adicione pelo menos :min arquivos para este formato.","posts.edit.compliance.no_videos":"Apenas imagens são permitidas neste formato.","posts.edit.compliance.no_images":"Apenas vídeos são permitidos neste formato.","posts.edit.compliance.no_gifs":"GIFs não são suportados aqui.","posts.edit.compliance.video_too_large":"Vídeo excede o limite de tamanho desta plataforma.","posts.edit.compliance.video_too_long":"Vídeo deve ter menos de :seconds segundos neste formato.","posts.edit.compliance.image_too_large":"Imagem excede o limite de tamanho desta plataforma.","posts.edit.compliance.aspect_ratio_invalid":"A proporção da imagem não é suportada por este formato.","posts.edit.compliance.no_content_type":"Escolha um tipo de conteúdo para esta plataforma.","posts.edit.publishing":"Publicando...","posts.edit.publishing_overlay_title":"Seu post está sendo publicado","posts.edit.publishing_overlay_subtitle":"Isso pode levar alguns instantes. Você pode sair desta página sem problemas.","posts.edit.tabs.preview":"Pré-visualização","posts.edit.tabs.schedule":"Agendamento","posts.edit.tabs.comments":"Comentários","posts.edit.tabs.comments_empty":"Nenhum comentário ainda.","posts.edit.media_picker.title":"Escolher da galeria","posts.edit.media_picker.search":"Buscar mídia...","posts.edit.media_picker.empty":"Sua galeria ainda está vazia","posts.edit.media_picker.cancel":"Cancelar","posts.edit.media_picker.add":"Adicionar","posts.edit.media_picker.add_count":"Adicionar :count","posts.edit.emoji_picker.search":"Buscar emoji","posts.edit.emoji_picker.empty":"Nenhum emoji encontrado","posts.edit.emoji_picker.recent":"Usados recentemente","posts.edit.emoji_picker.smileys":"Sorrisos e emoções","posts.edit.emoji_picker.people":"Pessoas e corpo","posts.edit.emoji_picker.nature":"Animais e natureza","posts.edit.emoji_picker.food":"Comidas e bebidas","posts.edit.emoji_picker.activities":"Atividades","posts.edit.emoji_picker.travel":"Viagens e lugares","posts.edit.emoji_picker.objects":"Objetos","posts.edit.emoji_picker.symbols":"Símbolos","posts.edit.emoji_picker.flags":"Bandeiras","posts.edit.status.published":"Publicado","posts.edit.status.publishing":"Publicando...","posts.edit.status.failed":"Falhou","posts.edit.empty_state.title":"Nenhuma plataforma selecionada","posts.edit.empty_state.description":"Selecione pelo menos uma plataforma para criar seu post","posts.edit.delete_modal.title":"Excluir Post","posts.edit.delete_modal.description":"Tem certeza que deseja excluir este post? Esta ação não pode ser desfeita.","posts.edit.delete_modal.action":"Excluir","posts.edit.delete_modal.cancel":"Cancelar","posts.edit.sync_enable.title":"Ativar sincronização?","posts.edit.sync_enable.description":"Todas as plataformas compartilharão o mesmo conteúdo. Qualquer edição personalizada feita em plataformas individuais será substituída pelo conteúdo atual.","posts.edit.sync_enable.cancel":"Cancelar","posts.edit.sync_enable.action":"Ativar sincronização","posts.edit.sync_disable.title":"Desativar sincronização?","posts.edit.sync_disable.description":"Cada plataforma manterá seu conteúdo atual, mas edições futuras serão aplicadas apenas à plataforma que você estiver editando.","posts.edit.sync_disable.customize_note":"Você poderá personalizar o conteúdo para cada plataforma individualmente.","posts.edit.sync_disable.cancel":"Cancelar","posts.edit.sync_disable.action":"Desativar sincronização","posts.edit.platforms_dialog.title":"Selecionar Plataformas","posts.edit.platforms_dialog.description":"Escolha em quais plataformas publicar este post.","posts.edit.hashtags_modal.search":"Buscar hashtags...","posts.edit.hashtags_modal.no_results":"Nenhuma hashtag encontrada.","posts.edit.validation.select_board":"Selecione uma pasta","posts.edit.validation.images_not_supported":"Imagens não suportadas","posts.edit.validation.videos_not_supported":"Vídeos não suportados","posts.edit.validation.max_images":"Máx :count imagens","posts.edit.validation.requires_media":"Requer mídia","posts.edit.validation.requires_content":"Texto é obrigatório","posts.edit.validation.exceeded":":count excedido","posts.edit.validation.does_not_support_images":":platform não suporta imagens","posts.edit.validation.supports_up_to_images":":platform suporta até :count imagens","posts.edit.validation.does_not_support_videos":":platform não suporta vídeos","posts.content_types.instagram_feed.label":"Post do Feed","posts.content_types.instagram_feed.description":"Aparece no seu feed e perfil","posts.content_types.instagram_reel.label":"Reels","posts.content_types.instagram_reel.description":"Vídeo curto de até 90 segundos","posts.content_types.instagram_story.label":"Story","posts.content_types.instagram_story.description":"Desaparece após 24 horas","posts.content_types.linkedin_post.label":"Post","posts.content_types.linkedin_post.description":"Post padrão com texto e mídia","posts.content_types.linkedin_carousel.label":"Carrossel","posts.content_types.linkedin_carousel.description":"Imagens deslizáveis","posts.content_types.linkedin_page_post.label":"Post","posts.content_types.linkedin_page_post.description":"Post padrão com texto e mídia","posts.content_types.linkedin_page_carousel.label":"Carrossel","posts.content_types.linkedin_page_carousel.description":"Imagens deslizáveis","posts.content_types.facebook_post.label":"Post","posts.content_types.facebook_post.description":"Post padrão na sua página","posts.content_types.facebook_reel.label":"Reels","posts.content_types.facebook_reel.description":"Vídeo curto de até 90 segundos","posts.content_types.facebook_story.label":"Story","posts.content_types.facebook_story.description":"Desaparece após 24 horas","posts.content_types.tiktok_video.label":"Vídeo","posts.content_types.tiktok_video.description":"Conteúdo de vídeo curto","posts.content_types.youtube_short.label":"Short","posts.content_types.youtube_short.description":"Vídeo vertical de até 60 segundos","posts.content_types.x_post.label":"Post","posts.content_types.x_post.description":"Tweet com texto e mídia","posts.content_types.threads_post.label":"Post","posts.content_types.threads_post.description":"Post de texto com mídia opcional","posts.content_types.pinterest_pin.label":"Pin","posts.content_types.pinterest_pin.description":"Pin de imagem com link","posts.content_types.pinterest_video_pin.label":"Pin de Vídeo","posts.content_types.pinterest_video_pin.description":"Conteúdo em vídeo","posts.content_types.pinterest_carousel.label":"Carrossel","posts.content_types.pinterest_carousel.description":"2-5 imagens","posts.content_types.bluesky_post.label":"Post","posts.content_types.bluesky_post.description":"Post de texto com imagens opcionais","posts.content_types.mastodon_post.label":"Post","posts.content_types.mastodon_post.description":"Post de texto com mídia opcional","posts.platforms.linkedin":"LinkedIn","posts.platforms.linkedin-page":"Página do LinkedIn","posts.platforms.x":"X","posts.platforms.tiktok":"TikTok","posts.platforms.youtube":"YouTube Shorts","posts.platforms.facebook":"Página do Facebook","posts.platforms.instagram":"Instagram","posts.platforms.threads":"Threads","posts.platforms.pinterest":"Pinterest","posts.platforms.bluesky":"Bluesky","posts.platforms.mastodon":"Mastodon","posts.flash.scheduled":"Post agendado com sucesso!","posts.flash.publishing":"Post está sendo publicado! Pode levar alguns minutos para processar e aparecer em cada plataforma.","posts.flash.deleted":"Post excluído com sucesso!","posts.flash.cannot_edit_published":"Posts publicados não podem ser editados.","posts.flash.cannot_delete_published":"Posts publicados não podem ser excluídos.","posts.flash.connect_first":"Conecte pelo menos uma rede social antes de criar um post.","posts.errors.account_disconnected":"Conta social está desconectada","posts.errors.account_inactive":"Conta social está desativada","posts.create.title":"Criar novo post","posts.create.description":"Escolha como quer começar.","posts.create.scratch_title":"Começar do zero","posts.create.scratch_description":"Abre um post em branco pra você escrever tudo.","posts.create.ai_title":"Gerar com IA","posts.create.ai_description":"Descreva o que quer e a IA gera o conteúdo pra você.","posts.create.ai_configure_description":"Escolha o formato e descreva o post que quer criar.","posts.create.template_title":"Usar um template","posts.create.template_description":"Escolha um dos nossos templates e personalize.","posts.create.coming_soon":"Em breve","posts.create.steps.format_title":"Escolha um formato","posts.create.steps.format_description":"Selecione o tipo de post que deseja criar.","posts.create.steps.account_title":"Escolha uma conta","posts.create.steps.account_description":"Selecione a conta social para publicar.","posts.create.steps.media_title":"Opções de mídia","posts.create.steps.media_carousel":"Quantos slides?","posts.create.steps.media_optional":"Incluir imagens?","posts.create.steps.media_optional_label":"Quantas imagens?","posts.create.steps.media_none":"Nenhuma","posts.create.steps.media_count_label":"Número de imagens","posts.create.steps.prompt_title":"Descreva seu post","posts.create.steps.prompt_label":"Sobre o que é este post?","posts.create.steps.prompt_placeholder":"Ex. Anunciar nossa nova função de carrossel para o Instagram","posts.create.steps.preview_title":"Prévia","posts.create.steps.preview_loading":"Gerando seu conteúdo…","posts.create.steps.preview_error":"Algo deu errado. Por favor, tente novamente.","posts.create.steps.create":"Criar post","posts.create.steps.back":"Voltar","posts.create.steps.next":"Continuar","posts.create.steps.cancel":"Cancelar","posts.create.steps.discard":"Descartar","posts.create.steps.retry":"Tentar novamente","posts.create.steps.no_platforms":"Nenhuma conta conectada","posts.create.steps.connect_first":"Conecte pelo menos uma conta social para usar a geração com IA.","posts.create.steps.format.instagram_feed":"Post no Feed do Instagram","posts.create.steps.format.instagram_carousel":"Carrossel do Instagram","posts.create.steps.format.linkedin_post":"Post no LinkedIn","posts.create.steps.format.linkedin_page_post":"Post em Página do LinkedIn","posts.create.steps.format.x_post":"Post no X","posts.create.steps.format.bluesky_post":"Post no Bluesky","posts.create.steps.format.threads_post":"Post no Threads","posts.create.steps.format.mastodon_post":"Post no Mastodon","posts.create.steps.format.facebook_post":"Post no Facebook","posts.create.steps.format.pinterest_pin":"Pin no Pinterest","posts.create.steps.format.instagram_story":"Story do Instagram","posts.create.steps.format.facebook_story":"Story do Facebook","posts.templates.browser_title":"Escolha um template","posts.templates.browser_description":"Comece com um template pronto e adapte ao seu jeito.","posts.templates.all_platforms":"Todas as plataformas","posts.templates.use_this":"Usar este template","posts.templates.no_templates":"Nenhum template disponível.","posts.templates.applying":"Aplicando template…","posts.templates.search_placeholder":"Buscar templates…","posts.templates.no_search_results":"Nenhum template encontrado","posts.templates.try_different_search":"Tente outra palavra-chave ou limpe a busca.","posts.templates.slides_count":"{count} slide|{count} slides","posts.templates.category.product_launch":"Lançamento de produto","posts.templates.category.promotion":"Promoção","posts.templates.category.educational":"Educacional","posts.templates.category.behind_the_scenes":"Bastidores","posts.templates.category.testimonial":"Depoimento","posts.templates.category.industry_tip":"Dica do setor","posts.templates.category.event":"Evento","posts.templates.category.engagement":"Engajamento","settings.title":"Configurações","settings.description":"Gerencie seu perfil e configurações da conta","settings.nav.profile":"Perfil","settings.nav.password":"Senha","settings.nav.workspace":"Workspace","settings.nav.members":"Membros","settings.nav.notifications":"Notificações","settings.nav.billing":"Faturamento","settings.notifications.title":"Preferências de notificações","settings.notifications.heading":"Notificações por e-mail","settings.notifications.description":"Escolha quais notificações por e-mail deseja receber","settings.notifications.post_published":"Post publicado","settings.notifications.post_published_description":"Receber um e-mail quando seu post for publicado com sucesso","settings.notifications.post_failed":"Post falhou","settings.notifications.post_failed_description":"Receber um e-mail quando seu post falhar ao publicar","settings.notifications.account_disconnected":"Conta desconectada","settings.notifications.account_disconnected_description":"Receber um e-mail quando uma conta social for desconectada","settings.notifications.save":"Salvar preferências","settings.profile.title":"Configurações do perfil","settings.profile.photo_heading":"Foto do perfil","settings.profile.photo_description":"Envie uma foto de perfil","settings.profile.heading":"Informações do perfil","settings.profile.description":"Atualize seu nome e endereço de e-mail","settings.profile.avatar":"Avatar","settings.profile.name":"Nome","settings.profile.name_placeholder":"Nome completo","settings.profile.email":"Endereço de e-mail","settings.profile.email_placeholder":"Endereço de e-mail","settings.profile.email_unverified":"Seu endereço de e-mail não foi verificado.","settings.profile.resend_verification":"Clique aqui para reenviar o e-mail de verificação.","settings.profile.verification_sent":"Um novo link de verificação foi enviado para seu endereço de e-mail.","settings.profile.save":"Salvar","settings.password.title":"Configurações de senha","settings.password.heading":"Atualizar senha","settings.password.description":"Certifique-se de que sua conta esteja usando uma senha longa e aleatória para se manter seguro","settings.password.current_password":"Senha atual","settings.password.current_password_placeholder":"Senha atual","settings.password.new_password":"Nova senha","settings.password.new_password_placeholder":"Nova senha","settings.password.confirm_password":"Confirmar senha","settings.password.confirm_password_placeholder":"Confirmar senha","settings.password.save":"Salvar senha","settings.delete_account.heading":"Excluir conta","settings.delete_account.description":"Exclua sua conta e todos os seus recursos","settings.delete_account.warning":"Atenção","settings.delete_account.warning_message":"Por favor, prossiga com cuidado, isso não pode ser desfeito.","settings.delete_account.button":"Excluir conta","settings.delete_account.modal_title":"Tem certeza que deseja excluir sua conta?","settings.delete_account.modal_description":"Uma vez que sua conta for excluída, todos os seus recursos e dados também serão permanentemente excluídos. Por favor, digite sua senha para confirmar que deseja excluir permanentemente sua conta.","settings.delete_account.password":"Senha","settings.delete_account.password_placeholder":"Senha","settings.delete_account.cancel":"Cancelar","settings.delete_account.confirm":"Excluir conta","settings.workspace.tabs.workspace":"Workspace","settings.workspace.tabs.brand":"Marca","settings.workspace.tabs.users":"Membros","settings.workspace.tabs.api_keys":"API Keys","settings.workspace.title":"Configurações do workspace","settings.workspace.logo_heading":"Logo do workspace","settings.workspace.logo_description":"Envie um logo para o workspace","settings.workspace.heading":"Nome do workspace","settings.workspace.description":"Atualize o nome do workspace","settings.workspace.members_heading":"Membros","settings.workspace.members_description":"Gerencie membros e convites do workspace","settings.workspace.name":"Nome","settings.workspace.name_placeholder":"Meu Workspace","settings.workspace.save":"Salvar","settings.brand.title":"Marca","settings.brand.description":"Configure a identidade da sua marca para os conteúdos gerados por AI.","settings.brand.website":"Site","settings.brand.website_placeholder":"https://suamarca.com","settings.brand.brand_description":"Descrição","settings.brand.brand_description_placeholder":"Conte sobre sua marca, o que você faz e quem é seu público...","settings.brand.tone":"Tom de voz","settings.brand.tone_professional":"Profissional","settings.brand.tone_casual":"Casual","settings.brand.tone_friendly":"Amigável","settings.brand.tone_bold":"Ousado","settings.brand.tone_inspirational":"Inspirador","settings.brand.tone_humorous":"Bem-humorado","settings.brand.tone_educational":"Educacional","settings.brand.voice_notes":"Notas de voz","settings.brand.voice_notes_placeholder":"Diretrizes adicionais de escrita, palavras a evitar, preferências de estilo...","settings.brand.brand_color":"Cor da marca","settings.brand.background_color":"Cor de fundo","settings.brand.text_color":"Cor do texto","settings.brand.font":"Fonte","settings.brand.content_language":"Idioma do conteúdo","settings.brand.content_language_description":"Idioma usado nas legendas, hashtags e em qualquer texto dentro de imagens ou vídeos gerados por AI.","settings.members.title":"Membros","settings.members.heading":"Membros da equipe","settings.members.description":"Gerencie membros e convites deste workspace","settings.members.cancel":"Cancelar","settings.members.remove":"Remover","settings.members.make_admin":"Tornar administrador","settings.members.make_member":"Tornar membro","settings.members.invite.title":"Convidar Membro","settings.members.invite.description":"Envie um convite por e-mail para adicionar colaboradores","settings.members.invite.email":"E-mail","settings.members.invite.email_placeholder":"[email protected]","settings.members.invite.role":"Função","settings.members.invite.role_placeholder":"Selecione uma função","settings.members.invite.submit":"Enviar Convite","settings.members.pending.title":"Convites Pendentes","settings.members.pending.description":"Convites aguardando aceitação","settings.members.pending.empty":"Nenhum convite pendente","settings.members.list.title":"Membros","settings.members.list.description":"Pessoas com acesso a este workspace","settings.members.list.empty":"Nenhum membro além do proprietário","settings.members.remove_modal.title":"Remover membro","settings.members.remove_modal.description":"Tem certeza que deseja remover este membro do workspace? Ele perderá acesso a todos os recursos do workspace.","settings.members.remove_modal.action":"Remover membro","settings.members.cancel_invite_modal.title":"Cancelar convite","settings.members.cancel_invite_modal.description":"Tem certeza que deseja cancelar este convite?","settings.members.cancel_invite_modal.action":"Cancelar convite","settings.members.roles.owner":"Proprietário","settings.members.roles.admin":"Administrador","settings.members.roles.member":"Membro","settings.members.roles.viewer":"Visualizador","settings.members.flash.invite_sent":"Convite enviado com sucesso!","settings.members.flash.invite_deleted":"Convite excluído.","settings.members.flash.member_removed":"Membro removido com sucesso.","settings.members.flash.role_updated":"Função do membro atualizada.","settings.members.flash.wrong_email":"Este convite é para um endereço de e-mail diferente.","settings.members.flash.already_member":"Você já é membro deste workspace.","settings.members.flash.invite_accepted":"Bem-vindo! Você agora é membro do workspace.","settings.members.flash.invite_declined":"Convite recusado.","settings.flash.profile_updated":"Perfil atualizado com sucesso!","settings.flash.language_updated":"Idioma atualizado com sucesso!","settings.flash.password_updated":"Senha atualizada com sucesso!","settings.flash.workspace_updated":"Configurações atualizadas com sucesso!","settings.flash.photo_updated":"Foto atualizada com sucesso!","settings.flash.photo_deleted":"Foto removida com sucesso!","settings.flash.logo_updated":"Logo enviado com sucesso!","settings.flash.logo_deleted":"Logo removido com sucesso!","settings.flash.notifications_updated":"Preferências de notificações atualizadas!","settings.api_keys.title":"Chaves API","settings.api_keys.page_title":"Chaves API","settings.api_keys.heading":"Chaves API","settings.api_keys.description":"Gerencie chaves API para acesso programático ao seu workspace.","settings.api_keys.create":"Criar chave API","settings.api_keys.copy":"Copiar","settings.api_keys.new_token_message":"Sua nova chave API foi criada. Copie agora — você não poderá vê-la novamente.","settings.api_keys.table.name":"Nome","settings.api_keys.table.key":"Chave","settings.api_keys.table.status":"Status","settings.api_keys.table.expires":"Expira","settings.api_keys.table.last_used":"Último uso","settings.api_keys.table.never":"Nunca","settings.api_keys.actions.copy_id":"Copiar ID da chave API","settings.api_keys.actions.copy_id_success":"ID da chave API copiado","settings.api_keys.actions.delete":"Excluir","settings.api_keys.empty.title":"Nenhuma chave API","settings.api_keys.empty.description":"Crie uma chave API para acessar seu workspace programaticamente.","settings.api_keys.delete_modal.title":"Excluir chave API","settings.api_keys.delete_modal.description":"Tem certeza que deseja excluir esta chave API? Aplicações que a usam perderão acesso imediatamente.","settings.api_keys.delete_modal.action":"Excluir chave API","settings.api_keys.create_dialog.title":"Criar chave API","settings.api_keys.create_dialog.description":"Crie uma nova chave API para acesso programático ao seu workspace.","settings.api_keys.create_dialog.name":"Nome","settings.api_keys.create_dialog.name_placeholder":"ex. Chave API de Produção","settings.api_keys.create_dialog.expires":"Data de expiração (opcional)","settings.api_keys.create_dialog.expires_placeholder":"Sem expiração","settings.api_keys.create_dialog.submit":"Criar","settings.api_keys.create_dialog.cancel":"Cancelar","settings.api_keys.flash.created":"Chave de API criada com sucesso!","settings.api_keys.flash.deleted":"Chave de API excluída com sucesso!","sidebar.workspaces":"Espaços de trabalho","sidebar.select_workspace":"Selecionar workspace","sidebar.create_workspace":"Criar workspace","sidebar.create_post":"Novo post","sidebar.profile":"Perfil","sidebar.log_out":"Sair","sidebar.workspace.connections":"Conexões","sidebar.workspace.hashtags":"Hashtags","sidebar.workspace.labels":"Etiquetas","sidebar.workspace.assets":"Mídias","sidebar.workspace.api_keys":"API Keys","sidebar.workspace.settings":"Configurações","sidebar.workspace_select":"Workspace: Selecionar","sidebar.theme":"Tema: :name","sidebar.theme_light":"Claro","sidebar.theme_dark":"Escuro","sidebar.theme_system":"Sistema","sidebar.language":"Idioma: :name","sidebar.language_select":"Idioma: Selecionar","sidebar.groups.posts":"Posts","sidebar.groups.workspace":"Workspace","sidebar.groups.account":"Conta","sidebar.groups.support":"Suporte","sidebar.analytics":"Analytics","sidebar.posts.calendar":"Calendário","sidebar.posts.all":"Todos","sidebar.posts.scheduled":"Agendados","sidebar.posts.posted":"Publicados","sidebar.posts.drafts":"Rascunhos","sidebar.account.settings":"Configurações","sidebar.account.usage":"Uso","sidebar.account.billing":"Faturamento","sidebar.notifications":"Notificações","sidebar.mark_all_read":"Marcar tudo como lido","sidebar.mark_as_read":"Marcar como lido","sidebar.archive_all":"Arquivar tudo","sidebar.no_notifications":"Sem notificações","sidebar.support.discord":"Discord","sidebar.support.share_feedback":"Enviar feedback","sidebar.support.last_updates":"Últimas Atualizações","sidebar.support.docs":"Documentação","usage.title":"Uso","usage.section_account":"Conta","usage.section_account_description":"Cotas e limites do seu plano :plan.","usage.section_ai":"Geração AI","usage.section_ai_description":"Uso de geração de imagens e vídeos AI do mês atual.","usage.section_data":"Dados","usage.section_data_description":"Retenção de dados e armazenamento do seu plano.","usage.workspaces":"Workspaces","usage.social_accounts":"Contas Sociais","usage.members":"Membros","usage.ai_images":"Imagens","usage.ai_videos":"Vídeos","usage.data_retention":"Retenção de Dados","usage.unlimited":"Ilimitado","usage.days":"dias","usage.year":"ano","usage.years":"anos","validation.accepted":"O campo :attribute deve ser aceito.","validation.accepted_if":"O campo :attribute deve ser aceito quando :other for :value.","validation.active_url":"O campo :attribute deve ser uma URL válida.","validation.after":"O campo :attribute deve ser uma data posterior a :date.","validation.after_or_equal":"O campo :attribute deve ser uma data posterior ou igual a :date.","validation.alpha":"O campo :attribute deve conter apenas letras.","validation.alpha_dash":"O campo :attribute deve conter apenas letras, números, hifens e underscores.","validation.alpha_num":"O campo :attribute deve conter apenas letras e números.","validation.any_of":"O campo :attribute é inválido.","validation.array":"O campo :attribute deve ser um array.","validation.ascii":"O campo :attribute deve conter apenas caracteres alfanuméricos e símbolos de um byte.","validation.before":"O campo :attribute deve ser uma data anterior a :date.","validation.before_or_equal":"O campo :attribute deve ser uma data anterior ou igual a :date.","validation.between.array":"O campo :attribute deve ter entre :min e :max itens.","validation.between.file":"O campo :attribute deve estar entre :min e :max kilobytes.","validation.between.numeric":"O campo :attribute deve estar entre :min e :max.","validation.between.string":"O campo :attribute deve estar entre :min e :max caracteres.","validation.boolean":"O campo :attribute deve ser verdadeiro ou falso.","validation.can":"O campo :attribute contém um valor não autorizado.","validation.confirmed":"A confirmação do campo :attribute não corresponde.","validation.contains":"O campo :attribute está faltando um valor obrigatório.","validation.current_password":"A senha está incorreta.","validation.date":"O campo :attribute deve ser uma data válida.","validation.date_equals":"O campo :attribute deve ser uma data igual a :date.","validation.date_format":"O campo :attribute deve corresponder ao formato :format.","validation.decimal":"O campo :attribute deve ter :decimal casas decimais.","validation.declined":"O campo :attribute deve ser recusado.","validation.declined_if":"O campo :attribute deve ser recusado quando :other for :value.","validation.different":"O campo :attribute e :other devem ser diferentes.","validation.digits":"O campo :attribute deve ter :digits dígitos.","validation.digits_between":"O campo :attribute deve ter entre :min e :max dígitos.","validation.dimensions":"O campo :attribute deve ter dimensões de imagem válidas.","validation.distinct":"O campo :attribute tem um valor duplicado.","validation.doesnt_contain":"O campo :attribute não deve conter nenhum dos seguintes: :values.","validation.doesnt_end_with":"O campo :attribute não deve terminar com nenhum dos seguintes: :values.","validation.doesnt_start_with":"O campo :attribute não deve começar com nenhum dos seguintes: :values.","validation.email":"O campo :attribute deve ser um endereço de e-mail válido.","validation.encoding":"O campo :attribute deve ser codificado em :encoding.","validation.ends_with":"O campo :attribute deve terminar com um dos seguintes: :values.","validation.enum":"O :attribute selecionado é inválido.","validation.exists":"O :attribute selecionado é inválido.","validation.extensions":"O campo :attribute deve ter uma das seguintes extensões: :values.","validation.file":"O campo :attribute deve ser um arquivo.","validation.filled":"O campo :attribute deve ter um valor.","validation.gt.array":"O campo :attribute deve ter mais de :value itens.","validation.gt.file":"O campo :attribute deve ser maior que :value kilobytes.","validation.gt.numeric":"O campo :attribute deve ser maior que :value.","validation.gt.string":"O campo :attribute deve ser maior que :value caracteres.","validation.gte.array":"O campo :attribute deve ter :value itens ou mais.","validation.gte.file":"O campo :attribute deve ser maior ou igual a :value kilobytes.","validation.gte.numeric":"O campo :attribute deve ser maior ou igual a :value.","validation.gte.string":"O campo :attribute deve ser maior ou igual a :value caracteres.","validation.hex_color":"O campo :attribute deve ser uma cor hexadecimal válida.","validation.image":"O campo :attribute deve ser uma imagem.","validation.in":"O :attribute selecionado é inválido.","validation.in_array":"O campo :attribute deve existir em :other.","validation.in_array_keys":"O campo :attribute deve conter pelo menos uma das seguintes chaves: :values.","validation.integer":"O campo :attribute deve ser um inteiro.","validation.ip":"O campo :attribute deve ser um endereço IP válido.","validation.ipv4":"O campo :attribute deve ser um endereço IPv4 válido.","validation.ipv6":"O campo :attribute deve ser um endereço IPv6 válido.","validation.json":"O campo :attribute deve ser uma string JSON válida.","validation.list":"O campo :attribute deve ser uma lista.","validation.lowercase":"O campo :attribute deve estar em minúsculas.","validation.lt.array":"O campo :attribute deve ter menos de :value itens.","validation.lt.file":"O campo :attribute deve ser menor que :value kilobytes.","validation.lt.numeric":"O campo :attribute deve ser menor que :value.","validation.lt.string":"O campo :attribute deve ser menor que :value caracteres.","validation.lte.array":"O campo :attribute deve ter :value itens ou menos.","validation.lte.file":"O campo :attribute deve ser menor ou igual a :value kilobytes.","validation.lte.numeric":"O campo :attribute deve ser menor ou igual a :value.","validation.lte.string":"O campo :attribute deve ser menor ou igual a :value caracteres.","validation.mac_address":"O campo :attribute deve ser um endereço MAC válido.","validation.max.array":"O campo :attribute deve ter no máximo :max itens.","validation.max.file":"O campo :attribute deve ter no máximo :max kilobytes.","validation.max.numeric":"O campo :attribute deve ter no máximo :max.","validation.max.string":"O campo :attribute deve ter no máximo :max caracteres.","validation.max_digits":"O campo :attribute não deve ter mais que :max dígitos.","validation.mimes":"O campo :attribute deve ser um arquivo do tipo: :values.","validation.mimetypes":"O campo :attribute deve ser um arquivo do tipo: :values.","validation.min.array":"O campo :attribute deve ter pelo menos :min itens.","validation.min.file":"O campo :attribute deve ter pelo menos :min kilobytes.","validation.min.numeric":"O campo :attribute deve ter pelo menos :min.","validation.min.string":"O campo :attribute deve ter pelo menos :min caracteres.","validation.min_digits":"O campo :attribute deve ter pelo menos :min dígitos.","validation.missing":"O campo :attribute deve estar ausente.","validation.missing_if":"O campo :attribute deve estar ausente quando :other for :value.","validation.missing_unless":"O campo :attribute deve estar ausente a menos que :other seja :value.","validation.missing_with":"O campo :attribute deve estar ausente quando :values estiver presente.","validation.missing_with_all":"O campo :attribute deve estar ausente quando :values estiverem presentes.","validation.multiple_of":"O campo :attribute deve ser um múltiplo de :value.","validation.not_in":"O :attribute selecionado é inválido.","validation.not_regex":"O formato do campo :attribute é inválido.","validation.numeric":"O campo :attribute deve ser um número.","validation.password.letters":"O campo :attribute deve conter pelo menos uma letra.","validation.password.mixed":"O campo :attribute deve conter pelo menos uma letra maiúscula e uma minúscula.","validation.password.numbers":"O campo :attribute deve conter pelo menos um número.","validation.password.symbols":"O campo :attribute deve conter pelo menos um símbolo.","validation.password.uncompromised":"O :attribute fornecido apareceu em um vazamento de dados. Por favor, escolha um :attribute diferente.","validation.present":"O campo :attribute deve estar presente.","validation.present_if":"O campo :attribute deve estar presente quando :other for :value.","validation.present_unless":"O campo :attribute deve estar presente a menos que :other seja :value.","validation.present_with":"O campo :attribute deve estar presente quando :values estiver presente.","validation.present_with_all":"O campo :attribute deve estar presente quando :values estiverem presentes.","validation.prohibited":"O campo :attribute é proibido.","validation.prohibited_if":"O campo :attribute é proibido quando :other for :value.","validation.prohibited_if_accepted":"O campo :attribute é proibido quando :other for aceito.","validation.prohibited_if_declined":"O campo :attribute é proibido quando :other for recusado.","validation.prohibited_unless":"O campo :attribute é proibido a menos que :other esteja em :values.","validation.prohibits":"O campo :attribute proíbe :other de estar presente.","validation.regex":"O formato do campo :attribute é inválido.","validation.required":"O campo :attribute é obrigatório.","validation.required_array_keys":"O campo :attribute deve conter entradas para: :values.","validation.required_if":"O campo :attribute é obrigatório quando :other for :value.","validation.required_if_accepted":"O campo :attribute é obrigatório quando :other for aceito.","validation.required_if_declined":"O campo :attribute é obrigatório quando :other for recusado.","validation.required_unless":"O campo :attribute é obrigatório a menos que :other esteja em :values.","validation.required_with":"O campo :attribute é obrigatório quando :values estiver presente.","validation.required_with_all":"O campo :attribute é obrigatório quando :values estiverem presentes.","validation.required_without":"O campo :attribute é obrigatório quando :values não estiver presente.","validation.required_without_all":"O campo :attribute é obrigatório quando nenhum dos :values estiver presente.","validation.same":"O campo :attribute deve ser igual a :other.","validation.size.array":"O campo :attribute deve conter :size itens.","validation.size.file":"O campo :attribute deve ter :size kilobytes.","validation.size.numeric":"O campo :attribute deve ser :size.","validation.size.string":"O campo :attribute deve ter :size caracteres.","validation.starts_with":"O campo :attribute deve começar com um dos seguintes: :values.","validation.string":"O campo :attribute deve ser uma string.","validation.timezone":"O campo :attribute deve ser um fuso horário válido.","validation.unique":"O :attribute já foi utilizado.","validation.uploaded":"O :attribute falhou ao ser enviado.","validation.uppercase":"O campo :attribute deve estar em maiúsculo.","validation.url":"O campo :attribute deve ser uma URL válida.","validation.ulid":"O campo :attribute deve ser um ULID válido.","validation.uuid":"O campo :attribute deve ser um UUID válido.","validation.custom.attribute-name.rule-name":"custom-message","workspaces.title":"Workspaces","workspaces.select_title":"Seus workspaces","workspaces.select_description":"Selecione um workspace para continuar","workspaces.current":"Atual","workspaces.connections":":count conexões","workspaces.posts":":count posts","workspaces.create.page_title":"Crie seu workspace","workspaces.create.title":"Configure seu workspace","workspaces.create.description":"Conte um pouco sobre você ou seu projeto. Vamos usar pra personalizar os posts gerados por IA com a sua voz.","workspaces.create.website":"Site","workspaces.create.website_placeholder":"https://suamarca.com","workspaces.create.autofill":"Preencher do site","workspaces.create.autofill_missing_url":"Informe uma URL primeiro.","workspaces.create.autofill_success":"Informações da marca carregadas.","workspaces.create.autofill_error":"Não foi possível preencher automaticamente. Você pode preencher os campos manualmente.","workspaces.create.autofill_errors.unreachable":"Não conseguimos acessar esse site (:reason).","workspaces.create.autofill_errors.http_status":"O site retornou um status inesperado (:status).","workspaces.create.autofill_errors.invalid_scheme":"Apenas URLs http e https são suportadas.","workspaces.create.autofill_errors.missing_host":"A URL está sem um host.","workspaces.create.autofill_errors.unresolvable_host":"Não conseguimos resolver o host (:host).","workspaces.create.autofill_errors.private_network":"URLs apontando para redes privadas não são permitidas.","workspaces.create.logo_captured":"Logo capturada do seu site.","workspaces.create.name":"Nome do workspace","workspaces.create.name_placeholder":"ex. Acme Inc","workspaces.create.brand_description":"Descrição da marca","workspaces.create.brand_description_placeholder":"O que sua marca faz?","workspaces.create.tone":"Tom da marca","workspaces.create.tone_professional":"Profissional","workspaces.create.tone_casual":"Casual","workspaces.create.tone_friendly":"Amigável","workspaces.create.tone_bold":"Ousado","workspaces.create.tone_inspirational":"Inspirador","workspaces.create.tone_humorous":"Bem-humorado","workspaces.create.tone_educational":"Educacional","workspaces.create.content_language":"Idioma do conteúdo","workspaces.create.content_language_description":"Legendas geradas por IA serão escritas neste idioma.","workspaces.create.voice_notes":"Notas de voz (opcional)","workspaces.create.voice_notes_placeholder":"ex. frases curtas e diretas. sem jargão.","workspaces.create.brand_color":"Cor da marca","workspaces.create.background_color":"Cor de fundo","workspaces.create.text_color":"Cor do texto","workspaces.create.submit":"Criar workspace","workspaces.create.first_workspace_success":"Workspace criado. Conecte uma conta social para começar a postar.","workspaces.create.success":"Workspace criado."}\ No newline at end of filediff --git a/lang/pt-BR/assistant.php b/lang/pt-BR/assistant.phpdeleted file mode 100644index 7c6f4dba4..000000000--- a/lang/pt-BR/assistant.php+++ /dev/null@@ -1,19 +0,0 @@-<?php--declare(strict_types=1);--return [- 'placeholder' => 'Me peça para escrever uma legenda, gerar uma imagem ou vídeo...',- 'thinking' => 'Pensando...',- 'add_to_post' => 'Adicionar ao post',- 'added' => 'Adicionado',- 'error' => 'Algo deu errado. Tente novamente.',- 'retry' => 'Tentar de novo',- 'image_generated' => 'Aqui está a imagem gerada:',- 'video_generated' => 'Aqui está o vídeo gerado:',- 'audio_generated' => 'Aqui está o áudio gerado:',- 'empty' => 'Me pergunte qualquer coisa. Posso escrever legendas, gerar imagens e produzir vídeos.',- 'limit_reached_images' => 'Você atingiu o limite mensal de geração de imagens.',- 'limit_reached_videos' => 'Você atingiu o limite mensal de geração de vídeos.',- 'content_blocked' => 'Não posso ajudar com esse tipo de conteúdo. Estou aqui para ajudar você a criar conteúdo seguro e engajador para redes sociais.',-];diff --git a/lang/pt-BR/posts.php b/lang/pt-BR/posts.phpindex 37e925b9e..d178b6a44 100644--- a/lang/pt-BR/posts.php+++ b/lang/pt-BR/posts.php@@ -165,6 +165,33 @@ return ['published' => 'Posts já publicados',],+ 'ai' => [+ 'generate' => [+ 'button_tooltip' => 'Gerar com IA',+ 'title' => 'Gerar post com IA',+ 'description' => 'Descreva sobre o que o post deve ser. A IA vai usar o contexto da sua marca pra escrever.',+ 'prompt_label' => 'Sobre o que é esse post?',+ 'prompt_placeholder' => 'ex: anunciar nossa nova feature de geração de imagens pra carrosséis',+ 'preview_label' => 'Prévia',+ 'start' => 'Gerar',+ 'apply' => 'Usar este conteúdo',+ 'retry' => 'Tentar de novo',+ 'cancel' => 'Cancelar',+ ],+ 'review' => [+ 'button_tooltip' => 'Revisar com IA',+ 'title' => 'Revisar post com IA',+ 'description' => 'IA analisa gramática, ortografia e clareza. Aplique as sugestões uma a uma.',+ 'loading' => 'Revisando seu texto...',+ 'no_issues' => 'Nenhum problema encontrado. Tudo certo.',+ 'original' => 'Original',+ 'suggestion' => 'Sugestão',+ 'apply' => 'Aplicar',+ 'applied' => 'Aplicado',+ 'close' => 'Fechar',+ ],+ ],+'show' => ['title' => 'Detalhes do Post','edit' => 'Editar',@@ -255,8 +282,6 @@ return ['schedule' => 'Agendamento','comments' => 'Comentários','comments_empty' => 'Nenhum comentário ainda.',- 'writing_assistant' => 'Assistente IA',- 'writing_assistant_empty' => 'Assistente de escrita em breve.',],'media_picker' => [@@ -446,4 +471,82 @@ return ['account_disconnected' => 'Conta social está desconectada','account_inactive' => 'Conta social está desativada',],++ 'create' => [+ 'title' => 'Criar novo post',+ 'description' => 'Escolha como quer começar.',+ 'scratch_title' => 'Começar do zero',+ 'scratch_description' => 'Abre um post em branco pra você escrever tudo.',+ 'ai_title' => 'Gerar com IA',+ 'ai_description' => 'Descreva o que quer e a IA gera o conteúdo pra você.',+ 'ai_configure_description' => 'Escolha o formato e descreva o post que quer criar.',+ 'template_title' => 'Usar um template',+ 'template_description' => 'Escolha um dos nossos templates e personalize.',+ 'coming_soon' => 'Em breve',++ 'steps' => [+ 'format_title' => 'Escolha um formato',+ 'format_description' => 'Selecione o tipo de post que deseja criar.',+ 'account_title' => 'Escolha uma conta',+ 'account_description' => 'Selecione a conta social para publicar.',+ 'media_title' => 'Opções de mídia',+ 'media_carousel' => 'Quantos slides?',+ 'media_optional' => 'Incluir imagens?',+ 'media_optional_label' => 'Quantas imagens?',+ 'media_none' => 'Nenhuma',+ 'media_count_label' => 'Número de imagens',+ 'prompt_title' => 'Descreva seu post',+ 'prompt_label' => 'Sobre o que é este post?',+ 'prompt_placeholder' => 'Ex. Anunciar nossa nova função de carrossel para o Instagram',+ 'preview_title' => 'Prévia',+ 'preview_loading' => 'Gerando seu conteúdo…',+ 'preview_error' => 'Algo deu errado. Por favor, tente novamente.',+ 'create' => 'Criar post',+ 'back' => 'Voltar',+ 'next' => 'Continuar',+ 'cancel' => 'Cancelar',+ 'discard' => 'Descartar',+ 'retry' => 'Tentar novamente',+ 'no_platforms' => 'Nenhuma conta conectada',+ 'connect_first' => 'Conecte pelo menos uma conta social para usar a geração com IA.',++ 'format' => [+ 'instagram_feed' => 'Post no Feed do Instagram',+ 'instagram_carousel' => 'Carrossel do Instagram',+ 'linkedin_post' => 'Post no LinkedIn',+ 'linkedin_page_post' => 'Post em Página do LinkedIn',+ 'x_post' => 'Post no X',+ 'bluesky_post' => 'Post no Bluesky',+ 'threads_post' => 'Post no Threads',+ 'mastodon_post' => 'Post no Mastodon',+ 'facebook_post' => 'Post no Facebook',+ 'pinterest_pin' => 'Pin no Pinterest',+ 'instagram_story' => 'Story do Instagram',+ 'facebook_story' => 'Story do Facebook',+ ],+ ],+ ],++ 'templates' => [+ 'browser_title' => 'Escolha um template',+ 'browser_description' => 'Comece com um template pronto e adapte ao seu jeito.',+ 'all_platforms' => 'Todas as plataformas',+ 'use_this' => 'Usar este template',+ 'no_templates' => 'Nenhum template disponível.',+ 'applying' => 'Aplicando template…',+ 'search_placeholder' => 'Buscar templates…',+ 'no_search_results' => 'Nenhum template encontrado',+ 'try_different_search' => 'Tente outra palavra-chave ou limpe a busca.',+ 'slides_count' => '{count} slide|{count} slides',+ 'category' => [+ 'product_launch' => 'Lançamento de produto',+ 'promotion' => 'Promoção',+ 'educational' => 'Educacional',+ 'behind_the_scenes' => 'Bastidores',+ 'testimonial' => 'Depoimento',+ 'industry_tip' => 'Dica do setor',+ 'event' => 'Evento',+ 'engagement' => 'Engajamento',+ ],+ ],];diff --git a/lang/pt-BR/settings.php b/lang/pt-BR/settings.phpindex 6b8eebeea..855ae7e1c 100644--- a/lang/pt-BR/settings.php+++ b/lang/pt-BR/settings.php@@ -109,6 +109,7 @@ return ['brand_color' => 'Cor da marca','background_color' => 'Cor de fundo','text_color' => 'Cor do texto',+ 'font' => 'Fonte','content_language' => 'Idioma do conteúdo','content_language_description' => 'Idioma usado nas legendas, hashtags e em qualquer texto dentro de imagens ou vídeos gerados por AI.',],diff --git a/lang/pt-BR/workspaces.php b/lang/pt-BR/workspaces.phpindex 9cd38a0d6..2ce417d35 100644--- a/lang/pt-BR/workspaces.php+++ b/lang/pt-BR/workspaces.php@@ -13,7 +13,7 @@ return ['create' => ['page_title' => 'Crie seu workspace','title' => 'Configure seu workspace',- 'description' => 'Conte sobre sua marca. Vamos usar isso para personalizar posts gerados por IA com a sua voz.',+ 'description' => 'Conte um pouco sobre você ou seu projeto. Vamos usar pra personalizar os posts gerados por IA com a sua voz.','website' => 'Site','website_placeholder' => 'https://suamarca.com','autofill' => 'Preencher do site',diff --git a/resources/fonts/Inter-Bold.ttf b/resources/fonts/Inter-Bold.ttfnew file mode 100644index 000000000..9fb9b751eBinary files /dev/null and b/resources/fonts/Inter-Bold.ttf differdiff --git a/resources/fonts/Inter-Light.ttf b/resources/fonts/Inter-Light.ttfnew file mode 100644index 000000000..2e0739314Binary files /dev/null and b/resources/fonts/Inter-Light.ttf differdiff --git a/resources/fonts/Inter-Medium.ttf b/resources/fonts/Inter-Medium.ttfnew file mode 100644index 000000000..458cd0601Binary files /dev/null and b/resources/fonts/Inter-Medium.ttf differdiff --git a/resources/fonts/Inter-Regular.ttf b/resources/fonts/Inter-Regular.ttfnew file mode 100644index 000000000..b7aaca8deBinary files /dev/null and b/resources/fonts/Inter-Regular.ttf differdiff --git a/resources/fonts/Inter-SemiBold.ttf b/resources/fonts/Inter-SemiBold.ttfnew file mode 100644index 000000000..47f8ab1d6Binary files /dev/null and b/resources/fonts/Inter-SemiBold.ttf differdiff --git a/resources/js/components/AppSidebar.vue b/resources/js/components/AppSidebar.vueindex db48fd753..0dc8e7463 100644--- a/resources/js/components/AppSidebar.vue+++ b/resources/js/components/AppSidebar.vue@@ -22,8 +22,7 @@ import {import { trans } from 'laravel-vue-i18n';import { computed } from 'vue';-import { store as storePost } from '@/actions/App/Http/Controllers/App/PostController';-import { index as postsIndex } from '@/actions/App/Http/Controllers/App/PostController';+import { create as createPost, index as postsIndex } from '@/actions/App/Http/Controllers/App/PostController';import { WorkspaceRole } from '@/enums/workspace-role';import NavMain from '@/components/NavMain.vue';import NavUser from '@/components/NavUser.vue';@@ -229,7 +228,7 @@ const switchWorkspace = (workspaceId: string) => {<SidebarContent><!-- Create Post Button --><div v-if="currentWorkspace" class="px-2 py-2">- <Link :href="storePost.url()" method="post" class="w-full">+ <Link :href="createPost.url()" class="block"><Button :size="sidebarState === 'collapsed' ? 'icon' : 'default'" class="w-full"><IconPlus v-if="sidebarState === 'collapsed'" class="size-4" /><span v-if="sidebarState === 'expanded'">{{ $t('sidebar.create_post') }}</span>diff --git a/resources/js/components/FontPicker.vue b/resources/js/components/FontPicker.vuenew file mode 100644index 000000000..73578bc3a--- /dev/null+++ b/resources/js/components/FontPicker.vue@@ -0,0 +1,114 @@+<script setup lang="ts">+import { IconCheck, IconChevronDown } from '@tabler/icons-vue';+import { computed, onMounted, ref, watch } from 'vue';++import { Button } from '@/components/ui/button';+import {+ Command,+ CommandEmpty,+ CommandGroup,+ CommandInput,+ CommandItem,+ CommandList,+} from '@/components/ui/command';+import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover';+import { cn } from '@/lib/utils';++interface Props {+ /** List of font family names. Each will be loaded via Google Fonts so the+ * preview text in the dropdown renders in the actual typeface. */+ fonts: string[];+ placeholder?: string;+ name?: string;+ disabled?: boolean;+}++const props = withDefaults(defineProps<Props>(), {+ placeholder: 'Select a font…',+ disabled: false,+});++const value = defineModel<string>({ required: true });++const open = ref(false);++// Build a single Google Fonts URL that loads ALL options at once. This way the+// dropdown preview shows each family in its own typeface without firing a+// request per item. We only request the regular weight to keep payload small.+const googleFontsUrl = computed(() => {+ const families = props.fonts+ .map((f) => `family=${encodeURIComponent(f)}:wght@400`)+ .join('&');+ return `https://fonts.googleapis.com/css2?${families}&display=swap`;+});++let injectedLink: HTMLLinkElement | null = null;++const ensureFontsLoaded = () => {+ if (injectedLink || typeof document === 'undefined') return;++ injectedLink = document.createElement('link');+ injectedLink.rel = 'stylesheet';+ injectedLink.href = googleFontsUrl.value;+ injectedLink.dataset.fontPicker = 'true';+ document.head.appendChild(injectedLink);+};++onMounted(ensureFontsLoaded);++// Reload the stylesheet if the list of fonts changes (rare).+watch(googleFontsUrl, (next) => {+ if (injectedLink) {+ injectedLink.href = next;+ }+});++const select = (font: string) => {+ value.value = font;+ open.value = false;+};+</script>++<template>+ <Popover v-model:open="open">+ <PopoverTrigger as-child>+ <Button+ type="button"+ variant="outline"+ role="combobox"+ :aria-expanded="open"+ :disabled="disabled"+ class="w-full justify-between font-normal"+ >+ <span :style="{ fontFamily: `'${value}', sans-serif` }">+ {{ value || placeholder }}+ </span>+ <IconChevronDown class="ml-2 size-4 shrink-0 opacity-50" />+ </Button>+ </PopoverTrigger>++ <PopoverContent class="w-[--reka-popover-trigger-width] p-0" align="start">+ <Command>+ <CommandInput placeholder="Search font…" />+ <CommandList>+ <CommandEmpty>No fonts match.</CommandEmpty>+ <CommandGroup>+ <CommandItem+ v-for="font in fonts"+ :key="font"+ :value="font"+ @select="select(font)"+ >+ <span :style="{ fontFamily: `'${font}', sans-serif` }">{{ font }}</span>+ <IconCheck+ :class="cn('ml-auto size-4', value === font ? 'opacity-100' : 'opacity-0')"+ />+ </CommandItem>+ </CommandGroup>+ </CommandList>+ </Command>+ </PopoverContent>+ </Popover>++ <input v-if="name" type="hidden" :name="name" :value="value" />+</template>diff --git a/resources/js/components/HexColorInput.vue b/resources/js/components/HexColorInput.vueindex 6fb68c016..8aa9a98f7 100644--- a/resources/js/components/HexColorInput.vue+++ b/resources/js/components/HexColorInput.vue@@ -248,7 +248,7 @@ const huePointerStyle = computed(() => ({<!-- Hex input --><Input- :value="text"+ :model-value="text":placeholder="placeholder"class="font-mono":class="!isValid ? 'border-destructive focus-visible:ring-destructive' : ''"@@ -272,7 +272,7 @@ const huePointerStyle = computed(() => ({</Popover><Input- :value="text"+ :model-value="text":name="name":placeholder="placeholder":disabled="disabled"diff --git a/resources/js/components/ImagePreviewDialog.vue b/resources/js/components/ImagePreviewDialog.vueindex 50626d986..119e3d030 100644--- a/resources/js/components/ImagePreviewDialog.vue+++ b/resources/js/components/ImagePreviewDialog.vue@@ -1,33 +1,125 @@<script setup lang="ts">-import { computed } from 'vue';+import { IconChevronLeft, IconChevronRight } from '@tabler/icons-vue';+import { computed, onUnmounted, watch } from 'vue';import { Dialog, DialogContent, DialogTitle } from '@/components/ui/dialog';-const props = defineProps<{- src: string | null;-}>();+interface Props {+ /** Single-image mode (backward compatible). */+ src?: string | null;+ /** Multi-image mode — pass the full list and bind v-model:index to control which one is shown. */+ images?: string[];+}++const props = withDefaults(defineProps<Props>(), {+ src: null,+ images: () => [],+});++const index = defineModel<number | null>('index', { default: null });const emit = defineEmits<{close: [];}>();+// Multi-image takes precedence; falls back to single src when no list provided.+const allImages = computed<string[]>(() =>+ props.images.length > 0 ? props.images : (props.src ? [props.src] : []),+);++// In multi-image mode the dialog is open when index is a number. In single src+// mode (legacy) it's open whenever src is set.const isOpen = computed({- get: () => props.src !== null,- set: (val) => { if (!val) emit('close'); },+ get: () => allImages.value.length > 0 && (props.images.length === 0 || index.value !== null),+ set: (val) => {+ if (!val) emit('close');+ },});++const safeIndex = computed(() =>+ Math.max(0, Math.min(index.value ?? 0, allImages.value.length - 1)),+);+const currentImage = computed(() => allImages.value[safeIndex.value] ?? null);+const hasPrev = computed(() => safeIndex.value > 0);+const hasNext = computed(() => safeIndex.value < allImages.value.length - 1);+const showNav = computed(() => allImages.value.length > 1);++const goPrev = () => {+ if (hasPrev.value) index.value = safeIndex.value - 1;+};+const goNext = () => {+ if (hasNext.value) index.value = safeIndex.value + 1;+};++const onKeydown = (e: KeyboardEvent) => {+ if (!isOpen.value) return;+ if (e.key === 'ArrowLeft') {+ e.preventDefault();+ goPrev();+ } else if (e.key === 'ArrowRight') {+ e.preventDefault();+ goNext();+ }+};++watch(+ isOpen,+ (open) => {+ if (open) {+ window.addEventListener('keydown', onKeydown);+ } else {+ window.removeEventListener('keydown', onKeydown);+ }+ },+ { immediate: true },+);++onUnmounted(() => window.removeEventListener('keydown', onKeydown));</script><template><Dialog v-model:open="isOpen">- <DialogContent class="max-w-4xl gap-0 border-0 bg-transparent p-0 shadow-none sm:max-w-4xl" :show-close-button="false">+ <DialogContent+ class="max-w-5xl gap-0 border-0 bg-transparent p-0 shadow-none outline-none focus:outline-none focus-visible:outline-none sm:max-w-5xl"+ :show-close-button="false"+ ><DialogTitle class="sr-only">Image preview</DialogTitle>- <img- v-if="src"- :src="src"- alt="Preview"- class="max-h-[85vh] w-full cursor-pointer rounded-lg object-contain"- @click="emit('close')"- />+ <div class="relative flex justify-center">+ <img+ v-if="currentImage"+ :src="currentImage"+ alt="Preview"+ class="max-h-[85vh] max-w-full cursor-pointer rounded-2xl object-contain"+ @click="emit('close')"+ />++ <button+ v-if="showNav && hasPrev"+ type="button"+ aria-label="Previous image"+ class="absolute left-2 top-1/2 -translate-y-1/2 rounded-full bg-black/50 p-2 text-white transition hover:bg-black/70"+ @click.stop="goPrev"+ >+ <IconChevronLeft class="size-6" />+ </button>++ <button+ v-if="showNav && hasNext"+ type="button"+ aria-label="Next image"+ class="absolute right-2 top-1/2 -translate-y-1/2 rounded-full bg-black/50 p-2 text-white transition hover:bg-black/70"+ @click.stop="goNext"+ >+ <IconChevronRight class="size-6" />+ </button>++ <div+ v-if="showNav"+ class="absolute bottom-3 left-1/2 -translate-x-1/2 rounded-full bg-black/60 px-3 py-1 text-xs text-white tabular-nums"+ >+ {{ safeIndex + 1 }} / {{ allImages.length }}+ </div>+ </div></DialogContent></Dialog></template>diff --git a/resources/js/components/posts/PostPlatformMetrics.vue b/resources/js/components/posts/PostPlatformMetrics.vueindex 85222460d..4e610a5dc 100644--- a/resources/js/components/posts/PostPlatformMetrics.vue+++ b/resources/js/components/posts/PostPlatformMetrics.vue@@ -32,7 +32,7 @@ onMounted(async () => {try {const response = await useHttp().get(metricsRoute.url({ post: props.postId, postPlatform: props.postPlatformId }),- );+ ) as { data: unknown };const data = response.data;if (Array.isArray(data)) {diff --git a/resources/js/components/posts/ai/AiGenerateDialog.vue b/resources/js/components/posts/ai/AiGenerateDialog.vuenew file mode 100644index 000000000..e5f41143c--- /dev/null+++ b/resources/js/components/posts/ai/AiGenerateDialog.vue@@ -0,0 +1,140 @@+<script setup lang="ts">+import { IconLoader2, IconRefresh, IconSparkles, IconWriting } from '@tabler/icons-vue';+import { computed, ref, watch } from 'vue';++import { Button } from '@/components/ui/button';+import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from '@/components/ui/dialog';+import { Textarea } from '@/components/ui/textarea';+import { useAiStream } from '@/composables/useAiStream';+import { generate as generatePostAi } from '@/routes/app/posts/ai';++const props = defineProps<{+ postId: string;+ currentContent: string;+}>();++const open = defineModel<boolean>('open', { required: true });++const emit = defineEmits<{+ (e: 'apply', content: string): void;+}>();++const prompt = ref('');+const dispatching = ref(false);+const { text, status, errorMessage, subscribe, unsubscribe, reset } = useAiStream();++const csrfToken = document.querySelector<HTMLMetaElement>('meta[name="csrf-token"]')?.content ?? '';++const startGeneration = async () => {+ if (! prompt.value.trim()) return;+ dispatching.value = true;+ try {+ const response = await fetch(generatePostAi.url(props.postId), {+ method: 'POST',+ headers: {+ 'Content-Type': 'application/json',+ Accept: 'application/json',+ 'X-CSRF-TOKEN': csrfToken,+ 'X-Requested-With': 'XMLHttpRequest',+ },+ body: JSON.stringify({+ prompt: prompt.value,+ current_content: props.currentContent || null,+ }),+ });+ if (! response.ok) {+ status.value = 'failed';+ errorMessage.value = 'Could not start generation';+ return;+ }+ const data = await response.json();+ subscribe(data.channel);+ } finally {+ dispatching.value = false;+ }+};++const apply = () => {+ emit('apply', text.value);+ open.value = false;+};++const retry = () => {+ unsubscribe();+ reset();+ startGeneration();+};++const canApply = computed(() => status.value === 'completed' && text.value.trim().length > 0);+const canRetry = computed(() => status.value === 'completed' || status.value === 'failed');++watch(open, (isOpen) => {+ if (! isOpen) {+ unsubscribe();+ reset();+ prompt.value = '';+ } else {+ prompt.value = props.currentContent || '';+ }+});+</script>++<template>+ <Dialog v-model:open="open">+ <DialogContent class="sm:max-w-2xl">+ <DialogHeader>+ <DialogTitle class="flex items-center gap-2">+ <IconSparkles class="size-5 text-primary" />+ {{ $t('posts.ai.generate.title') }}+ </DialogTitle>+ <DialogDescription>{{ $t('posts.ai.generate.description') }}</DialogDescription>+ </DialogHeader>++ <div class="space-y-4">+ <div class="space-y-2">+ <label class="text-sm font-medium">{{ $t('posts.ai.generate.prompt_label') }}</label>+ <Textarea+ v-model="prompt"+ :placeholder="$t('posts.ai.generate.prompt_placeholder')"+ :disabled="status === 'streaming'"+ rows="3"+ />+ </div>++ <div v-if="status !== 'idle'" class="space-y-2">+ <label class="flex items-center gap-1.5 text-sm font-medium">+ <IconWriting class="size-4 text-muted-foreground" />+ {{ $t('posts.ai.generate.preview_label') }}+ <IconLoader2 v-if="status === 'streaming'" class="size-3.5 animate-spin text-muted-foreground" />+ </label>+ <div class="min-h-[120px] whitespace-pre-wrap rounded-md border bg-muted/30 px-3 py-2 text-sm">{{ text || '...' }}</div>+ <p v-if="status === 'failed'" class="text-xs text-destructive">{{ errorMessage }}</p>+ </div>+ </div>++ <DialogFooter class="gap-2 sm:gap-2">+ <Button v-if="canRetry" variant="outline" @click="retry">+ <IconRefresh class="size-4" />+ {{ $t('posts.ai.generate.retry') }}+ </Button>+ <Button+ v-if="status === 'idle'"+ :disabled="! prompt.trim() || dispatching"+ @click="startGeneration"+ >+ <IconSparkles class="size-4" />+ {{ $t('posts.ai.generate.start') }}+ </Button>+ <Button+ v-if="canApply"+ @click="apply"+ >+ {{ $t('posts.ai.generate.apply') }}+ </Button>+ <Button variant="outline" @click="open = false">+ {{ $t('posts.ai.generate.cancel') }}+ </Button>+ </DialogFooter>+ </DialogContent>+ </Dialog>+</template>diff --git a/resources/js/components/posts/ai/AiReviewDialog.vue b/resources/js/components/posts/ai/AiReviewDialog.vuenew file mode 100644index 000000000..5e80b5221--- /dev/null+++ b/resources/js/components/posts/ai/AiReviewDialog.vue@@ -0,0 +1,132 @@+<script setup lang="ts">+import { IconCheck, IconLoader2, IconWriting } from '@tabler/icons-vue';+import { computed, ref, watch } from 'vue';++import { Button } from '@/components/ui/button';+import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from '@/components/ui/dialog';+import { review as reviewPostAi } from '@/routes/app/posts/ai';++interface Suggestion {+ original: string;+ suggestion: string;+ reason: string;+}++const props = defineProps<{+ postId: string;+ content: string;+}>();++const open = defineModel<boolean>('open', { required: true });++const emit = defineEmits<{+ (e: 'apply', original: string, suggestion: string): void;+}>();++const status = ref<'idle' | 'loading' | 'completed' | 'failed'>('idle');+const suggestions = ref<Suggestion[]>([]);+const appliedSet = ref<Set<number>>(new Set());+const errorMessage = ref<string | null>(null);++const csrfToken = document.querySelector<HTMLMetaElement>('meta[name="csrf-token"]')?.content ?? '';++const startReview = async () => {+ status.value = 'loading';+ suggestions.value = [];+ appliedSet.value = new Set();+ errorMessage.value = null;++ try {+ const response = await fetch(reviewPostAi.url(props.postId), {+ method: 'POST',+ headers: {+ 'Content-Type': 'application/json',+ Accept: 'application/json',+ 'X-CSRF-TOKEN': csrfToken,+ 'X-Requested-With': 'XMLHttpRequest',+ },+ body: JSON.stringify({ content: props.content }),+ });+ if (!response.ok) {+ status.value = 'failed';+ errorMessage.value = 'Could not review';+ return;+ }+ const data = await response.json();+ suggestions.value = data.suggestions ?? [];+ status.value = 'completed';+ } catch {+ status.value = 'failed';+ errorMessage.value = 'Network error';+ }+};++const applySuggestion = (index: number, s: Suggestion) => {+ if (appliedSet.value.has(index)) return;+ emit('apply', s.original, s.suggestion);+ const next = new Set(appliedSet.value);+ next.add(index);+ appliedSet.value = next;+};++const noIssues = computed(() => status.value === 'completed' && suggestions.value.length === 0);++watch(open, (isOpen) => {+ if (isOpen) startReview();+ else {+ status.value = 'idle';+ suggestions.value = [];+ appliedSet.value = new Set();+ }+});+</script>++<template>+ <Dialog v-model:open="open">+ <DialogContent class="sm:max-w-2xl">+ <DialogHeader>+ <DialogTitle class="flex items-center gap-2">+ <IconWriting class="size-5 text-primary" />+ {{ $t('posts.ai.review.title') }}+ </DialogTitle>+ <DialogDescription>{{ $t('posts.ai.review.description') }}</DialogDescription>+ </DialogHeader>++ <div v-if="status === 'loading'" class="flex items-center gap-2 py-8 text-sm text-muted-foreground">+ <IconLoader2 class="size-4 animate-spin" />+ {{ $t('posts.ai.review.loading') }}+ </div>++ <p v-else-if="status === 'failed'" class="py-4 text-sm text-destructive">{{ errorMessage }}</p>++ <p v-else-if="noIssues" class="py-4 text-sm text-muted-foreground">{{ $t('posts.ai.review.no_issues') }}</p>++ <ul v-else-if="suggestions.length > 0" class="max-h-[400px] space-y-3 overflow-y-auto">+ <li+ v-for="(s, idx) in suggestions"+ :key="idx"+ class="rounded-md border bg-card p-3"+ :class="appliedSet.has(idx) ? 'opacity-60' : ''"+ >+ <p class="text-xs uppercase tracking-wide text-muted-foreground">{{ $t('posts.ai.review.original') }}</p>+ <p class="mb-2 text-sm line-through opacity-75">{{ s.original }}</p>+ <p class="text-xs uppercase tracking-wide text-muted-foreground">{{ $t('posts.ai.review.suggestion') }}</p>+ <p class="mb-2 text-sm font-medium">{{ s.suggestion }}</p>+ <p class="mb-3 text-xs text-muted-foreground">{{ s.reason }}</p>+ <Button+ size="sm"+ :disabled="appliedSet.has(idx)"+ @click="applySuggestion(idx, s)"+ >+ <IconCheck class="size-4" />+ {{ appliedSet.has(idx) ? $t('posts.ai.review.applied') : $t('posts.ai.review.apply') }}+ </Button>+ </li>+ </ul>++ <DialogFooter>+ <Button variant="outline" @click="open = false">{{ $t('posts.ai.review.close') }}</Button>+ </DialogFooter>+ </DialogContent>+ </Dialog>+</template>diff --git a/resources/js/components/posts/create/AiPostWizard.vue b/resources/js/components/posts/create/AiPostWizard.vuenew file mode 100644index 000000000..ac943196b--- /dev/null+++ b/resources/js/components/posts/create/AiPostWizard.vue@@ -0,0 +1,461 @@+<script setup lang="ts">+import { router } from '@inertiajs/vue3';+import { echo } from '@laravel/echo-vue';+import {+ IconArrowLeft,+ IconCheck,+ IconLoader2,+ IconRefresh,+} from '@tabler/icons-vue';+import { trans } from 'laravel-vue-i18n';+import { computed, onUnmounted, ref, watch } from 'vue';++import { finalize as finalizeRoute, start as startRoute } from '@/actions/App/Http/Controllers/App/PostAiCreateController';+import { Button } from '@/components/ui/button';+import { Label } from '@/components/ui/label';+import { Textarea } from '@/components/ui/textarea';+import { getPlatformLogo } from '@/composables/usePlatformLogo';+import { ContentType, type ContentTypeValue } from '@/enums/content-type';++interface SocialAccount {+ id: string;+ platform: string;+ display_name: string;+ username: string;+ avatar_url: string | null;+}++interface Props {+ socialAccounts: SocialAccount[];+}++const props = defineProps<Props>();++type WizardStep = 'configure' | 'preview';++const emit = defineEmits<{+ /** Parent mirrors this in the PageHeader for context. */+ 'update:stepHeader': [{ title: string; description: string }];+ /** Back button on the configure step asks parent to leave the AI flow. */+ cancel: [];+}>();++const step = ref<WizardStep>('configure');++// Selections+const selectedFormat = ref<ContentTypeValue | null>(null);+const selectedAccountId = ref<string | null>(null);+const includeImages = ref(true);+const imageCount = ref(2);+const promptText = ref('');++// Preview state+const submitting = ref(false);+const finalizing = ref(false);+const previewStatus = ref<'loading' | 'done' | 'error'>('loading');+const previewContent = ref('');+const previewError = ref('');+const previewCreationId = ref<string | null>(null);+let echoChannel: any = null;+let subscribedChannelName: string | null = null;++const AI_FORMATS: Array<{ value: ContentTypeValue; platforms: string[] }> = [+ { value: ContentType.InstagramFeed, platforms: ['instagram', 'instagram-facebook'] },+ { value: ContentType.InstagramCarousel, platforms: ['instagram', 'instagram-facebook'] },+ { value: ContentType.InstagramStory, platforms: ['instagram', 'instagram-facebook'] },+ { value: ContentType.LinkedInPost, platforms: ['linkedin'] },+ { value: ContentType.LinkedInPagePost, platforms: ['linkedin-page'] },+ { value: ContentType.XPost, platforms: ['x'] },+ { value: ContentType.BlueskyPost, platforms: ['bluesky'] },+ { value: ContentType.ThreadsPost, platforms: ['threads'] },+ { value: ContentType.MastodonPost, platforms: ['mastodon'] },+ { value: ContentType.FacebookPost, platforms: ['facebook'] },+ { value: ContentType.FacebookStory, platforms: ['facebook'] },+ { value: ContentType.PinterestPin, platforms: ['pinterest'] },+];++const connectedPlatforms = computed(() => {+ const platforms = new Set<string>();+ for (const account of props.socialAccounts) {+ platforms.add(account.platform);+ }+ return Array.from(platforms);+});++// Show ALL formats — disabled when the workspace has no connected account+// for that platform. Filtering them out hides the catalog from the user.+const availableFormats = computed(() => AI_FORMATS);++const isFormatConnected = (format: typeof AI_FORMATS[number]): boolean =>+ format.platforms.some((p) => connectedPlatforms.value.includes(p));++const accountsForFormat = computed(() => {+ if (!selectedFormat.value) return [];+ const format = AI_FORMATS.find((f) => f.value === selectedFormat.value);+ if (!format) return [];+ return props.socialAccounts.filter((a) => format.platforms.includes(a.platform));+});++const isCarousel = computed(() => selectedFormat.value === ContentType.InstagramCarousel);+const requiresImage = computed(() =>+ selectedFormat.value === ContentType.FacebookPost ||+ selectedFormat.value === ContentType.PinterestPin ||+ selectedFormat.value === ContentType.InstagramStory ||+ selectedFormat.value === ContentType.FacebookStory,+);+const supportsOptionalImages = computed(() =>+ selectedFormat.value === ContentType.InstagramFeed ||+ selectedFormat.value === ContentType.LinkedInPost ||+ selectedFormat.value === ContentType.LinkedInPagePost ||+ selectedFormat.value === ContentType.XPost ||+ selectedFormat.value === ContentType.BlueskyPost ||+ selectedFormat.value === ContentType.ThreadsPost ||+ selectedFormat.value === ContentType.MastodonPost,+);+// Instagram Feed accepts only 1 image (single-image post). Others accept up to 4.+const maxOptionalImages = computed(() =>+ selectedFormat.value === ContentType.InstagramFeed ? 1 : 4,+);+const showsAccountPicker = computed(() => accountsForFormat.value.length > 1);++const submittedImageCount = computed(() => {+ if (isCarousel.value) return imageCount.value;+ if (requiresImage.value) return 1;+ if (supportsOptionalImages.value && includeImages.value) return imageCount.value;+ return 0;+});++const canSubmit = computed(() =>+ selectedFormat.value !== null &&+ selectedAccountId.value !== null &&+ promptText.value.trim().length >= 3,+);++// Auto-pick the only account when format has exactly one match.+watch(accountsForFormat, (accounts) => {+ if (accounts.length === 1) {+ selectedAccountId.value = accounts[0].id;+ } else if (accounts.length === 0) {+ selectedAccountId.value = null;+ } else if (accounts.length > 1 && !accounts.some((a) => a.id === selectedAccountId.value)) {+ selectedAccountId.value = null;+ }+});++const selectFormat = (format: ContentTypeValue) => {+ selectedFormat.value = format;+ // Sensible default per format. Picking a format always pre-selects an+ // image option so the user sees a chip highlighted on arrival.+ if (format === ContentType.InstagramCarousel) {+ imageCount.value = 5;+ } else if (format === ContentType.InstagramFeed) {+ imageCount.value = 1;+ includeImages.value = true;+ } else {+ imageCount.value = 2;+ includeImages.value = true;+ }+};++// Step header text — the parent reflects this in the PageHeader.+const stepHeaderFor = (s: WizardStep) => {+ switch (s) {+ case 'configure':+ return {+ title: trans('posts.create.ai_title'),+ description: trans('posts.create.ai_configure_description'),+ };+ case 'preview':+ return {+ title: trans('posts.create.steps.preview_title'),+ description: '',+ };+ }+};++const goToStep = (s: WizardStep) => {+ step.value = s;+ emit('update:stepHeader', stepHeaderFor(s));+};++emit('update:stepHeader', stepHeaderFor(step.value));++const goBack = () => {+ if (step.value === 'configure') {+ emit('cancel');+ } else if (step.value === 'preview') {+ goToStep('configure');+ }+};++// Echo subscription for AI streaming+const unsubscribeEcho = () => {+ if (echoChannel && subscribedChannelName) {+ echo().leave(`private-${subscribedChannelName}`);+ echoChannel = null;+ subscribedChannelName = null;+ }+};++const subscribeToCreation = (userId: string, creationId: string) => {+ unsubscribeEcho();+ previewCreationId.value = creationId;+ const channelName = `users.${userId}.ai-creation.${creationId}`;+ subscribedChannelName = channelName;++ echoChannel = echo().private(channelName).listen('.PostCreationReady', (e: any) => {+ if (e.error) {+ previewStatus.value = 'error';+ previewError.value = e.error;+ } else {+ previewContent.value = e.content ?? '';+ previewStatus.value = 'done';+ }+ unsubscribeEcho();+ });+};++const startGeneration = async () => {+ if (!canSubmit.value || submitting.value) return;++ submitting.value = true;+ previewStatus.value = 'loading';+ previewContent.value = '';+ previewError.value = '';+ goToStep('preview');++ try {+ const csrfToken = document.querySelector<HTMLMetaElement>('meta[name="csrf-token"]')?.content ?? '';+ const response = await fetch(startRoute.url(), {+ method: 'POST',+ headers: {+ 'Content-Type': 'application/json',+ 'X-CSRF-TOKEN': csrfToken,+ Accept: 'application/json',+ },+ body: JSON.stringify({+ format: selectedFormat.value,+ social_account_id: selectedAccountId.value,+ image_count: submittedImageCount.value,+ prompt: promptText.value.trim(),+ }),+ });++ if (!response.ok) {+ const err = await response.json().catch(() => ({}));+ throw new Error(err?.message ?? `HTTP ${response.status}`);+ }++ const data = await response.json();+ const creationId: string = data.creation_id;+ const channel: string = data.channel;+ const parts = channel.split('.');+ const userId = parts[1] ?? '';++ subscribeToCreation(userId, creationId);+ } catch (err: any) {+ previewStatus.value = 'error';+ previewError.value = err?.message ?? trans('posts.create.steps.preview_error');+ } finally {+ submitting.value = false;+ }+};++const retryGeneration = () => startGeneration();++const createPost = async () => {+ if (!previewCreationId.value || finalizing.value) return;+ finalizing.value = true;++ try {+ const csrfToken = document.querySelector<HTMLMetaElement>('meta[name="csrf-token"]')?.content ?? '';+ const response = await fetch(finalizeRoute.url(previewCreationId.value), {+ method: 'POST',+ headers: {+ 'Content-Type': 'application/json',+ 'X-CSRF-TOKEN': csrfToken,+ Accept: 'application/json',+ },+ body: JSON.stringify({}),+ });++ if (!response.ok) throw new Error(`HTTP ${response.status}`);++ const data = await response.json();+ router.visit(data.redirect_url);+ } catch {+ previewStatus.value = 'error';+ previewError.value = trans('posts.create.steps.preview_error');+ } finally {+ finalizing.value = false;+ }+};++onUnmounted(() => unsubscribeEcho());+</script>++<template>+ <div class="space-y-6">+ <!-- Back button — consistent across both steps -->+ <div class="flex items-center">+ <Button variant="ghost" size="sm" class="-ml-2 text-muted-foreground" @click="goBack">+ <IconArrowLeft class="mr-1 size-4" />+ {{ $t('posts.create.steps.back') }}+ </Button>+ </div>++ <!-- ====== Step 1: Configure (everything in one screen) ====== -->+ <template v-if="step === 'configure'">+ <!-- Format -->+ <div class="space-y-2">+ <Label class="text-sm font-medium">{{ $t('posts.create.steps.format_title') }}</Label>+ <div class="grid gap-2 sm:grid-cols-2">+ <button+ v-for="format in availableFormats"+ :key="format.value"+ type="button"+ class="flex items-center gap-3 rounded-xl border bg-card p-3.5 text-left text-sm transition-all hover:border-primary/50 hover:bg-primary/5 disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:border-border disabled:hover:bg-card"+ :class="{ 'border-primary bg-primary/5 ring-1 ring-primary/30': selectedFormat === format.value }"+ :disabled="!isFormatConnected(format)"+ :title="!isFormatConnected(format) ? $t('posts.create.steps.connect_first') : ''"+ @click="selectFormat(format.value)"+ >+ <img+ :src="getPlatformLogo(format.platforms[0])"+ :alt="format.platforms[0]"+ class="size-6 rounded-full ring-1 ring-background"+ />+ <span class="flex-1 font-medium">{{ $t(`posts.create.steps.format.${format.value}`) }}</span>+ <IconCheck v-if="selectedFormat === format.value" class="size-4 text-primary" />+ </button>+ </div>+ </div>++ <!-- Account (only when there's a choice to make) -->+ <div v-if="selectedFormat && showsAccountPicker" class="space-y-2">+ <Label class="text-sm font-medium">{{ $t('posts.create.steps.account_title') }}</Label>+ <div class="grid grid-cols-2 gap-2 sm:grid-cols-3">+ <button+ v-for="account in accountsForFormat"+ :key="account.id"+ type="button"+ class="relative flex items-center gap-2 rounded-xl border bg-card p-2.5 text-left text-sm transition-all hover:border-primary/50 hover:bg-primary/5"+ :class="{ 'border-primary bg-primary/5 ring-1 ring-primary/30': selectedAccountId === account.id }"+ @click="selectedAccountId = account.id"+ >+ <img+ v-if="account.avatar_url"+ :src="account.avatar_url"+ :alt="account.display_name"+ class="size-8 shrink-0 rounded-full"+ />+ <div v-else class="flex size-8 shrink-0 items-center justify-center rounded-full bg-muted">+ <img :src="getPlatformLogo(account.platform)" :alt="account.platform" class="size-4" />+ </div>+ <div class="min-w-0 flex-1">+ <p class="truncate text-xs font-medium leading-tight">{{ account.display_name }}</p>+ <p v-if="account.username" class="truncate text-xs text-muted-foreground">@{{ account.username }}</p>+ </div>+ <IconCheck v-if="selectedAccountId === account.id" class="absolute right-2 top-2 size-3.5 text-primary" />+ </button>+ </div>+ </div>++ <!-- Media — inline, only when format actually has options -->+ <div v-if="selectedFormat && isCarousel" class="space-y-2">+ <Label class="text-sm font-medium">{{ $t('posts.create.steps.media_carousel') }}</Label>+ <div class="flex flex-wrap gap-2">+ <Button+ v-for="n in [2, 3, 4, 5, 6, 7, 8, 9, 10]"+ :key="n"+ type="button"+ size="icon"+ :variant="imageCount === n ? 'default' : 'outline'"+ @click="imageCount = n"+ >+ {{ n }}+ </Button>+ </div>+ </div>++ <div v-if="selectedFormat && supportsOptionalImages" class="space-y-2">+ <Label class="text-sm font-medium">{{ $t('posts.create.steps.media_optional_label') }}</Label>+ <div class="flex flex-wrap gap-2">+ <Button+ type="button"+ :variant="!includeImages ? 'default' : 'outline'"+ @click="includeImages = false"+ >+ {{ $t('posts.create.steps.media_none') }}+ </Button>+ <Button+ v-for="n in maxOptionalImages"+ :key="n"+ type="button"+ size="icon"+ :variant="includeImages && imageCount === n ? 'default' : 'outline'"+ @click="includeImages = true; imageCount = n"+ >+ {{ n }}+ </Button>+ </div>+ </div>++ <!-- Prompt -->+ <div v-if="selectedFormat" class="space-y-2">+ <Label for="ai-prompt" class="text-sm font-medium">{{ $t('posts.create.steps.prompt_label') }}</Label>+ <Textarea+ id="ai-prompt"+ v-model="promptText"+ :placeholder="$t('posts.create.steps.prompt_placeholder')"+ class="min-h-[140px] resize-none"+ />+ </div>++ <!-- Generate -->+ <div v-if="selectedFormat" class="flex justify-end pt-1">+ <Button :disabled="!canSubmit" @click="startGeneration">+ {{ $t('posts.ai.generate.start') }}+ </Button>+ </div>+ </template>++ <!-- ====== Step 2: Preview ====== -->+ <template v-else-if="step === 'preview'">+ <div v-if="previewStatus === 'loading'" class="flex flex-col items-center gap-4 rounded-xl border bg-muted/20 py-16 text-center">+ <IconLoader2 class="size-10 animate-spin text-primary" />+ <p class="text-sm text-muted-foreground">{{ $t('posts.create.steps.preview_loading') }}</p>+ </div>++ <div v-else-if="previewStatus === 'error'" class="space-y-4">+ <div class="rounded-xl border border-destructive/30 bg-destructive/5 p-4">+ <p class="text-sm text-destructive">{{ previewError || $t('posts.create.steps.preview_error') }}</p>+ </div>++ <div class="flex justify-end">+ <Button variant="outline" @click="retryGeneration">+ <IconRefresh class="mr-1 size-4" />+ {{ $t('posts.create.steps.retry') }}+ </Button>+ </div>+ </div>++ <div v-else-if="previewStatus === 'done'" class="space-y-4">+ <div class="rounded-xl border bg-muted/20 p-5">+ <p class="whitespace-pre-wrap text-sm leading-relaxed">{{ previewContent }}</p>+ </div>++ <div class="flex justify-end gap-2">+ <Button variant="outline" size="sm" @click="retryGeneration">+ <IconRefresh class="mr-1 size-4" />+ {{ $t('posts.create.steps.retry') }}+ </Button>+ <Button :disabled="finalizing" @click="createPost">+ <IconLoader2 v-if="finalizing" class="mr-1 size-4 animate-spin" />+ {{ $t('posts.create.steps.create') }}+ </Button>+ </div>+ </div>+ </template>+ </div>+</template>diff --git a/resources/js/components/posts/editor/FacebookSettings.vue b/resources/js/components/posts/editor/FacebookSettings.vueindex 751611526..d7603bef4 100644--- a/resources/js/components/posts/editor/FacebookSettings.vue+++ b/resources/js/components/posts/editor/FacebookSettings.vue@@ -3,7 +3,7 @@ import { IconAlertTriangle, IconBrandFacebook, IconChevronDown, IconChevronUp }import { computed, ref } from 'vue';import { Avatar } from '@/components/ui/avatar';-import { getMediaValidationWarning } from '@/composables/useMedia';+import { getMediaValidationWarning, type MediaItem } from '@/composables/useMedia';interface SocialAccount {id: string;@@ -13,12 +13,6 @@ interface SocialAccount {avatar_url: string | null;}-interface MediaItem {- id: string;- type?: string;- mime_type?: string;-}-interface Props {socialAccount: SocialAccount | null;contentType: string;diff --git a/resources/js/components/posts/editor/PostEditorComposer.vue b/resources/js/components/posts/editor/PostEditorComposer.vueindex f3b2d23b2..68d7b997f 100644--- a/resources/js/components/posts/editor/PostEditorComposer.vue+++ b/resources/js/components/posts/editor/PostEditorComposer.vue@@ -10,10 +10,12 @@ import {IconSparkles,IconTrash,IconVideo,+ IconWriting,} from '@tabler/icons-vue';import { trans } from 'laravel-vue-i18n';import { computed, nextTick, ref } from 'vue';+import ImagePreviewDialog from '@/components/ImagePreviewDialog.vue';import EmojiPicker from '@/components/posts/EmojiPicker.vue';import HashtagsModal from '@/components/posts/HashtagsModal.vue';import MediaPickerDialog from '@/components/posts/MediaPickerDialog.vue';@@ -61,7 +63,8 @@ const content = defineModel<string>('content', { required: true });const media = defineModel<MediaItem[]>('media', { required: true });const emit = defineEmits<{- (e: 'focus-assistant'): void;+ (e: 'open-ai-generate'): void;+ (e: 'open-ai-review'): void;}>();const isDragging = ref(false);@@ -73,6 +76,19 @@ const hashtagsModal = ref<InstanceType<typeof HashtagsModal> | null>(null);const dragMediaIndex = ref<number | null>(null);const dragOverIndex = ref<number | null>(null);const mediaThumbRefs = ref<HTMLElement[]>([]);+const previewIndex = ref<number | null>(null);++// Image-only URLs (videos are skipped) in the same order as `media`. The+// preview index is computed against THIS list to keep arrow navigation tight.+const previewImages = computed(() =>+ media.value.filter((m) => !isVideo(m)).map((m) => m.url),+);++const openPreview = (item: MediaItem) => {+ if (isVideo(item)) return;+ const idx = previewImages.value.indexOf(item.url);+ previewIndex.value = idx >= 0 ? idx : 0;+};const csrfToken = document.querySelector<HTMLMetaElement>('meta[name="csrf-token"]')?.content ?? '';@@ -273,7 +289,7 @@ const issueLabel = (reason: string): string => trans(`posts.form.warnings.${reasv-for="(item, index) in media":key="item.id":ref="(el) => { if (el) mediaThumbRefs[index] = el as HTMLElement; }"- class="group relative aspect-square overflow-hidden rounded-xl bg-muted transition-all focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2"+ class="group relative aspect-square cursor-zoom-in overflow-hidden rounded-xl bg-muted transition-all focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2":class="[dragMediaIndex === index ? 'opacity-40' : '',dragOverIndex === index && dragMediaIndex !== index ? 'ring-2 ring-primary ring-offset-2' : '',@@ -281,6 +297,7 @@ const issueLabel = (reason: string): string => trans(`posts.form.warnings.${reas]"tabindex="0":draggable="media.length > 1"+ @click="openPreview(item)"@dragstart="onMediaDragStart($event, index)"@dragover="onMediaDragOver($event, index)"@drop="onMediaDrop($event, index)"@@ -349,7 +366,7 @@ const issueLabel = (reason: string): string => trans(`posts.form.warnings.${reas<buttontype="button"class="absolute right-1.5 top-1.5 flex h-6 w-6 items-center justify-center rounded-md bg-black/55 text-white opacity-0 backdrop-blur-sm transition-all hover:bg-destructive group-hover:opacity-100 group-focus:opacity-100"- @click="removeMedia(item.id)"+ @click.stop="removeMedia(item.id)"><IconTrash class="h-3.5 w-3.5" /></button>@@ -417,12 +434,29 @@ const issueLabel = (reason: string): string => trans(`posts.form.warnings.${reasvariant="ghost"size="icon-sm"class="size-8 rounded-lg text-muted-foreground hover:bg-muted hover:text-foreground"- @click="emit('focus-assistant')"+ @click="emit('open-ai-generate')"><IconSparkles class="size-4" /></Button></TooltipTrigger>- <TooltipContent>{{ $t('posts.edit.tabs.writing_assistant') }}</TooltipContent>+ <TooltipContent>{{ $t('posts.ai.generate.button_tooltip') }}</TooltipContent>+ </Tooltip>+ </TooltipProvider>++ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger as-child>+ <Button+ type="button"+ variant="ghost"+ size="icon-sm"+ class="size-8 rounded-lg text-muted-foreground hover:bg-muted hover:text-foreground"+ @click="emit('open-ai-review')"+ >+ <IconWriting class="size-4" />+ </Button>+ </TooltipTrigger>+ <TooltipContent>{{ $t('posts.ai.review.button_tooltip') }}</TooltipContent></Tooltip></TooltipProvider>@@ -483,5 +517,11 @@ const issueLabel = (reason: string): string => trans(`posts.form.warnings.${reas<HashtagsModal ref="hashtagsModal" :hashtags="hashtags" @select="appendHashtags" /><MediaPickerDialog ref="mediaPickerDialog" @select="addMediaFromGallery" />+ <ImagePreviewDialog+ :images="previewImages"+ :index="previewIndex"+ @update:index="previewIndex = $event"+ @close="previewIndex = null"+ /></div></template>diff --git a/resources/js/components/posts/editor/PostEditorSidebar.vue b/resources/js/components/posts/editor/PostEditorSidebar.vueindex 8ce691c35..897d1dc3a 100644--- a/resources/js/components/posts/editor/PostEditorSidebar.vue+++ b/resources/js/components/posts/editor/PostEditorSidebar.vue@@ -4,7 +4,6 @@ import { computed, ref } from 'vue';import CommentsTab from '@/components/posts/editor/CommentsTab.vue';import PreviewTab from '@/components/posts/editor/PreviewTab.vue';import ScheduleTab from '@/components/posts/editor/ScheduleTab.vue';-import WritingAssistantTab from '@/components/posts/editor/WritingAssistantTab.vue';import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs';interface MediaItem {@@ -84,11 +83,6 @@ const emit = defineEmits<{(e: 'toggle-label', labelId: string): void;(e: 'update:platformMeta', platformId: string, meta: Record<string, any>): void;(e: 'update:platformContentType', platformId: string, contentType: string): void;- (e: 'add-media-from-assistant', payload: {- messageId: string;- messageContent: string;- media: { id: string; path: string; url: string; type: string; mime_type: string };- }): void;}>();const commentsTabRef = ref<InstanceType<typeof CommentsTab> | null>(null);@@ -109,7 +103,6 @@ defineExpose({<TabsTrigger value="preview">{{ $t('posts.edit.tabs.preview') }}</TabsTrigger><TabsTrigger value="schedule">{{ $t('posts.edit.tabs.schedule') }}</TabsTrigger><TabsTrigger value="comments">{{ $t('posts.edit.tabs.comments') }}</TabsTrigger>- <TabsTrigger value="assistant">{{ $t('posts.edit.tabs.writing_assistant') }}</TabsTrigger></TabsList><TabsContent value="preview" class="flex-1 overflow-y-auto">@@ -151,12 +144,5 @@ defineExpose({/></TabsContent>- <TabsContent value="assistant" class="flex-1 overflow-hidden">- <WritingAssistantTab- :post-id="post.id"- :workspace-id="workspaceId"- @add-media="(payload) => emit('add-media-from-assistant', payload)"- />- </TabsContent></Tabs></template>diff --git a/resources/js/components/posts/editor/PreviewTab.vue b/resources/js/components/posts/editor/PreviewTab.vueindex f06e14e49..81c8083df 100644--- a/resources/js/components/posts/editor/PreviewTab.vue+++ b/resources/js/components/posts/editor/PreviewTab.vue@@ -6,17 +6,9 @@ import PhoneMockup from '@/components/PhoneMockup.vue';import { PlatformPreview } from '@/components/posts/previews';import { Avatar } from '@/components/ui/avatar';import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip';+import type { MediaItem } from '@/composables/useMedia';import { getPlatformLabel, getPlatformLogo } from '@/composables/usePlatformLogo';-interface MediaItem {- id: string;- path: string;- url: string;- type?: string;- mime_type?: string;- original_filename?: string;-}-interface SocialAccount {id: string;platform: string;@@ -57,9 +49,9 @@ watch();const activePlatform = computed(() => props.platforms.find((pp) => pp.id === activeId.value) ?? null);-const activeContentType = computed(() => {- if (!activePlatform.value) return null;- return props.platformContentTypes[activePlatform.value.id] ?? activePlatform.value.content_type;+const activeContentType = computed((): string | undefined => {+ if (!activePlatform.value) return undefined;+ return props.platformContentTypes[activePlatform.value.id] ?? activePlatform.value.content_type ?? undefined;});</script>diff --git a/resources/js/components/posts/editor/TikTokSettings.vue b/resources/js/components/posts/editor/TikTokSettings.vueindex 861f87ad5..cbf529bc0 100644--- a/resources/js/components/posts/editor/TikTokSettings.vue+++ b/resources/js/components/posts/editor/TikTokSettings.vue@@ -40,7 +40,7 @@ interface CreatorInfo {interface Props {socialAccount: SocialAccount | null;- publishConfig: PublishConfig | null;+ publishConfig: Record<string, any> | null;creatorInfo?: CreatorInfo | null;creatorInfoLoading?: boolean;videoDurationSec?: number | null;@@ -126,7 +126,7 @@ const allPrivacyOptions = computed(() => {// Branded content cannot be private (TikTok compliance).const privacyOptions = computed(() =>brandContentToggle.value- ? allPrivacyOptions.value.filter((o) => o !== 'SELF_ONLY')+ ? allPrivacyOptions.value.filter((o: string) => o !== 'SELF_ONLY'): allPrivacyOptions.value,);@@ -234,7 +234,7 @@ watch(<!-- Max duration warning --><p v-if="exceedsMaxDuration" class="flex items-start gap-2 rounded-md border border-destructive/30 bg-destructive/5 p-2 text-xs text-destructive"><IconAlertTriangle class="mt-0.5 h-3.5 w-3.5 shrink-0" />- {{ $t('posts.form.tiktok.max_duration_exceeded', { duration: videoDurationSec ?? 0, max: maxDurationSec ?? 0 }) }}+ {{ $t('posts.form.tiktok.max_duration_exceeded', { duration: String(videoDurationSec ?? 0), max: String(maxDurationSec ?? 0) }) }}</p><!-- Auto Add Music (photos only) -->diff --git a/resources/js/components/posts/editor/WritingAssistantTab.vue b/resources/js/components/posts/editor/WritingAssistantTab.vuedeleted file mode 100644index d598f216d..000000000--- a/resources/js/components/posts/editor/WritingAssistantTab.vue+++ /dev/null@@ -1,555 +0,0 @@-<script setup lang="ts">-import { useEcho } from '@laravel/echo-vue';-import {- IconBrandBluesky,- IconBrandFacebook,- IconBrandInstagram,- IconBrandLinkedin,- IconBrandMastodon,- IconBrandPinterest,- IconBrandThreads,- IconBrandTiktok,- IconBrandX,- IconBrandYoutube,- IconCheck,- IconLoader2,- IconPaperclip,- IconPlus,- IconRefresh,- IconSend,- IconSparkles,- IconX,-} from '@tabler/icons-vue';-import { type Component, nextTick, onMounted, ref } from 'vue';--import ImagePreviewDialog from '@/components/ImagePreviewDialog.vue';-import { Avatar, AvatarFallback } from '@/components/ui/avatar';-import { Button } from '@/components/ui/button';-import { Skeleton } from '@/components/ui/skeleton';-import { Textarea } from '@/components/ui/textarea';-import date from '@/date';-import { index as fetchMessages, store as storeMessage } from '@/routes/app/posts/assistant';--interface Attachment {- id: string;- path: string;- url: string;- type: string;- mime_type: string;-}--type AiMessageStatus = 'pending' | 'generating' | 'completed' | 'failed';--interface AiMessage {- id: string;- role: 'user' | 'assistant';- content: string;- content_html?: string | null;- attachments?: Attachment[];- status?: AiMessageStatus;- error_message?: string | null;- metadata?: {- intent?: string;- error?: boolean;- limit_reached?: boolean;- quick_actions?: { label: string; value: string }[];- };- created_at: string;- user?: {- id: string;- name: string;- };-}--const props = defineProps<{- postId: string;- workspaceId: string;-}>();--const emit = defineEmits<{- 'add-media': [payload: {- messageId: string;- messageContent: string;- media: { id: string; path: string; url: string; type: string; mime_type: string };- }];-}>();--const platformIconMap: Record<string, Component> = {- instagram: IconBrandInstagram,- 'instagram-facebook': IconBrandInstagram,- linkedin: IconBrandLinkedin,- 'linkedin-page': IconBrandLinkedin,- x: IconBrandX,- facebook: IconBrandFacebook,- tiktok: IconBrandTiktok,- youtube: IconBrandYoutube,- threads: IconBrandThreads,- pinterest: IconBrandPinterest,- bluesky: IconBrandBluesky,- mastodon: IconBrandMastodon,-};--const getQuickActionIcon = (value: string): Component | null => platformIconMap[value] ?? null;--const csrfToken = document.querySelector<HTMLMetaElement>('meta[name="csrf-token"]')?.content ?? '';--const messages = ref<AiMessage[]>([]);-const loading = ref(false);-const sending = ref(false);-const body = ref('');-const addedAttachmentIds = ref<Set<string>>(new Set());-const clickedMessageIds = ref<Set<string>>(new Set());-const previewImage = ref<string | null>(null);--const fileInput = ref<HTMLInputElement | null>(null);-const selectedImage = ref<File | null>(null);-const imagePreview = ref<string | null>(null);--const scrollContainer = ref<HTMLDivElement | null>(null);--const scrollToBottom = () => {- if (scrollContainer.value) {- scrollContainer.value.scrollTop = scrollContainer.value.scrollHeight;- }-};--const triggerFileInput = () => fileInput.value?.click();--const handleFileSelect = (event: Event) => {- const target = event.target as HTMLInputElement;- const file = target.files?.[0];- if (file) {- selectedImage.value = file;- imagePreview.value = URL.createObjectURL(file);- }- target.value = '';-};--const clearImage = () => {- selectedImage.value = null;- if (imagePreview.value) {- URL.revokeObjectURL(imagePreview.value);- imagePreview.value = null;- }-};--const loadMessages = async () => {- loading.value = true;- try {- const response = await fetch(fetchMessages.url(props.postId), {- headers: {- Accept: 'application/json',- 'X-Requested-With': 'XMLHttpRequest',- },- });- if (!response.ok) return;- const data = await response.json();- messages.value = data.messages ?? [];- await nextTick();- scrollToBottom();- } finally {- loading.value = false;- }-};--const submitPrompt = async (text: string, imageFile: File | null) => {- let fetchOptions: RequestInit;-- if (imageFile) {- const formData = new FormData();- formData.append('body', text);- formData.append('image', imageFile);- fetchOptions = {- method: 'POST',- headers: {- Accept: 'application/json',- 'X-CSRF-TOKEN': csrfToken,- 'X-Requested-With': 'XMLHttpRequest',- },- body: formData,- };- } else {- fetchOptions = {- method: 'POST',- headers: {- Accept: 'application/json',- 'Content-Type': 'application/json',- 'X-CSRF-TOKEN': csrfToken,- 'X-Requested-With': 'XMLHttpRequest',- },- body: JSON.stringify({ body: text }),- };- }-- return fetch(storeMessage.url(props.postId), fetchOptions);-};--const sendMessage = async () => {- const text = body.value.trim();- if (!text || sending.value) return;-- body.value = '';- sending.value = true;-- // Optimistic: show user message immediately- const tempUserMessage: AiMessage = {- id: `temp-${Date.now()}`,- role: 'user',- content: text,- attachments: imagePreview.value- ? [{ id: 'temp', path: '', url: imagePreview.value, type: 'image', mime_type: 'image/jpeg' }]- : undefined,- created_at: new Date().toISOString(),- };- messages.value.push(tempUserMessage);-- const imageFile = selectedImage.value;- clearImage();-- await nextTick();- scrollToBottom();-- try {- const response = await submitPrompt(text, imageFile);-- if (!response.ok) {- return;- }-- const data = await response.json();-- // Replace temp user message with real one- const tempIdx = messages.value.findIndex((m) => m.id === tempUserMessage.id);- if (tempIdx !== -1) {- messages.value[tempIdx] = data.user_message;- }-- // Add assistant placeholder (status: pending) — will be updated via Echo broadcast- messages.value.push(data.assistant_message);-- await nextTick();- scrollToBottom();- } finally {- sending.value = false;- }-};--const retryMessage = async (failedMessage: AiMessage) => {- if (sending.value) return;-- const failedIdx = messages.value.findIndex((m) => m.id === failedMessage.id);- const previousUserIdx = failedIdx > 0 ? failedIdx - 1 : -1;- const previousUser = previousUserIdx !== -1 ? messages.value[previousUserIdx] : null;-- if (! previousUser || previousUser.role !== 'user') return;-- sending.value = true;-- // Remove the failed assistant message- messages.value.splice(failedIdx, 1);-- try {- const response = await submitPrompt(previousUser.content, null);-- if (!response.ok) return;-- const data = await response.json();- messages.value.push(data.assistant_message);-- await nextTick();- scrollToBottom();- } finally {- sending.value = false;- }-};--// Echo: listen for assistant message updates (broadcast when job completes/fails)-useEcho(`post.${props.postId}`, '.AssistantMessageUpdated', async (e: { message: AiMessage }) => {- const idx = messages.value.findIndex((m) => m.id === e.message.id);- if (idx === -1) return;-- messages.value[idx] = e.message;- await nextTick();- scrollToBottom();-});--const isPendingAssistant = (message: AiMessage): boolean => {- return message.role === 'assistant' && (message.status === 'pending' || message.status === 'generating');-};--const isFailedAssistant = (message: AiMessage): boolean => {- return message.role === 'assistant' && message.status === 'failed';-};--const handleKeydown = (event: KeyboardEvent) => {- if ((event.metaKey || event.ctrlKey) && event.key === 'Enter') {- event.preventDefault();- sendMessage();- }-};--const addToPost = (message: AiMessage, attachment: Attachment) => {- emit('add-media', {- messageId: message.id,- messageContent: message.content ?? '',- media: {- id: attachment.id,- path: attachment.path,- url: attachment.url,- type: attachment.type,- mime_type: attachment.mime_type,- },- });- addedAttachmentIds.value.add(attachment.id);-};--const isAdded = (attachmentId: string): boolean => {- return addedAttachmentIds.value.has(attachmentId);-};--const isMedia = (attachment: Attachment): boolean => {- return attachment.mime_type?.startsWith('audio/') || attachment.type === 'audio' || attachment.type === 'video' || attachment.type === 'image';-};--const isAudio = (attachment: Attachment): boolean => {- return attachment.mime_type?.startsWith('audio/') || attachment.type === 'audio';-};--const isVideo = (attachment: Attachment): boolean => {- return (attachment.mime_type?.startsWith('video/') || attachment.type === 'video') && !isAudio(attachment);-};--const isImage = (attachment: Attachment): boolean => {- return attachment.mime_type?.startsWith('image/') || attachment.type === 'image';-};--const clickQuickAction = (message: AiMessage, action: { label: string; value: string }) => {- if (clickedMessageIds.value.has(message.id) || sending.value) return;- clickedMessageIds.value.add(message.id);- body.value = action.label;- sendMessage();-};---onMounted(() => {- loadMessages();-});-</script>--<template>- <div class="flex h-full flex-col">- <div ref="scrollContainer" class="flex-1 overflow-y-auto">- <!-- Loading skeleton -->- <div v-if="loading && messages.length === 0" class="space-y-4 px-3 py-4">- <div class="flex justify-end gap-2">- <div class="max-w-[70%] space-y-1.5">- <Skeleton class="ml-auto h-10 w-48 rounded-lg" />- <Skeleton class="ml-auto h-3 w-16" />- </div>- <Skeleton class="h-6 w-6 shrink-0 rounded-full" />- </div>- <div class="flex justify-start gap-2">- <Skeleton class="h-6 w-6 shrink-0 rounded-full" />- <div class="max-w-[70%] space-y-1.5">- <Skeleton class="h-16 w-56 rounded-lg" />- <Skeleton class="h-3 w-16" />- </div>- </div>- <div class="flex justify-end gap-2">- <div class="max-w-[70%] space-y-1.5">- <Skeleton class="ml-auto h-8 w-36 rounded-lg" />- <Skeleton class="ml-auto h-3 w-16" />- </div>- <Skeleton class="h-6 w-6 shrink-0 rounded-full" />- </div>- </div>-- <!-- Empty state -->- <div v-else-if="messages.length === 0" class="flex flex-col items-center justify-center py-16 text-center px-6">- <div class="mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-muted">- <IconSparkles class="h-6 w-6 text-muted-foreground" />- </div>- <p class="text-sm text-muted-foreground">{{ $t('assistant.empty') }}</p>- </div>-- <!-- Messages -->- <div v-else class="space-y-3 px-3 py-3">- <template v-for="message in messages" :key="message.id">- <!-- User message -->- <div v-if="message.role === 'user'" class="flex justify-end gap-2">- <div class="max-w-[80%]">- <div class="rounded-2xl rounded-br-sm bg-primary px-3 py-2 text-primary-foreground">- <p class="whitespace-pre-wrap text-sm">{{ message.content }}</p>- <template v-if="message.attachments && message.attachments.length > 0">- <img- v-for="att in message.attachments"- :key="att.id"- :src="att.url"- class="mt-1.5 w-full rounded-lg"- loading="lazy"- />- </template>- </div>- <p class="mt-0.5 text-right text-[10px] text-muted-foreground">{{ date.diffForHumans(message.created_at) }}</p>- </div>- </div>-- <!-- Assistant message -->- <div v-else class="flex justify-start gap-2">- <div class="flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-primary/10">- <IconSparkles- :class="['h-3 w-3 text-primary', isPendingAssistant(message) && 'animate-pulse']"- />- </div>- <div class="max-w-[80%]">- <!-- Pending / generating: thinking dots -->- <div v-if="isPendingAssistant(message)" class="rounded-2xl rounded-bl-sm bg-muted px-4 py-2.5">- <div class="flex items-center gap-1">- <span class="h-1.5 w-1.5 animate-bounce rounded-full bg-muted-foreground/60 [animation-delay:0ms]" />- <span class="h-1.5 w-1.5 animate-bounce rounded-full bg-muted-foreground/60 [animation-delay:150ms]" />- <span class="h-1.5 w-1.5 animate-bounce rounded-full bg-muted-foreground/60 [animation-delay:300ms]" />- </div>- </div>-- <!-- Failed: error + retry -->- <div v-else-if="isFailedAssistant(message)" class="rounded-2xl rounded-bl-sm bg-destructive/10 px-3 py-2 text-destructive">- <p class="whitespace-pre-wrap text-sm">{{ message.content }}</p>- <Button- variant="outline"- size="sm"- class="mt-2"- :disabled="sending"- @click="retryMessage(message)"- >- <IconRefresh class="mr-1.5 h-3.5 w-3.5" />- {{ $t('assistant.retry') }}- </Button>- </div>-- <!-- Completed -->- <div- v-else- :class="[- 'rounded-2xl rounded-bl-sm px-3 py-2',- message.metadata?.error ? 'bg-destructive/10 text-destructive' : 'bg-muted',- ]"- >- <div- v-if="message.content_html"- class="prose prose-sm dark:prose-invert max-w-none text-sm [&>p:last-child]:mb-0 [&>p:first-child]:mt-0"- v-html="message.content_html"- />- <p v-else class="whitespace-pre-wrap text-sm">{{ message.content }}</p>-- <template v-if="message.attachments && message.attachments.length > 0">- <div v-for="attachment in message.attachments" :key="attachment.id" class="mt-2.5 space-y-2">- <img- v-if="isImage(attachment)"- :src="attachment.url"- :alt="'AI generated image'"- class="w-full cursor-pointer rounded-lg transition-opacity hover:opacity-90"- loading="lazy"- @click="previewImage = attachment.url"- />-- <audio- v-else-if="isAudio(attachment)"- :src="attachment.url"- controls- class="w-full"- />-- <video- v-else-if="isVideo(attachment)"- :src="attachment.url"- controls- class="w-full rounded-lg"- />-- <Button- variant="outline"- size="sm"- class="w-full"- :disabled="isAdded(attachment.id)"- @click="addToPost(message, attachment)"- >- <IconCheck v-if="isAdded(attachment.id)" class="mr-1.5 h-3.5 w-3.5" />- <IconPlus v-else class="mr-1.5 h-3.5 w-3.5" />- {{ isAdded(attachment.id) ? $t('assistant.added') : $t('assistant.add_to_post') }}- </Button>- </div>- </template>-- <template v-if="message.metadata?.quick_actions && message.metadata.quick_actions.length > 0">- <div class="mt-2 flex flex-wrap gap-1.5">- <Button- v-for="action in message.metadata.quick_actions"- :key="action.value"- type="button"- variant="outline"- size="sm"- class="h-auto rounded-full px-3 py-1 text-xs"- :disabled="clickedMessageIds.has(message.id) || sending"- @click="clickQuickAction(message, action)"- >- <component- :is="getQuickActionIcon(action.value)"- v-if="getQuickActionIcon(action.value)"- class="mr-1 h-3.5 w-3.5"- />- {{ action.label }}- </Button>- </div>- </template>- </div>- <p class="mt-0.5 text-[10px] text-muted-foreground">{{ date.diffForHumans(message.created_at) }}</p>- </div>- </div>- </template>- </div>- </div>-- <!-- Input -->- <div class="shrink-0 border-t p-3">- <!-- Image preview -->- <div v-if="imagePreview" class="mb-2 flex items-center gap-2">- <img :src="imagePreview" class="h-16 w-16 rounded-lg object-cover" />- <button type="button" class="text-xs text-muted-foreground hover:text-destructive" @click="clearImage">- <IconX class="h-4 w-4" />- </button>- </div>-- <div class="flex items-end gap-2">- <button type="button" class="mb-1 text-muted-foreground hover:text-foreground" @click="triggerFileInput">- <IconPaperclip class="h-5 w-5" />- </button>- <input- ref="fileInput"- type="file"- class="hidden"- accept="image/jpeg,image/png,image/gif,image/webp"- @change="handleFileSelect"- />- <Textarea- v-model="body"- :placeholder="$t('assistant.placeholder')"- class="min-h-[40px] max-h-[120px] flex-1 resize-none text-sm"- rows="1"- :disabled="sending"- @keydown="handleKeydown"- />- <Button- size="icon"- class="h-10 w-10 shrink-0"- :disabled="!body.trim() || sending"- @click="sendMessage"- >- <IconLoader2 v-if="sending" class="h-4 w-4 animate-spin" />- <IconSend v-else class="h-4 w-4" />- </Button>- </div>- </div>- </div>-- <ImagePreviewDialog :src="previewImage" @close="previewImage = null" />-</template>diff --git a/resources/js/components/posts/previews/InstagramPreview.vue b/resources/js/components/posts/previews/InstagramPreview.vueindex f1199a587..f3e045bbe 100644--- a/resources/js/components/posts/previews/InstagramPreview.vue+++ b/resources/js/components/posts/previews/InstagramPreview.vue@@ -51,11 +51,19 @@ const isReel = computed(() => props.contentType === ContentType.InstagramReel);const isStory = computed(() => props.contentType === ContentType.InstagramStory);const isFeed = computed(() => !isReel.value && !isStory.value);-// Aspect ratio for the feed media frame. Instagram defaults to 1:1.+// Padding-bottom percentage = height/width. Used instead of CSS `aspect-ratio`+// because inside this flex column some rendering paths ignored `aspect-ratio`+// and the frame stuck to a stale height. `null` = use original media height.+const ASPECT_PADDING: Record<string, number | null> = {+ '1:1': 100,+ '4:5': 125,+ '16:9': 56.25,+ 'original': null,+};+const feedAspectStyle = computed(() => {- const ratio = props.meta?.aspect_ratio ?? '1:1';- const value = ratio === '4:5' ? '4 / 5' : ratio === '16:9' ? '16 / 9' : ratio === 'original' ? 'auto' : '1 / 1';- return { aspectRatio: value };+ const fraction = ASPECT_PADDING[props.meta?.aspect_ratio ?? '1:1'] ?? 100;+ return fraction === null ? { aspectRatio: 'auto' } : { paddingBottom: `${fraction}%` };});// Format numbers like Instagram@@ -118,12 +126,14 @@ const username = computed(() => props.socialAccount.username || props.socialAcco<!-- Post Media - Aspect ratio matches user's chosen crop --><div class="relative w-full shrink-0 bg-black" :style="feedAspectStyle">- <PostMediaPreview- :media="media"- :placeholder-icon="IconPhoto"- dot-active-class="bg-[#0095f6]"- placeholder-class="w-full h-full flex items-center justify-center bg-[#fafafa] dark:bg-[#121212]"- />+ <div class="absolute inset-0">+ <PostMediaPreview+ :media="media"+ :placeholder-icon="IconPhoto"+ dot-active-class="bg-[#0095f6]"+ placeholder-class="w-full h-full flex items-center justify-center bg-[#fafafa] dark:bg-[#121212]"+ />+ </div></div><!-- Action Buttons -->diff --git a/resources/js/components/posts/previews/PlatformPreview.vue b/resources/js/components/posts/previews/PlatformPreview.vueindex 141ed6de0..b95350a2e 100644--- a/resources/js/components/posts/previews/PlatformPreview.vue+++ b/resources/js/components/posts/previews/PlatformPreview.vue@@ -23,13 +23,14 @@ interface SocialAccount {interface MediaItem {id: string;url: string;- type: string;- original_filename: string;+ type?: string;+ mime_type?: string;+ original_filename?: string;}interface Props {platform: string;- socialAccount: SocialAccount;+ socialAccount: SocialAccount | null | undefined;content: string;media: MediaItem[];contentType?: string;@@ -38,6 +39,14 @@ interface Props {const props = defineProps<Props>();+const resolvedSocialAccount = computed((): SocialAccount => props.socialAccount ?? {+ id: '',+ platform: props.platform,+ display_name: '',+ username: '',+ avatar_url: null,+});+const previewComponent = computed(() => {switch (props.platform) {case 'linkedin':@@ -71,7 +80,7 @@ const previewComponent = computed(() => {<template><component:is="previewComponent"- :social-account="socialAccount"+ :social-account="resolvedSocialAccount":content="content":media="media":content-type="contentType"diff --git a/resources/js/components/settings/BrandTab.vue b/resources/js/components/settings/BrandTab.vueindex 4008f951b..11c1ff72e 100644--- a/resources/js/components/settings/BrandTab.vue+++ b/resources/js/components/settings/BrandTab.vue@@ -4,6 +4,7 @@ import { trans } from 'laravel-vue-i18n';import { computed, ref } from 'vue';import WorkspaceController from '@/actions/App/Http/Controllers/App/WorkspaceController';+import FontPicker from '@/components/FontPicker.vue';import HeadingSmall from '@/components/HeadingSmall.vue';import HexColorInput from '@/components/HexColorInput.vue';import InputError from '@/components/InputError.vue';@@ -29,11 +30,13 @@ interface Workspace {brand_color: string | null;background_color: string | null;text_color: string | null;+ brand_font: string;content_language: string;}const props = defineProps<{workspace: Workspace;+ availableFonts: string[];}>();const brandTone = ref(props.workspace.brand_tone ?? 'professional');@@ -41,6 +44,7 @@ const contentLanguage = ref(props.workspace.content_language ?? 'en');const brandColor = ref<string | null>(props.workspace.brand_color);const backgroundColor = ref<string | null>(props.workspace.background_color);const textColor = ref<string | null>(props.workspace.text_color);+const brandFont = ref<string>(props.workspace.brand_font ?? 'Inter');const toneLabel = computed(() =>brandTone.value ? trans(`settings.brand.tone_${brandTone.value}`) : '',@@ -158,6 +162,12 @@ const languageLabel = computed(() => {</div></div>+ <div class="grid gap-2">+ <Label for="brand_font">{{ $t('settings.brand.font') }}</Label>+ <FontPicker v-model="brandFont" name="brand_font" :fonts="availableFonts" />+ <InputError :message="errors.brand_font" />+ </div>+<div class="grid gap-2"><Label for="brand_voice_notes">{{ $t('settings.brand.voice_notes') }}</Label><Textareadiff --git a/resources/js/composables/useAiStream.ts b/resources/js/composables/useAiStream.tsnew file mode 100644index 000000000..fd445ecd6--- /dev/null+++ b/resources/js/composables/useAiStream.ts@@ -0,0 +1,60 @@+import { echo } from '@laravel/echo-vue';+import { onUnmounted, ref } from 'vue';++interface TextDeltaEvent {+ delta: string;+}++interface ErrorEvent {+ message?: string;+}++export type AiStreamStatus = 'idle' | 'streaming' | 'completed' | 'failed';++/**+ * Subscribe to a private channel for an in-flight AI generation.+ * Reactive state accumulates `.TextDelta` event deltas and transitions to+ * `completed` on `.StreamEnd` or `failed` on `.Error`.+ */+export const useAiStream = () => {+ const text = ref('');+ const status = ref<AiStreamStatus>('idle');+ const errorMessage = ref<string | null>(null);+ let subscribedName: string | null = null;++ const reset = () => {+ text.value = '';+ status.value = 'idle';+ errorMessage.value = null;+ };++ const unsubscribe = () => {+ if (subscribedName) {+ echo().leave(`private-${subscribedName}`);+ }+ subscribedName = null;+ };++ const subscribe = (channelName: string) => {+ unsubscribe();+ reset();+ status.value = 'streaming';+ subscribedName = channelName;++ echo().private(channelName)+ .listen('.TextDelta', (e: TextDeltaEvent) => {+ text.value += e.delta ?? '';+ })+ .listen('.StreamEnd', () => {+ status.value = 'completed';+ })+ .listen('.Error', (e: ErrorEvent) => {+ status.value = 'failed';+ errorMessage.value = e?.message ?? 'AI generation failed';+ });+ };++ onUnmounted(() => unsubscribe());++ return { text, status, errorMessage, subscribe, unsubscribe, reset };+};diff --git a/resources/js/enums/content-type.ts b/resources/js/enums/content-type.tsindex 04745b851..b7c9bf691 100644--- a/resources/js/enums/content-type.ts+++ b/resources/js/enums/content-type.ts@@ -1,7 +1,8 @@export const ContentType = {InstagramFeed: 'instagram_feed',- InstagramReel: 'instagram_reel',+ InstagramCarousel: 'instagram_carousel',InstagramStory: 'instagram_story',+ InstagramReel: 'instagram_reel',LinkedInPost: 'linkedin_post',LinkedInCarousel: 'linkedin_carousel',LinkedInPagePost: 'linkedin_page_post',diff --git a/resources/js/pages/posts/Calendar.vue b/resources/js/pages/posts/Calendar.vueindex 71dceaaf7..288b20f4c 100644--- a/resources/js/pages/posts/Calendar.vue+++ b/resources/js/pages/posts/Calendar.vue@@ -12,7 +12,7 @@ import date from '@/date';import dayjs from '@/dayjs';import AppLayout from '@/layouts/AppLayout.vue';import { calendar } from '@/routes/app';-import { edit as editPost, show as showPost, store as storePost } from '@/routes/app/posts';+import { create as createPost, edit as editPost, show as showPost } from '@/routes/app/posts';interface PostPlatform {id: string;@@ -52,6 +52,8 @@ const props = defineProps<Props>();// Mobile detectionconst isMobile = ref(false);+const createPostUrl = (isoDate: string | null = null) =>+ isoDate ? createPost.url({ query: { date: isoDate } }) : createPost.url();const checkMobile = () => {isMobile.value = window.innerWidth < 1024;};@@ -270,10 +272,8 @@ const formatTime = (scheduledAt: string): string => {</TabsList></Tabs>- <Link :href="storePost.url()" method="post">- <Button>- {{ $t('calendar.new_post') }}- </Button>+ <Link :href="createPost.url()">+ <Button>{{ $t('calendar.new_post') }}</Button></Link></div></template>@@ -360,8 +360,8 @@ const formatTime = (scheduledAt: string): string => {<!-- Day Content --><div class="flex-1 overflow-y-auto p-2 space-y-2"><!-- Add Post Button -->- <Link :href="storePost.url({ query: { date: day.format('YYYY-MM-DD') } })" method="post"- class="flex items-center justify-center p-2 rounded border border-dashed border-muted-foreground/30 text-muted-foreground hover:border-primary hover:text-primary hover:bg-primary/5 transition-colors">+ <Link :href="createPostUrl(day.format('YYYY-MM-DD'))"+ class="w-full flex items-center justify-center p-2 rounded border border-dashed border-muted-foreground/30 text-muted-foreground hover:border-primary hover:text-primary hover:bg-primary/5 transition-colors"><IconPlus class="h-4 w-4" /></Link>@@ -435,7 +435,7 @@ const formatTime = (scheduledAt: string): string => {}">{{ day.format('D') }}</span>- <Link :href="storePost.url({ query: { date: day.format('YYYY-MM-DD') } })" method="post"+ <Link :href="createPostUrl(day.format('YYYY-MM-DD'))"class="opacity-0 group-hover:opacity-100 focus:opacity-100 p-1 rounded text-muted-foreground hover:text-primary hover:bg-primary/10 transition-all"><IconPlus class="h-4 w-4" /></Link>@@ -484,4 +484,5 @@ const formatTime = (scheduledAt: string): string => {</div></div></AppLayout>+</template>\ No newline at end of filediff --git a/resources/js/pages/posts/Create.vue b/resources/js/pages/posts/Create.vuenew file mode 100644index 000000000..87a616d0c--- /dev/null+++ b/resources/js/pages/posts/Create.vue@@ -0,0 +1,146 @@+<script setup lang="ts">+import { Head, Link, router } from '@inertiajs/vue3';+import { IconBookmarks, IconPencil, IconSparkles } from '@tabler/icons-vue';+import { trans } from 'laravel-vue-i18n';+import { computed, ref } from 'vue';++import { index as templatesIndex } from '@/actions/App/Http/Controllers/App/PostTemplateController';+import PageHeader from '@/components/PageHeader.vue';+import AiPostWizard from '@/components/posts/create/AiPostWizard.vue';+import AppLayout from '@/layouts/AppLayout.vue';+import { calendar } from '@/routes/app';+import { store as storePost } from '@/routes/app/posts';++interface SocialAccount {+ id: string;+ platform: string;+ display_name: string;+ username: string;+ avatar_url: string | null;+}++interface Props {+ /** ISO date (YYYY-MM-DD). When set, the manual "start from scratch" path+ * pre-schedules the new post on this date. */+ date?: string | null;+ socialAccounts: SocialAccount[];+}++const props = withDefaults(defineProps<Props>(), {+ date: null,+});++type View = 'choice' | 'ai';++const view = ref<View>('choice');+const submitting = ref(false);++const aiHeader = ref<{ title: string; description: string } | null>(null);++const hasConnectedAccounts = computed(() => props.socialAccounts.length > 0);++const startFromScratch = () => {+ if (submitting.value) return;+ submitting.value = true;+ const url = props.date ? storePost.url({ query: { date: props.date } }) : storePost.url();+ router.post(url, {}, {+ onFinish: () => {+ submitting.value = false;+ },+ });+};++const breadcrumbs = computed(() => [+ { title: trans('sidebar.posts.calendar'), href: calendar.url() },+ { title: trans('posts.create.title'), href: '' },+]);++const pageTitle = computed(() => trans('posts.create.title'));++const stepHeader = computed(() => {+ if (view.value === 'ai' && aiHeader.value) return aiHeader.value;+ return {+ title: trans('posts.create.title'),+ description: trans('posts.create.description'),+ };+});+</script>++<template>+ <Head :title="pageTitle" />++ <AppLayout :breadcrumbs="breadcrumbs">+ <div class="flex h-full flex-1 flex-col p-4">+ <div class="mx-auto flex w-full max-w-2xl flex-col gap-6">+ <PageHeader :title="stepHeader.title" :description="stepHeader.description" />++ <!-- Choice screen -->+ <template v-if="view === 'choice'">+ <div class="grid gap-3 sm:grid-cols-3">+ <button+ type="button"+ class="group flex flex-col items-start gap-3 rounded-xl border bg-card p-5 text-left transition-all hover:-translate-y-0.5 hover:border-primary/50 hover:shadow-md disabled:opacity-50 disabled:hover:translate-y-0 disabled:hover:border-border disabled:hover:shadow-none"+ :disabled="submitting"+ @click="startFromScratch"+ >+ <div class="flex size-11 items-center justify-center rounded-lg bg-muted text-muted-foreground transition-colors group-hover:bg-foreground group-hover:text-background">+ <IconPencil class="size-5" />+ </div>+ <div class="space-y-1">+ <p class="text-sm font-semibold">{{ $t('posts.create.scratch_title') }}</p>+ <p class="text-xs leading-relaxed text-muted-foreground">+ {{ $t('posts.create.scratch_description') }}+ </p>+ </div>+ </button>++ <button+ type="button"+ class="group flex flex-col items-start gap-3 rounded-xl border bg-card p-5 text-left transition-all hover:-translate-y-0.5 hover:border-primary/50 hover:shadow-md disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:translate-y-0 disabled:hover:border-border disabled:hover:shadow-none"+ :disabled="!hasConnectedAccounts"+ @click="view = 'ai'"+ >+ <div class="flex size-11 items-center justify-center rounded-lg bg-muted text-muted-foreground transition-colors group-hover:bg-foreground group-hover:text-background">+ <IconSparkles class="size-5" />+ </div>+ <div class="space-y-1">+ <p class="text-sm font-semibold">{{ $t('posts.create.ai_title') }}</p>+ <p class="text-xs leading-relaxed text-muted-foreground">+ <template v-if="!hasConnectedAccounts">+ {{ $t('posts.create.steps.connect_first') }}+ </template>+ <template v-else>+ {{ $t('posts.create.ai_description') }}+ </template>+ </p>+ </div>+ </button>++ <Link+ :href="templatesIndex.url()"+ class="group flex flex-col items-start gap-3 rounded-xl border bg-card p-5 text-left transition-all hover:-translate-y-0.5 hover:border-primary/50 hover:shadow-md"+ >+ <div class="flex size-11 items-center justify-center rounded-lg bg-muted text-muted-foreground transition-colors group-hover:bg-foreground group-hover:text-background">+ <IconBookmarks class="size-5" />+ </div>+ <div class="space-y-1">+ <p class="text-sm font-semibold">{{ $t('posts.create.template_title') }}</p>+ <p class="text-xs leading-relaxed text-muted-foreground">+ {{ $t('posts.create.template_description') }}+ </p>+ </div>+ </Link>+ </div>+ </template>++ <!-- AI flow -->+ <AiPostWizard+ v-else-if="view === 'ai'"+ :social-accounts="socialAccounts"+ @update:step-header="aiHeader = $event"+ @cancel="view = 'choice'; aiHeader = null"+ />+ </div>+ </div>+ </AppLayout>+</template>diff --git a/resources/js/pages/posts/Edit.vue b/resources/js/pages/posts/Edit.vueindex 9c67bb6dc..350fbd790 100644--- a/resources/js/pages/posts/Edit.vue+++ b/resources/js/pages/posts/Edit.vue@@ -10,6 +10,8 @@ import {import { trans } from 'laravel-vue-i18n';import { computed, onUnmounted, ref, watch } from 'vue';+import AiGenerateDialog from '@/components/posts/ai/AiGenerateDialog.vue';+import AiReviewDialog from '@/components/posts/ai/AiReviewDialog.vue';import ConfirmDeleteModal from '@/components/ConfirmDeleteModal.vue';import PostEditorComposer from '@/components/posts/editor/PostEditorComposer.vue';import PostEditorSidebar from '@/components/posts/editor/PostEditorSidebar.vue';@@ -186,8 +188,8 @@ const getMediaIncompatibilityReason = (contentType: string, mediaItems: MediaIteif (!rules.acceptVideos && videos.length > 0) return trans('posts.edit.compliance.no_videos');if (!rules.acceptImages && images.length > 0) return trans('posts.edit.compliance.no_images');if (!rules.acceptsGif && gifs.length > 0) return trans('posts.edit.compliance.no_gifs');- if (total > rules.maxFiles) return trans('posts.edit.compliance.too_many_files', { max: rules.maxFiles });- if (rules.minFiles && total < rules.minFiles) return trans('posts.edit.compliance.too_few_files', { min: rules.minFiles });+ if (total > rules.maxFiles) return trans('posts.edit.compliance.too_many_files', { max: String(rules.maxFiles) });+ if (rules.minFiles && total < rules.minFiles) return trans('posts.edit.compliance.too_few_files', { min: String(rules.minFiles) });for (const m of mediaItems) {const isVideo = m.type === 'video' || m.mime_type?.startsWith('video/');@@ -199,7 +201,7 @@ const getMediaIncompatibilityReason = (contentType: string, mediaItems: MediaIteif (isVideo) {if (rules.maxVideoBytes && size > 0 && size > rules.maxVideoBytes) return trans('posts.edit.compliance.video_too_large');if (rules.maxVideoDurationSec && duration > 0 && duration > rules.maxVideoDurationSec) {- return trans('posts.edit.compliance.video_too_long', { seconds: rules.maxVideoDurationSec });+ return trans('posts.edit.compliance.video_too_long', { seconds: String(rules.maxVideoDurationSec) });}} else if (rules.maxImageBytes && size > 0 && size > rules.maxImageBytes) {return trans('posts.edit.compliance.image_too_large');@@ -289,6 +291,16 @@ const selectedLabelIds = ref<string[]>(post.value.labels?.map((l) => l.id) || []const isSubmitting = ref(false);const isSaving = ref(false);const showSaved = ref(false);+const isAiGenerateOpen = ref(false);+const isAiReviewOpen = ref(false);++const onAiGenerateApply = (newContent: string) => {+ content.value = newContent;+};++const onAiReviewApply = (original: string, suggestion: string) => {+ content.value = content.value.replace(original, suggestion);+};const isPostActionDisabled = computed(() => isSubmitting.value || selectedPlatformIds.value.length === 0 || !canSchedule.value,@@ -296,7 +308,7 @@ const isPostActionDisabled = computed(const queryParams = typeof window !== 'undefined' ? new URLSearchParams(window.location.search) : null;const initialTabFromQuery = (() => {const tab = queryParams?.get('tab');- return ['preview', 'schedule', 'comments', 'assistant'].includes(tab ?? '') ? (tab as string) : 'schedule';+ return ['preview', 'schedule', 'comments'].includes(tab ?? '') ? (tab as string) : 'schedule';})();const initialHighlightCommentId = queryParams?.get('comment') ?? null;const activeTab = ref(initialTabFromQuery);@@ -313,24 +325,6 @@ const togglePlatform = (platformId: string) => {}};-const addedTextFromMessageIds = ref<Set<string>>(new Set());--const addMediaFromAssistant = (payload: {- messageId: string;- messageContent: string;- media: { id: string; path: string; url: string; type: string; mime_type: string };-}) => {- media.value = [...media.value, payload.media];-- const text = payload.messageContent.trim();- if (text === '' || addedTextFromMessageIds.value.has(payload.messageId)) {- return;- }-- content.value = content.value.trim() === '' ? text : `${content.value}\n\n${text}`;- addedTextFromMessageIds.value.add(payload.messageId);-};-// Save logicconst getSubmitData = () => {const platforms = post.value.post_platforms@@ -416,10 +410,6 @@ const toggleLabel = (labelId: string) => {}};-const focusAssistant = () => {- activeTab.value = 'assistant';-};-const deletePost = () => {if (isReadOnly.value) return;deleteModal.value?.open({ url: destroyPost.url(post.value.id) });@@ -535,7 +525,8 @@ useEcho(`post.${post.value.id}`, '.PostCommentCreated', (e: any) => {:hashtags="hashtags":platform-limits="platformLimits":media-issues="mediaIssues"- @focus-assistant="focusAssistant"+ @open-ai-generate="isAiGenerateOpen = true"+ @open-ai-review="isAiReviewOpen = true"/></div>@@ -562,7 +553,6 @@ useEcho(`post.${post.value.id}`, '.PostCommentCreated', (e: any) => {@toggle-label="toggleLabel"@update:platform-meta="updatePlatformMeta"@update:platform-content-type="updatePlatformContentType"- @add-media-from-assistant="addMediaFromAssistant"/></div></div>@@ -577,4 +567,18 @@ useEcho(`post.${post.value.id}`, '.PostCommentCreated', (e: any) => {:action="$t('posts.delete.confirm')":cancel="$t('posts.delete.cancel')"/>++ <AiGenerateDialog+ v-model:open="isAiGenerateOpen"+ :post-id="post.id"+ :current-content="content"+ @apply="onAiGenerateApply"+ />++ <AiReviewDialog+ v-model:open="isAiReviewOpen"+ :post-id="post.id"+ :content="content"+ @apply="onAiReviewApply"+ /></template>diff --git a/resources/js/pages/posts/Index.vue b/resources/js/pages/posts/Index.vueindex f72731a7f..09135c76d 100644--- a/resources/js/pages/posts/Index.vue+++ b/resources/js/pages/posts/Index.vue@@ -1,10 +1,10 @@<script setup lang="ts">-import { Head, InfiniteScroll, Link, router } from '@inertiajs/vue3';+import { Head, InfiniteScroll, router } from '@inertiajs/vue3';import { IconFileText, IconSearch, IconTrash } from '@tabler/icons-vue';import { trans } from 'laravel-vue-i18n';import { computed, ref, watch } from 'vue';-import { destroy as destroyPost, edit as editPost, index as postsIndex, show as showPost, store as storePost } from '@/actions/App/Http/Controllers/App/PostController';+import { create as createPost, destroy as destroyPost, edit as editPost, index as postsIndex, show as showPost } from '@/actions/App/Http/Controllers/App/PostController';import ConfirmDeleteModal from '@/components/ConfirmDeleteModal.vue';import EmptyState from '@/components/EmptyState.vue';import PageHeader from '@/components/PageHeader.vue';@@ -161,7 +161,7 @@ const hasActiveSearch = computed(() => Boolean(searchQuery.value?.trim()));/></div>- <Link :href="storePost.url()" method="post">+ <Link :href="createPost.url()"><Button>{{ $t('posts.new_post') }}</Button></Link></div>@@ -289,4 +289,5 @@ const hasActiveSearch = computed(() => Boolean(searchQuery.value?.trim()));:action="$t('posts.edit.delete_modal.action')":cancel="$t('posts.edit.delete_modal.cancel')"/>+</template>diff --git a/resources/js/pages/posts/templates/Index.vue b/resources/js/pages/posts/templates/Index.vuenew file mode 100644index 000000000..718a64d5d--- /dev/null+++ b/resources/js/pages/posts/templates/Index.vue@@ -0,0 +1,195 @@+<script setup lang="ts">+import { Head, InfiniteScroll, router } from '@inertiajs/vue3';+import { IconBookmarks, IconLoader2, IconSearch } from '@tabler/icons-vue';+import { trans } from 'laravel-vue-i18n';+import { computed, ref, watch } from 'vue';++import { apply as applyRoute, index as templatesIndex } from '@/actions/App/Http/Controllers/App/PostTemplateController';+import EmptyState from '@/components/EmptyState.vue';+import PageHeader from '@/components/PageHeader.vue';+import { Badge } from '@/components/ui/badge';+import { Button } from '@/components/ui/button';+import { Input } from '@/components/ui/input';+import { getPlatformLogo } from '@/composables/usePlatformLogo';+import debounce from '@/debounce';+import AppLayout from '@/layouts/AppLayout.vue';+import { calendar } from '@/routes/app';++interface Slide {+ title: string;+ body: string;+ image_keywords: string[];+}++interface PostTemplate {+ id: string;+ name: string;+ description: string | null;+ category: string;+ platform: string;+ content: string;+ slides: Slide[] | null;+ image_count: number;+ image_keywords: string[] | null;+}++interface ScrollTemplates {+ data: PostTemplate[];+}++interface Props {+ templates: ScrollTemplates;+ filters: {+ search: string;+ platform: string;+ };+}++const props = defineProps<Props>();++const searchQuery = ref(props.filters.search);+const applyingId = ref<string | null>(null);++const PLATFORM_LABELS: Record<string, string> = {+ instagram_carousel: 'Instagram Carousel',+ instagram_feed: 'Instagram Feed',+ linkedin_post: 'LinkedIn',+ linkedin_page_post: 'LinkedIn Page',+ x_post: 'X',+};++const PLATFORM_LOGO_KEY: Record<string, string> = {+ instagram_carousel: 'instagram',+ instagram_feed: 'instagram',+ linkedin_post: 'linkedin',+ linkedin_page_post: 'linkedin-page',+ x_post: 'x',+};++const platformLabel = (platform: string): string => PLATFORM_LABELS[platform] ?? platform;+const platformLogo = (platform: string): string => getPlatformLogo(PLATFORM_LOGO_KEY[platform] ?? platform);++const search = debounce(() => {+ router.get(+ templatesIndex.url(),+ { search: searchQuery.value || undefined },+ { preserveState: true, preserveScroll: true, replace: true },+ );+}, 300);++watch(searchQuery, () => search());++const hasActiveSearch = computed(() => Boolean(searchQuery.value?.trim()));++const applyTemplate = async (template: PostTemplate) => {+ if (applyingId.value) return;+ applyingId.value = template.id;++ try {+ const csrfToken = document.querySelector<HTMLMetaElement>('meta[name="csrf-token"]')?.content ?? '';+ const response = await fetch(applyRoute.url(template.id), {+ method: 'POST',+ headers: {+ 'Content-Type': 'application/json',+ Accept: 'application/json',+ 'X-CSRF-TOKEN': csrfToken,+ },+ body: JSON.stringify({}),+ });++ if (!response.ok) {+ const err = await response.json().catch(() => ({}));+ throw new Error(err?.message ?? `HTTP ${response.status}`);+ }++ const data = await response.json();+ router.visit(data.redirect_url);+ } finally {+ applyingId.value = null;+ }+};++const breadcrumbs = computed(() => [+ { title: trans('sidebar.posts.calendar'), href: calendar.url() },+ { title: trans('posts.templates.browser_title'), href: '' },+]);++const pageTitle = computed(() => trans('posts.templates.browser_title'));+</script>++<template>+ <Head :title="pageTitle" />++ <AppLayout :breadcrumbs="breadcrumbs">+ <div class="flex h-full flex-1 flex-col gap-4 p-4">+ <PageHeader :title="pageTitle" :description="$t('posts.templates.browser_description')" />++ <!-- Search bar -->+ <div class="relative max-w-md">+ <IconSearch class="pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2 text-muted-foreground" />+ <Input+ v-model="searchQuery"+ :placeholder="$t('posts.templates.search_placeholder')"+ class="pl-9"+ />+ </div>++ <EmptyState+ v-if="templates.data.length === 0"+ :icon="IconBookmarks"+ :title="hasActiveSearch ? $t('posts.templates.no_search_results') : $t('posts.templates.no_templates')"+ :description="hasActiveSearch ? $t('posts.templates.try_different_search') : ''"+ />++ <InfiniteScroll v-else data="templates" items-element="#templates-grid" preserve-url>+ <!-- CSS columns masonry: cards keep their natural height + don't split mid-card -->+ <div id="templates-grid" class="columns-1 gap-4 sm:columns-2 lg:columns-3 xl:columns-4">+ <article+ v-for="template in templates.data"+ :key="template.id"+ class="mb-4 break-inside-avoid rounded-xl border bg-card p-5 transition-colors hover:border-primary/40"+ >+ <header class="flex items-center gap-2">+ <img+ :src="platformLogo(template.platform)"+ :alt="template.platform"+ class="size-6 shrink-0 rounded-full ring-1 ring-border"+ />+ <span class="truncate text-xs font-medium text-muted-foreground">{{ platformLabel(template.platform) }}</span>+ <Badge variant="secondary" class="ml-auto shrink-0 text-xs font-normal">+ {{ $t(`posts.templates.category.${template.category}`) }}+ </Badge>+ </header>++ <h3 class="mt-3 text-base font-semibold leading-snug tracking-tight">{{ template.name }}</h3>++ <p+ v-if="template.description"+ class="mt-2 text-sm leading-relaxed text-muted-foreground"+ >+ {{ template.description }}+ </p>++ <p+ v-if="template.slides && template.slides.length > 0"+ class="mt-3 text-xs text-muted-foreground"+ >+ {{ $t('posts.templates.slides_count', { count: template.slides.length }) }}+ </p>++ <Button+ size="sm"+ variant="outline"+ class="mt-4 w-full"+ :disabled="applyingId === template.id"+ @click="applyTemplate(template)"+ >+ <IconLoader2 v-if="applyingId === template.id" class="mr-1 size-3 animate-spin" />+ {{ applyingId === template.id ? $t('posts.templates.applying') : $t('posts.templates.use_this') }}+ </Button>+ </article>+ </div>+ </InfiniteScroll>+ </div>+ </AppLayout>+</template>diff --git a/resources/js/pages/settings/Brand.vue b/resources/js/pages/settings/Brand.vueindex 01189375c..0bbcd73e5 100644--- a/resources/js/pages/settings/Brand.vue+++ b/resources/js/pages/settings/Brand.vue@@ -18,11 +18,16 @@ interface Workspace {brand_description: string | null;brand_tone: string;brand_voice_notes: string | null;+ brand_color: string | null;+ background_color: string | null;+ text_color: string | null;+ brand_font: string;content_language: string;}defineProps<{workspace: Workspace;+ availableFonts: string[];}>();const breadcrumbs = computed<BreadcrumbItem[]>(() => [@@ -45,7 +50,7 @@ const tabs = computed(() => [<div class="mx-auto max-w-4xl space-y-6 px-4 py-6"><SettingsTabsNav :tabs="tabs" active="brand" />- <BrandTab :workspace="workspace" />+ <BrandTab :workspace="workspace" :available-fonts="availableFonts" /></div></AppLayout></template>diff --git a/resources/views/prompts/assistant/platforms.blade.php b/resources/views/prompts/assistant/platforms.blade.phpdeleted file mode 100644index 7e7fd977b..000000000--- a/resources/views/prompts/assistant/platforms.blade.php+++ /dev/null@@ -1,9 +0,0 @@-@if(count($platform_rules) > 0)-ACTIVE PLATFORMS FOR THIS POST:-The user is creating a post targeting the following platform(s). Tailor content length, format, and tone to these constraints.--@foreach($platform_rules as $rule)-{{ $rule->summary() }}--@endforeach-@endifdiff --git a/resources/views/prompts/assistant/system.blade.php b/resources/views/prompts/assistant/system.blade.phpdeleted file mode 100644index 04261f2e6..000000000--- a/resources/views/prompts/assistant/system.blade.php+++ /dev/null@@ -1,65 +0,0 @@-You are a social media content assistant. You chat briefly with the user, collect what you need, confirm, then generate.--@if($brand_name)[Brand: {{ $brand_name }}@if($brand_description) — {{ $brand_description }}@endif | Tone: {{ $tone }}@if($voice_notes) | {{ $voice_notes }}@endif] NEVER restate this to the user.-@endif-Language: {{ $content_language }}. Write everything in this language.-@if(count($connected_platforms) > 0)-Platforms: @foreach($connected_platforms as $p){{ $p['label'] }} ({{ $p['slug'] }})@if(!$loop->last), @endif @endforeach-@endif--RULES:-- 1-2 sentences per response. Never write paragraphs.-- No emojis in messages or buttons. No sycophancy ("Great choice!"). No brand pitching.-- One question per turn. Never bundle questions.-- Never call generate_image/generate_video without explicit user confirmation first.-- You create content. You do NOT publish, schedule, or manage posts. Never offer "Publish" as a button.--FLOW:-You need 4 things before generating. Collect them in order, skipping any the user already provided:--1. **Format** — image, video, carousel, or just text. Buttons: [Image] [Video] [Carousel] [Just text]-2. **Topic** — what the post is about. NO buttons, let user type.-3. **Platform** — which network(s). Buttons: show connected platforms. Only ask if user didn't mention one AND has 2+ platforms. If only 1 platform connected, auto-pick it.-4. **Image/video orientation** — this is always the LAST question. Summarize the plan in one sentence, then ask format. Buttons: [Square 1:1] [Portrait 4:5] [Vertical 9:16] [Horizontal 16:9]. Clicking a format = confirmation to generate.--Skip any step the user already answered. Examples:-- User says "hi" → ask step 1-- User says "image post about X" → format+topic done, ask step 3 (platform)-- User says "image post about X for Instagram" → format+topic+platform done, ask step 4 (orientation)-- User says "image post about X for Instagram, portrait" → everything done, generate--After user picks orientation → generate immediately (that click IS the confirmation).--AFTER GENERATION:-When you generate media (image/video) + caption, your job is DONE. Offer these follow-up buttons:-- [Variation] → generate a different version-- [Edit caption] → let user type adjustments-- [Add to post] → signal that the content is ready to be added--NEVER offer "Publish", "Publish now", "Post now", or any publishing-related button. Publishing is handled outside this chat by the user via the post editor.--If the user says "done", "thanks", or signals they're finished → respond briefly ("All set!") with empty quick_actions.--BUTTONS:-- Use ONLY for: format choice, platform choice, confirmation, post-generation follow-ups-- NEVER for: topic, tone, angle, adjustments, open questions, publishing-- Max 4. No emojis. Labels in {{ $content_language }}. Value = same as label.--MEDIA TOOLS:-- generate_image: params prompt, orientation (square/portrait/vertical/horizontal)-- generate_video: params prompt, orientation-- ONE tool per response. Never both.-- Orientation: IG Feed → portrait (4:5). Reel/Story/TikTok/Pin → vertical (9:16). X/LinkedIn/FB → horizontal (16:9).-- If multiple platforms with different ratios → ask which format.-- Image prompts must include: "All visible text must be in {{ $content_language }}."-- Check [Session state] for quota first.--CONTENT:-- Write complete captions ready to publish. No placeholders.-- Never include hashtags.-- Respect character limits per platform.--@include('prompts.assistant.platforms')--Never generate content about pornography, drugs, violence, hate speech, or illegal activity.-[Session state] appears at the start of each user message — read it for quota info.diff --git a/resources/views/prompts/post_content/generator.blade.php b/resources/views/prompts/post_content/generator.blade.phpnew file mode 100644index 000000000..e0c4d5481--- /dev/null+++ b/resources/views/prompts/post_content/generator.blade.php@@ -0,0 +1,66 @@+You write social media posts for the brand "{{ $brand_name }}".++@if(!empty($brand_description))+About the brand: {{ $brand_description }}+@endif+@if(!empty($brand_tone))+Brand tone: {{ $brand_tone }}.+@endif+@if(!empty($brand_voice_notes))+Voice guidelines: {{ $brand_voice_notes }}+@endif+@if(!empty($current_content))++The user already has this content in the editor (use as context only — your output replaces it):+"""+{{ $current_content }}+"""+@endif++Write the output in the language with code: {{ $content_language ?? 'en' }}.++Rules:+- Match the brand tone and voice guidelines exactly.+- Avoid AI-clichés (testament, pivotal moment, emojis on every line, "Let's dive in").+- Keep paragraphs short. Vary sentence rhythm.+- If the user mentions a specific platform, follow that platform's typical conventions.++@if(!empty($examples))++Here are example posts from our curated library that match this platform — use them as inspiration for tone and structure (do NOT copy verbatim):++@foreach($examples as $i => $example)+Example {{ $i + 1 }} — {{ $example['name'] }}+{{ $example['content'] }}+@if(!empty($example['slides']))+Slides:+@foreach($example['slides'] as $j => $slide)+ Slide {{ $j + 1 }}: {{ $slide['title'] ?? '' }} | {{ $slide['body'] ?? '' }}+@endforeach+@endif++@endforeach++Use these as a stylistic reference. Generate something different (about the user's actual topic) but with similar structural quality.+@endif++@if(($format ?? 'single') === 'carousel')+Output format: a JSON object with `caption` (the Instagram caption text) and a `slides` array.++CRITICAL: The `slides` array MUST contain exactly {{ $slide_count ?? 1 }} items — no fewer, no more. Count carefully before responding. Each slide object must have:+- `title`: a short, impactful headline for that slide (in {{ $content_language ?? 'en' }})+- `body`: 1-3 sentences of supporting text (in {{ $content_language ?? 'en' }})+- `image_keywords`: 2-4 keywords for an Unsplash image search.+ ALWAYS write these in English, even when content_language is not 'en'. Unsplash's search index is English-only — Portuguese/Spanish queries return poor results.+ Example for a pt-BR post: `["calendar", "team meeting"]`, NOT `["calendário", "reunião de equipe"]`.++Plan the {{ $slide_count ?? 1 }}-slide narrative arc first (intro → development → conclusion or hook → points → CTA), then write each slide. The caption should tease the carousel content and encourage swiping.+@else+Output format: a JSON object with:+- `content`: the full post caption in {{ $content_language ?? 'en' }} (no preamble, no quotation marks). This is what gets published.+- `image_title`: a short headline (5-12 words) in {{ $content_language ?? 'en' }} that will be overlaid on the image. Make it a hook that stops the scroll. Do NOT just copy the first sentence of content — write something punchier.+- `image_body`: 1-2 short sentences (max 25 words) in {{ $content_language ?? 'en' }} that go below image_title on the image. Tease the rest so the reader opens the caption.+- `image_keywords`: 2-4 keywords for an Unsplash image search.+ ALWAYS write these in English, even when content_language is not 'en'. Unsplash's search index is English-only — Portuguese/Spanish queries return poor results.+ Example for a pt-BR post: `["calendar", "team meeting"]`, NOT `["calendário", "reunião de equipe"]`.+@endifdiff --git a/resources/views/prompts/post_content/humanizer.blade.php b/resources/views/prompts/post_content/humanizer.blade.phpnew file mode 100644index 000000000..3cf8893a8--- /dev/null+++ b/resources/views/prompts/post_content/humanizer.blade.php@@ -0,0 +1,93 @@+You are a copy editor that rewrites social media text to remove AI-generated patterns and make it sound like a real person wrote it.++@if(!empty($brand_name))+You are editing content for the brand "{{ $brand_name }}".+@endif+@if(!empty($brand_tone))+Brand tone: {{ $brand_tone }}.+@endif+@if(!empty($brand_voice_notes))+Brand voice notes (use as voice calibration sample — match this tone, vocabulary, and rhythm):+{{ $brand_voice_notes }}+@endif++Output language: {{ $content_language ?? 'en' }}.++## What to remove (AI-tells)++**Promotional / inflated language:**+testament, pivotal moment, evolving landscape, vital/crucial/key role, in the heart of, nestled, groundbreaking, breathtaking, must-visit, stunning, vibrant, rich (figurative), profound, exemplifies, commitment to.++**Empty filler verbs (-ing endings):**+highlighting, underscoring, emphasizing, ensuring, reflecting, symbolizing, contributing to, fostering, encompassing, showcasing.++**Overused AI vocabulary:**+delve, additionally, align with, crucial, enduring, enhance, garner, interplay, intricate, key (adj), landscape (abstract), pivotal, showcase, tapestry, testament, underscore, vibrant.++**Copula avoidance:**+"serves as", "stands as", "marks", "represents [a]", "boasts", "features [a]" — replace with simple "is/are/has".++**Negative parallelism:**+"It's not just X, it's Y", "Not only A, but also B" — overused. Just say what it is.++**Tailing negation fragments:**+"...no guessing", "...no wasted motion" — make it a real clause.++**Rule of three overuse:**+LLMs force ideas into groups of three. If three items don't add value, use one or two.++**Elegant variation (synonym cycling):**+"protagonist / main character / central figure / hero" all in one paragraph — pick one and stick with it.++**False ranges:**+"from X to Y" where X and Y aren't on a meaningful scale — just list them.++**Em dashes (—):**+LLMs overuse them. Most can be commas, periods, or parentheses.++**Curly quotes:**+Replace " " ' ' with straight " " ' '.++**Sycophantic / chatbot artifacts:**+"Great question!", "Of course!", "I hope this helps", "Let me know if...", "Without further ado", "Let's dive in".++**Knowledge-cutoff disclaimers:**+"While specific details are limited...", "based on available information..." — drop entirely.++**Excessive hedging:**+"could potentially possibly", "might have some effect" — pick one modal or none.++**Generic positive conclusions:**+"the future looks bright", "exciting times lie ahead", "a journey toward excellence" — drop or replace with a concrete next step.++**Hyphen overuse:**+"third-party", "cross-functional", "data-driven", "real-time" — humans rarely hyphenate these uniformly. Drop the hyphen unless it actually changes meaning.++**Persuasive authority tropes:**+"The real question is...", "At its core...", "Fundamentally..." — drop the framing.++**Signposting:**+"Let's break this down", "Here's what you need to know" — just say it.++## How to rewrite++1. **Vary rhythm.** Mix short and long sentences. Don't make every sentence the same shape.+2. **Have a point of view.** Real humans react. Neutral reporting reads like a wiki.+3. **Be specific.** Replace abstractions with concrete details when possible.+4. **Use "is/are/has"** where AI-elaborate constructions appear.+5. **Cut filler.** "In order to" → "to". "Due to the fact that" → "because". "At this point in time" → "now".+6. **Match the brand voice.** If brand_voice_notes was provided, mirror its rhythm and word choices.+7. **Preserve meaning.** The core message and any specific facts/numbers/claims stay intact.+8. **Match the original length roughly.** Don't dramatically expand or shrink the input — humanize, don't rewrite into a different post.++## Input you'll receive++The user message contains the AI-generated post in JSON form. Rewrite each text field to remove AI-tells while preserving structure. Return the same JSON shape with humanized text.++@if(($format ?? 'single') === 'carousel')+For carousel input: humanize the `caption`, and each slide's `title` and `body`. Keep slide order. Do not change the number of slides.+@else+For single-post input: humanize the `content` field.+@endif++Reply with the JSON object only, no preamble.diff --git a/resources/views/prompts/post_content/reviewer.blade.php b/resources/views/prompts/post_content/reviewer.blade.phpnew file mode 100644index 000000000..de135dd12--- /dev/null+++ b/resources/views/prompts/post_content/reviewer.blade.php@@ -0,0 +1,17 @@+You are a writing reviewer. Your job: spot grammar, spelling, and clarity issues in the social media post text the user provides.++Brand context:+- Brand: {{ $brand_name }}+@if(!empty($brand_tone))- Tone: {{ $brand_tone }}@endif+@if(!empty($brand_voice_notes))- Voice: {{ $brand_voice_notes }}@endif++Output language: {{ $content_language ?? 'en' }}.++Rules:+- Return ONLY suggestions. Do NOT rewrite the whole post. Do NOT change the author's voice or tone.+- Each suggestion's `original` MUST be a literal substring of the input (verbatim), so the frontend can replace it via string match.+- Each `suggestion` is the corrected version of `original`.+- Each `reason` is a 1-line explanation in the output language.+- If the text is fine, return an empty `suggestions` array.+- Do NOT propose stylistic changes. ONLY grammar, spelling, and clarity.+- Maximum 8 suggestions per request. Prioritize the most important ones.diff --git a/routes/app.php b/routes/app.phpindex 5f797af1d..35b12b336 100644--- a/routes/app.php+++ b/routes/app.php@@ -8,9 +8,12 @@ use App\Http\Controllers\App\AssetController;use App\Http\Controllers\App\BillingController;use App\Http\Controllers\App\GiphyController;use App\Http\Controllers\App\NotificationController;-use App\Http\Controllers\App\PostAssistantController;+use App\Http\Controllers\App\PostAiCreateController;+use App\Http\Controllers\App\PostAiGenerateController;+use App\Http\Controllers\App\PostAiReviewController;use App\Http\Controllers\App\PostCommentController;use App\Http\Controllers\App\PostController;+use App\Http\Controllers\App\PostTemplateController;use App\Http\Controllers\App\PresenceController;use App\Http\Controllers\App\Settings\AccountController;use App\Http\Controllers\App\Settings\NotificationPreferenceController;@@ -143,6 +146,7 @@ Route::middleware(['auth', EnsureAccountReady::class])->group(function () {// PostsRoute::get('posts/{status?}', [PostController::class, 'index'])->name('app.posts.index')->where('status', 'draft|scheduled|published');+ Route::get('posts/create', [PostController::class, 'create'])->name('app.posts.create');Route::post('posts', [PostController::class, 'store'])->name('app.posts.store');Route::get('posts/{post}/edit', [PostController::class, 'edit'])->name('app.posts.edit');Route::get('posts/{post}', [PostController::class, 'show'])->name('app.posts.show');@@ -150,6 +154,16 @@ Route::middleware(['auth', EnsureAccountReady::class])->group(function () {Route::put('posts/{post}', [PostController::class, 'update'])->name('app.posts.update');Route::delete('posts/{post}', [PostController::class, 'destroy'])->name('app.posts.destroy');+ // Post Templates+ Route::get('post-templates', [PostTemplateController::class, 'index'])->name('app.post-templates.index');+ Route::post('post-templates/{template}/apply', [PostTemplateController::class, 'apply'])->name('app.post-templates.apply');++ // Post AI+ Route::post('posts/{post}/ai/generate', [PostAiGenerateController::class, 'generate'])->name('app.posts.ai.generate');+ Route::post('posts/{post}/ai/review', [PostAiReviewController::class, 'review'])->name('app.posts.ai.review');+ Route::post('posts/ai/create', [PostAiCreateController::class, 'start'])->name('app.posts.ai.create');+ Route::post('posts/ai/create/{creationId}/finalize', [PostAiCreateController::class, 'finalize'])->name('app.posts.ai.create.finalize');+// Post CommentsRoute::get('posts/{post}/comments', [PostCommentController::class, 'index'])->name('app.posts.comments.index');Route::post('posts/{post}/comments', [PostCommentController::class, 'store'])->name('app.posts.comments.store');@@ -157,12 +171,6 @@ Route::middleware(['auth', EnsureAccountReady::class])->group(function () {Route::delete('posts/{post}/comments/{comment}', [PostCommentController::class, 'destroy'])->name('app.posts.comments.destroy');Route::post('posts/{post}/comments/{comment}/react', [PostCommentController::class, 'react'])->name('app.posts.comments.react');- // Post AI Assistant- Route::middleware('throttle:10,1')->group(function () {- Route::get('posts/{post}/assistant', [PostAssistantController::class, 'index'])->name('app.posts.assistant.index');- Route::post('posts/{post}/assistant', [PostAssistantController::class, 'store'])->name('app.posts.assistant.store');- });-// MembersRoute::get('settings/members', [WorkspaceInviteController::class, 'index'])->name('app.members');Route::post('settings/members/invites', [WorkspaceInviteController::class, 'store'])->name('app.invites.store');diff --git a/routes/channels.php b/routes/channels.phpindex 113d641ca..e517bb14b 100644--- a/routes/channels.php+++ b/routes/channels.php@@ -3,9 +3,15 @@declare(strict_types=1);use App\Broadcasting\PostChannel;+use App\Broadcasting\UserAiCreationChannel;+use App\Broadcasting\UserAiGenerationChannel;use App\Broadcasting\WorkspaceUserChannel;use Illuminate\Support\Facades\Broadcast;Broadcast::channel('post.{post}', PostChannel::class);Broadcast::channel('workspace.{workspace}.user.{owner}', WorkspaceUserChannel::class);++Broadcast::channel('users.{userId}.ai-gen.{generationId}', UserAiGenerationChannel::class);++Broadcast::channel('users.{userId}.ai-creation.{creationId}', UserAiCreationChannel::class);diff --git a/tests/Feature/Ai/HumanizerServiceTest.php b/tests/Feature/Ai/HumanizerServiceTest.phpdeleted file mode 100644index dec08e51f..000000000--- a/tests/Feature/Ai/HumanizerServiceTest.php+++ /dev/null@@ -1,103 +0,0 @@-<?php--declare(strict_types=1);--use App\Ai\Agents\Humanizer;-use App\Enums\UserWorkspace\Role;-use App\Models\User;-use App\Models\Workspace;-use App\Services\Ai\HumanizerService;--beforeEach(function () {- $this->user = User::factory()->create([]);- $this->workspace = Workspace::factory()->create([- 'user_id' => $this->user->id,- 'name' => 'Acme',- 'brand_tone' => 'casual',- 'brand_voice_notes' => 'short, punchy sentences. no jargon.',- 'content_language' => 'pt-BR',- ]);- $this->workspace->members()->attach($this->user->id, ['role' => Role::Member->value]);-});--test('humanize returns rewritten text from agent', function () {- Humanizer::fake(['Texto humanizado, sem travessões.']);-- $service = new HumanizerService;-- $result = $service->humanize('Texto original — com travessão.', $this->workspace);-- expect($result)->toBe('Texto humanizado, sem travessões.');-});--test('humanize trims surrounding whitespace from response', function () {- Humanizer::fake(["\n\n Texto limpo. \n"]);-- $service = new HumanizerService;-- $result = $service->humanize('Original', $this->workspace);-- expect($result)->toBe('Texto limpo.');-});--test('humanize returns original text when input is empty or whitespace only', function () {- $service = new HumanizerService;-- expect($service->humanize('', $this->workspace))->toBe('');- expect($service->humanize(' ', $this->workspace))->toBe(' ');-});--test('humanize falls back to original text when agent throws', function () {- Humanizer::fake(function () {- throw new RuntimeException('Provider unavailable');- });-- $service = new HumanizerService;-- $result = $service->humanize('Texto original', $this->workspace);-- expect($result)->toBe('Texto original');-});--test('humanize falls back to original text when agent returns empty string', function () {- Humanizer::fake(['']);-- $service = new HumanizerService;-- $result = $service->humanize('Texto original', $this->workspace);-- expect($result)->toBe('Texto original');-});--test('humanize injects brand context and content language into instructions', function () {- $capturedInstructions = null;- Humanizer::fake(function ($prompt) use (&$capturedInstructions) {- // Capture the agent's instructions through the agent instance — Promptable- // doesn't expose them directly to the closure, so we rely on prompt content.- $capturedInstructions = (string) $prompt;-- return 'ok';- });-- $service = new HumanizerService;-- $service->humanize('text to rewrite', $this->workspace);-- // The user prompt itself is just the text. The instructions (brand context)- // are part of the system prompt rendered from the blade — we verify that- // separately via a render check below.- expect($capturedInstructions)->toBe('text to rewrite');-- $rendered = view('prompts.assistant.humanize', [- 'brand_name' => $this->workspace->name,- 'brand_tone' => $this->workspace->brand_tone,- 'brand_voice_notes' => $this->workspace->brand_voice_notes,- 'content_language' => $this->workspace->content_language,- ])->render();-- expect($rendered)- ->toContain('Acme')- ->toContain('casual')- ->toContain('short, punchy sentences')- ->toContain('pt-BR');-});diff --git a/tests/Feature/Ai/PostAiCreateTest.php b/tests/Feature/Ai/PostAiCreateTest.phpnew file mode 100644index 000000000..16e37b220--- /dev/null+++ b/tests/Feature/Ai/PostAiCreateTest.php@@ -0,0 +1,185 @@+<?php++declare(strict_types=1);++use App\Enums\SocialAccount\Platform;+use App\Enums\UserWorkspace\Role;+use App\Jobs\Ai\StreamPostCreation;+use App\Models\Post;+use App\Models\SocialAccount;+use App\Models\User;+use App\Models\Workspace;+use Illuminate\Support\Facades\Bus;+use Illuminate\Support\Facades\Cache;+use Symfony\Component\HttpFoundation\Response;++beforeEach(function () {+ $this->user = User::factory()->create();+ $this->workspace = Workspace::factory()->create(['user_id' => $this->user->id]);+ $this->workspace->members()->attach($this->user->id, ['role' => Role::Member->value]);+ $this->user->update(['current_workspace_id' => $this->workspace->id]);+});++// --- POST /posts/ai/create (start) ---++test('start requires authentication', function () {+ $this->postJson('/posts/ai/create', ['prompt' => 'hello', 'format' => 'x_post'])+ ->assertStatus(Response::HTTP_UNAUTHORIZED);+});++test('start validates prompt is required', function () {+ Bus::fake();++ $this->actingAs($this->user)+ ->postJson('/posts/ai/create', ['format' => 'x_post'])+ ->assertStatus(Response::HTTP_UNPROCESSABLE_ENTITY)+ ->assertJsonValidationErrors(['prompt']);+});++test('start validates format is required', function () {+ Bus::fake();++ $this->actingAs($this->user)+ ->postJson('/posts/ai/create', ['prompt' => 'hello'])+ ->assertStatus(Response::HTTP_UNPROCESSABLE_ENTITY)+ ->assertJsonValidationErrors(['format']);+});++test('start validates format must be a known value', function () {+ Bus::fake();++ $this->actingAs($this->user)+ ->postJson('/posts/ai/create', ['prompt' => 'hello', 'format' => 'tiktok_video'])+ ->assertStatus(Response::HTTP_UNPROCESSABLE_ENTITY)+ ->assertJsonValidationErrors(['format']);+});++test('start rejects social_account_id from another workspace', function () {+ Bus::fake();++ $otherWorkspace = Workspace::factory()->create();+ $foreignAccount = SocialAccount::factory()->create([+ 'workspace_id' => $otherWorkspace->id,+ 'platform' => Platform::X,+ ]);++ $this->actingAs($this->user)+ ->postJson('/posts/ai/create', [+ 'prompt' => 'hello',+ 'format' => 'x_post',+ 'social_account_id' => $foreignAccount->id,+ ])+ ->assertStatus(Response::HTTP_FORBIDDEN);+});++test('start dispatches StreamPostCreation and returns creation_id and channel', function () {+ Bus::fake();++ $account = SocialAccount::factory()->create([+ 'workspace_id' => $this->workspace->id,+ 'platform' => Platform::X,+ ]);++ $response = $this->actingAs($this->user)+ ->postJson('/posts/ai/create', [+ 'prompt' => 'Write a post about productivity',+ 'format' => 'x_post',+ 'social_account_id' => $account->id,+ 'image_count' => 2,+ ])+ ->assertStatus(Response::HTTP_ACCEPTED);++ $creationId = $response->json('creation_id');+ expect($creationId)->toBeString()->not->toBeEmpty();+ expect($response->json('channel'))->toBe("users.{$this->user->id}.ai-creation.{$creationId}");++ Bus::assertDispatched(StreamPostCreation::class, function ($job) use ($creationId, $account) {+ return $job->userId === $this->user->id+ && $job->creationId === $creationId+ && $job->workspaceId === $this->workspace->id+ && $job->format === 'x_post'+ && $job->socialAccountId === $account->id+ && $job->imageCount === 2+ && $job->prompt === 'Write a post about productivity';+ });+});++test('start works without social_account_id', function () {+ Bus::fake();++ $this->actingAs($this->user)+ ->postJson('/posts/ai/create', [+ 'prompt' => 'Write a LinkedIn post',+ 'format' => 'linkedin_post',+ ])+ ->assertStatus(Response::HTTP_ACCEPTED)+ ->assertJsonStructure(['creation_id', 'channel']);++ Bus::assertDispatched(StreamPostCreation::class, fn ($job) => is_null($job->socialAccountId));+});++// --- POST /posts/ai/create/{creationId}/finalize ---++test('finalize requires authentication', function () {+ $this->postJson('/posts/ai/create/fake-id/finalize')+ ->assertStatus(Response::HTTP_UNAUTHORIZED);+});++test('finalize returns 404 if creation not found in cache', function () {+ $this->actingAs($this->user)+ ->postJson('/posts/ai/create/nonexistent-id/finalize')+ ->assertStatus(Response::HTTP_NOT_FOUND);+});++test('finalize returns 404 if creation belongs to another user', function () {+ $otherUser = User::factory()->create();+ $creationId = 'test-creation-id';++ Cache::put("ai-creation:{$creationId}", [+ 'workspace_id' => $this->workspace->id,+ 'user_id' => $otherUser->id,+ 'format' => 'x_post',+ 'social_account_id' => null,+ 'image_count' => 0,+ 'content' => 'Some generated content',+ 'created_at' => now()->toIso8601String(),+ ], now()->addMinutes(30));++ $this->actingAs($this->user)+ ->postJson("/posts/ai/create/{$creationId}/finalize")+ ->assertStatus(Response::HTTP_NOT_FOUND);+});++test('finalize creates a post and returns post_id and redirect_url', function () {+ $creationId = 'test-creation-id';+ $content = 'AI-generated content for the post';++ Cache::put("ai-creation:{$creationId}", [+ 'workspace_id' => $this->workspace->id,+ 'user_id' => $this->user->id,+ 'format' => 'x_post',+ 'social_account_id' => null,+ 'image_count' => 0,+ 'content' => $content,+ 'created_at' => now()->toIso8601String(),+ ], now()->addMinutes(30));++ $response = $this->actingAs($this->user)+ ->postJson("/posts/ai/create/{$creationId}/finalize")+ ->assertStatus(Response::HTTP_OK)+ ->assertJsonStructure(['post_id', 'redirect_url']);++ $postId = $response->json('post_id');+ $post = Post::find($postId);++ expect($post)->not->toBeNull();+ expect($post->content)->toBe($content);+ expect($post->workspace_id)->toBe($this->workspace->id);+ expect($post->user_id)->toBe($this->user->id);++ // Cache entry should be cleared+ expect(Cache::get("ai-creation:{$creationId}"))->toBeNull();++ // Redirect URL should point to the edit page+ expect($response->json('redirect_url'))->toContain("/posts/{$postId}/edit");+});diff --git a/tests/Feature/Ai/PostAiGenerateTest.php b/tests/Feature/Ai/PostAiGenerateTest.phpnew file mode 100644index 000000000..501e86d85--- /dev/null+++ b/tests/Feature/Ai/PostAiGenerateTest.php@@ -0,0 +1,68 @@+<?php++declare(strict_types=1);++use App\Enums\UserWorkspace\Role;+use App\Jobs\Ai\StreamPostContent;+use App\Models\Post;+use App\Models\User;+use App\Models\Workspace;+use Illuminate\Support\Facades\Bus;+use Symfony\Component\HttpFoundation\Response;++beforeEach(function () {+ $this->user = User::factory()->create();+ $this->workspace = Workspace::factory()->create(['user_id' => $this->user->id]);+ $this->workspace->members()->attach($this->user->id, ['role' => Role::Member->value]);+ $this->user->update(['current_workspace_id' => $this->workspace->id]);+ $this->post = Post::factory()->create([+ 'workspace_id' => $this->workspace->id,+ 'user_id' => $this->user->id,+ ]);+});++test('endpoint requires authentication', function () {+ $this->postJson("/posts/{$this->post->id}/ai/generate", ['prompt' => 'hi'])+ ->assertStatus(Response::HTTP_UNAUTHORIZED);+});++test('endpoint validates prompt is required', function () {+ Bus::fake();+ $this->actingAs($this->user)+ ->postJson("/posts/{$this->post->id}/ai/generate", [])+ ->assertStatus(Response::HTTP_UNPROCESSABLE_ENTITY)+ ->assertJsonValidationErrors(['prompt']);+});++test('endpoint blocks access to other workspace posts', function () {+ Bus::fake();+ $otherWorkspace = Workspace::factory()->create();+ $foreignPost = Post::factory()->create(['workspace_id' => $otherWorkspace->id]);++ $this->actingAs($this->user)+ ->postJson("/posts/{$foreignPost->id}/ai/generate", ['prompt' => 'hi'])+ ->assertStatus(Response::HTTP_FORBIDDEN);+});++test('endpoint dispatches StreamPostContent and returns generation id and channel', function () {+ Bus::fake();++ $response = $this->actingAs($this->user)+ ->postJson("/posts/{$this->post->id}/ai/generate", [+ 'prompt' => 'Write a post about Mondays',+ 'current_content' => 'Old content',+ ])+ ->assertStatus(Response::HTTP_ACCEPTED);++ $generationId = $response->json('generation_id');+ expect($generationId)->toBeString()->not->toBeEmpty();+ expect($response->json('channel'))->toBe("users.{$this->user->id}.ai-gen.{$generationId}");++ Bus::assertDispatched(StreamPostContent::class, function ($job) use ($generationId) {+ return $job->workspaceId === $this->workspace->id+ && $job->userId === $this->user->id+ && $job->generationId === $generationId+ && $job->prompt === 'Write a post about Mondays'+ && $job->currentContent === 'Old content';+ });+});diff --git a/tests/Feature/Ai/PostAiReviewTest.php b/tests/Feature/Ai/PostAiReviewTest.phpnew file mode 100644index 000000000..4b3cca22f--- /dev/null+++ b/tests/Feature/Ai/PostAiReviewTest.php@@ -0,0 +1,57 @@+<?php++declare(strict_types=1);++use App\Ai\Agents\PostContentReviewer;+use App\Enums\UserWorkspace\Role;+use App\Models\Post;+use App\Models\User;+use App\Models\Workspace;+use Symfony\Component\HttpFoundation\Response;++beforeEach(function () {+ $this->user = User::factory()->create();+ $this->workspace = Workspace::factory()->create(['user_id' => $this->user->id]);+ $this->workspace->members()->attach($this->user->id, ['role' => Role::Member->value]);+ $this->user->update(['current_workspace_id' => $this->workspace->id]);+ $this->post = Post::factory()->create([+ 'workspace_id' => $this->workspace->id,+ 'user_id' => $this->user->id,+ ]);+});++test('endpoint requires authentication', function () {+ $this->postJson("/posts/{$this->post->id}/ai/review", ['content' => 'hi'])+ ->assertStatus(Response::HTTP_UNAUTHORIZED);+});++test('endpoint validates content required', function () {+ $this->actingAs($this->user)+ ->postJson("/posts/{$this->post->id}/ai/review", [])+ ->assertStatus(Response::HTTP_UNPROCESSABLE_ENTITY)+ ->assertJsonValidationErrors(['content']);+});++test('endpoint blocks cross-workspace posts', function () {+ $otherWorkspace = Workspace::factory()->create();+ $foreignPost = Post::factory()->create(['workspace_id' => $otherWorkspace->id]);++ $this->actingAs($this->user)+ ->postJson("/posts/{$foreignPost->id}/ai/review", ['content' => 'hi'])+ ->assertStatus(Response::HTTP_FORBIDDEN);+});++test('endpoint returns suggestions array', function () {+ PostContentReviewer::fake([+ ['suggestions' => [+ ['original' => 'i was', 'suggestion' => 'I was', 'reason' => 'Capitalize "I"'],+ ]],+ ]);++ $response = $this->actingAs($this->user)+ ->postJson("/posts/{$this->post->id}/ai/review", ['content' => 'i was here'])+ ->assertOk();++ expect($response->json('suggestions'))->toBeArray()->toHaveCount(1);+ expect($response->json('suggestions.0.original'))->toBe('i was');+});diff --git a/tests/Feature/Ai/SocialMediaAssistantTest.php b/tests/Feature/Ai/SocialMediaAssistantTest.phpdeleted file mode 100644index d3047c592..000000000--- a/tests/Feature/Ai/SocialMediaAssistantTest.php+++ /dev/null@@ -1,138 +0,0 @@-<?php--declare(strict_types=1);--use App\Ai\Agents\SocialMediaAssistant;-use App\Enums\SocialAccount\Platform;-use App\Enums\UserWorkspace\Role;-use App\Models\AiMessage;-use App\Models\Post;-use App\Models\PostPlatform;-use App\Models\SocialAccount;-use App\Models\User;-use App\Models\Workspace;-use Laravel\Ai\Enums\Lab;-use Laravel\Ai\Messages\Message;--beforeEach(function () {- $this->user = User::factory()->create([]);- $this->workspace = Workspace::factory()->create([- 'user_id' => $this->user->id,- 'name' => 'Paulo Coffee',- 'brand_tone' => 'friendly',- ]);- $this->workspace->members()->attach($this->user->id, ['role' => Role::Member->value]);- $this->user->update(['current_workspace_id' => $this->workspace->id]);-- $this->post = Post::factory()->create([- 'workspace_id' => $this->workspace->id,- 'user_id' => $this->user->id,- ]);-});--test('instructions include brand context from workspace', function () {- $agent = new SocialMediaAssistant($this->workspace, $this->post);-- $instructions = $agent->instructions();-- expect($instructions)- ->toContain('Paulo Coffee')- ->toContain('friendly');-});--test('messages returns AiMessage rows as SDK messages', function () {- AiMessage::factory()->create([- 'post_id' => $this->post->id,- 'role' => 'user',- 'content' => 'Write a caption',- ]);- AiMessage::factory()->create([- 'post_id' => $this->post->id,- 'role' => 'assistant',- 'content' => 'Here it is!',- ]);-- $agent = new SocialMediaAssistant($this->workspace, $this->post);-- $messages = collect($agent->messages())->all();-- expect($messages)->toHaveCount(2);- expect($messages[0])->toBeInstanceOf(Message::class);- expect($messages[0]->role->value)->toBe('user');- expect($messages[0]->content)->toBe('Write a caption');- expect($messages[1]->role->value)->toBe('assistant');- expect($messages[1]->content)->toBe('Here it is!');-});--test('messages is empty when no post is provided', function () {- $agent = new SocialMediaAssistant($this->workspace);-- $messages = collect($agent->messages())->all();-- expect($messages)->toBeEmpty();-});--test('messages is empty when post has no AiMessages', function () {- $agent = new SocialMediaAssistant($this->workspace, $this->post);-- $messages = collect($agent->messages())->all();-- expect($messages)->toBeEmpty();-});--test('messages enriches assistant content with attachment summary', function () {- AiMessage::factory()->create([- 'post_id' => $this->post->id,- 'role' => 'assistant',- 'content' => 'Here is your image',- 'attachments' => [- ['id' => 'a', 'type' => 'image'],- ['id' => 'b', 'type' => 'image'],- ],- ]);-- $agent = new SocialMediaAssistant($this->workspace, $this->post);-- $messages = collect($agent->messages())->all();-- expect($messages[0]->content)->toContain('Here is your image');- expect($messages[0]->content)->toContain('[This assistant message attached: 2 images]');-});--test('instructions include rules only for active post platforms', function () {- $socialAccount = SocialAccount::factory()->create([- 'workspace_id' => $this->workspace->id,- 'platform' => Platform::X,- ]);-- PostPlatform::factory()->create([- 'post_id' => $this->post->id,- 'social_account_id' => $socialAccount->id,- 'platform' => Platform::X,- ]);-- $agent = new SocialMediaAssistant($this->workspace, $this->post->fresh('postPlatforms'));-- $instructions = $agent->instructions();-- expect($instructions)->toContain('X (Twitter): 280 chars');- expect($instructions)->not->toContain('Instagram: caption max 2200');-});--test('instructions include no platform rules section when post has no platforms', function () {- $agent = new SocialMediaAssistant($this->workspace, $this->post);-- $instructions = $agent->instructions();-- expect($instructions)->not->toContain('ACTIVE PLATFORMS FOR THIS POST');-});--test('provider honors ai.default config', function () {- config()->set('ai.default', 'openai');-- expect((new SocialMediaAssistant($this->workspace))->provider())->toBe(Lab::OpenAI);-- config()->set('ai.default', 'gemini');-- expect((new SocialMediaAssistant($this->workspace))->provider())->toBe(Lab::Gemini);-});diff --git a/tests/Feature/Ai/StreamPostContentJobTest.php b/tests/Feature/Ai/StreamPostContentJobTest.phpnew file mode 100644index 000000000..fb8688dbb--- /dev/null+++ b/tests/Feature/Ai/StreamPostContentJobTest.php@@ -0,0 +1,45 @@+<?php++declare(strict_types=1);++use App\Ai\Agents\PostContentStreamer;+use App\Jobs\Ai\StreamPostContent;+use App\Models\User;+use App\Models\Workspace;+use Illuminate\Support\Facades\Bus;++test('job is queued onto the ai queue', function () {+ Bus::fake();++ $workspace = Workspace::factory()->create();+ $user = User::factory()->create();++ StreamPostContent::dispatch(+ workspaceId: $workspace->id,+ userId: $user->id,+ generationId: 'gen-1',+ prompt: 'Write a post about Mondays',+ currentContent: null,+ );++ Bus::assertDispatched(StreamPostContent::class, fn ($job) => $job->queue === 'ai');+});++test('job invokes the PostContentStreamer agent and broadcasts stream events', function () {+ $workspace = Workspace::factory()->create();+ $user = User::factory()->create();++ PostContentStreamer::fake(['Hello world']);++ $job = new StreamPostContent(+ workspaceId: $workspace->id,+ userId: $user->id,+ generationId: 'gen-abc',+ prompt: 'Write a post about Mondays',+ currentContent: null,+ );++ $job->handle();++ PostContentStreamer::assertPrompted('Write a post about Mondays');+});diff --git a/tests/Feature/Ai/Tools/AttachmentCollectorTest.php b/tests/Feature/Ai/Tools/AttachmentCollectorTest.phpdeleted file mode 100644index 3e77b16ee..000000000--- a/tests/Feature/Ai/Tools/AttachmentCollectorTest.php+++ /dev/null@@ -1,41 +0,0 @@-<?php--declare(strict_types=1);--use App\Ai\Tools\AttachmentCollector;--test('collector starts empty', function () {- $collector = new AttachmentCollector;-- expect($collector->all())->toBeEmpty();-});--test('collector records attachments in push order', function () {- $collector = new AttachmentCollector;-- $collector->push(['id' => 'a', 'type' => 'image']);- $collector->push(['id' => 'b', 'type' => 'video']);-- expect($collector->all())->toHaveCount(2);- expect($collector->all()[0]['id'])->toBe('a');- expect($collector->all()[1]['id'])->toBe('b');-});--test('collector clear removes all attachments', function () {- $collector = new AttachmentCollector;-- $collector->push(['id' => 'a', 'type' => 'image']);- $collector->clear();-- expect($collector->all())->toBeEmpty();-});--test('collector resolves as a scoped singleton within the container', function () {- $a = app(AttachmentCollector::class);- $b = app(AttachmentCollector::class);-- $a->push(['id' => 'same', 'type' => 'image']);-- expect($b->all())->toHaveCount(1);- expect($b->all()[0]['id'])->toBe('same');-});diff --git a/tests/Feature/Ai/Tools/GenerateAudioTest.php b/tests/Feature/Ai/Tools/GenerateAudioTest.phpdeleted file mode 100644index 3319da791..000000000--- a/tests/Feature/Ai/Tools/GenerateAudioTest.php+++ /dev/null@@ -1,91 +0,0 @@-<?php--declare(strict_types=1);--use App\Ai\Tools\AttachmentCollector;-use App\Ai\Tools\GenerateAudio;-use App\Enums\Ai\UsageType;-use App\Enums\UserWorkspace\Role;-use App\Models\AiUsageLog;-use App\Models\Post;-use App\Models\User;-use App\Models\Workspace;-use Illuminate\JsonSchema\JsonSchemaTypeFactory;-use Illuminate\Support\Facades\Storage;-use Laravel\Ai\Audio;-use Laravel\Ai\Tools\Request as ToolRequest;--beforeEach(function () {- Storage::fake('public');- $this->user = User::factory()->create();- $this->workspace = Workspace::factory()->create(['user_id' => $this->user->id]);- $this->workspace->members()->attach($this->user->id, ['role' => Role::Member->value]);- $this->post = Post::factory()->create([- 'workspace_id' => $this->workspace->id,- 'user_id' => $this->user->id,- ]);- app(AttachmentCollector::class)->clear();-});--test('tool generates audio, pushes attachment to collector, creates usage log', function () {- Audio::fake();-- $tool = new GenerateAudio(- workspace: $this->workspace,- post: $this->post,- userId: $this->user->id,- );-- $summary = $tool->handle(new ToolRequest([- 'text' => 'Welcome to my channel',- ]));-- expect((string) $summary)->toContain('audio');- expect(app(AttachmentCollector::class)->all())->toHaveCount(1);- expect(app(AttachmentCollector::class)->all()[0]['type'])->toBe('audio');- expect(app(AttachmentCollector::class)->all()[0]['mime_type'])->toBe('audio/mpeg');-- Audio::assertGenerated(fn ($prompt) => true);-- $this->assertDatabaseHas('workspace_ai_usages', [- 'workspace_id' => $this->workspace->id,- 'type' => UsageType::Audio->value,- 'provider' => 'elevenlabs',- ]);-});--test('tool refuses to generate when video quota is exhausted (audio shares quota)', function () {- Audio::fake();-- // Default (no plan attached) video quota is 10. Audio shares this bucket.- AiUsageLog::factory()->video()->count(10)->create([- 'account_id' => $this->workspace->account_id,- 'workspace_id' => $this->workspace->id,- ]);-- $tool = new GenerateAudio(- workspace: $this->workspace,- post: $this->post,- userId: $this->user->id,- );-- $summary = $tool->handle(new ToolRequest([- 'text' => 'hello',- ]));-- expect((string) $summary)->toContain('quota');- expect(app(AttachmentCollector::class)->all())->toBeEmpty();- Audio::assertNothingGenerated();-});--test('tool exposes schema with text parameter', function () {- $tool = new GenerateAudio(- workspace: $this->workspace,- post: $this->post,- userId: $this->user->id,- );-- $schema = $tool->schema(new JsonSchemaTypeFactory);-- expect($schema)->toHaveKey('text');-});diff --git a/tests/Feature/Ai/Tools/GenerateImageTest.php b/tests/Feature/Ai/Tools/GenerateImageTest.phpdeleted file mode 100644index 4b7131b41..000000000--- a/tests/Feature/Ai/Tools/GenerateImageTest.php+++ /dev/null@@ -1,115 +0,0 @@-<?php--declare(strict_types=1);--use App\Ai\Tools\AttachmentCollector;-use App\Ai\Tools\GenerateImage;-use App\Enums\Ai\UsageType;-use App\Enums\UserWorkspace\Role;-use App\Models\AiUsageLog;-use App\Models\Post;-use App\Models\User;-use App\Models\Workspace;-use Illuminate\JsonSchema\JsonSchemaTypeFactory;-use Illuminate\Support\Facades\Storage;-use Laravel\Ai\Image;-use Laravel\Ai\Tools\Request as ToolRequest;--beforeEach(function () {- Storage::fake('public');- $this->user = User::factory()->create([]);- $this->workspace = Workspace::factory()->create(['user_id' => $this->user->id]);- $this->workspace->members()->attach($this->user->id, ['role' => Role::Member->value]);- $this->post = Post::factory()->create([- 'workspace_id' => $this->workspace->id,- 'user_id' => $this->user->id,- ]);- app(AttachmentCollector::class)->clear();-});--test('tool generates image, pushes attachment to collector, creates usage log', function () {- Image::fake();-- $tool = new GenerateImage(- workspace: $this->workspace,- post: $this->post,- userId: $this->user->id,- );-- $summary = $tool->handle(new ToolRequest([- 'prompt' => 'A sunset beach',- 'orientation' => 'vertical',- ]));-- expect((string) $summary)->toContain('image');-- $collector = app(AttachmentCollector::class);- expect($collector->all())->toHaveCount(1);-- $attachment = $collector->all()[0];- expect($attachment)->toHaveKeys(['id', 'path', 'url', 'mime_type', 'type']);- expect($attachment['type'])->toBe('image');- expect($attachment['mime_type'])->toBe('image/png');-- Image::assertGenerated(fn ($prompt) => true);-- $this->assertDatabaseHas('workspace_ai_usages', [- 'workspace_id' => $this->workspace->id,- 'type' => UsageType::Image->value,- 'provider' => config('ai.default_for_images'),- ]);-});--test('tool defaults to vertical when orientation is unknown', function () {- Image::fake();-- $tool = new GenerateImage(- workspace: $this->workspace,- post: $this->post,- userId: $this->user->id,- );-- $tool->handle(new ToolRequest([- 'prompt' => 'A forest',- 'orientation' => 'gibberish',- ]));-- expect(app(AttachmentCollector::class)->all()[0]['type'])->toBe('image');-});--test('tool refuses to generate when monthly image quota is exhausted', function () {- Image::fake();-- // Fill up the image quota. Default (no plan attached) is 50 images.- AiUsageLog::factory()->image()->count(50)->create([- 'account_id' => $this->workspace->account_id,- 'workspace_id' => $this->workspace->id,- ]);-- $tool = new GenerateImage(- workspace: $this->workspace,- post: $this->post,- userId: $this->user->id,- );-- $summary = $tool->handle(new ToolRequest([- 'prompt' => 'A sunset',- 'orientation' => 'vertical',- ]));-- expect((string) $summary)->toContain('quota exhausted');- expect(app(AttachmentCollector::class)->all())->toBeEmpty();- Image::assertNothingGenerated();-});--test('tool exposes schema with prompt and orientation parameters', function () {- $tool = new GenerateImage(- workspace: $this->workspace,- post: $this->post,- userId: $this->user->id,- );-- $schema = $tool->schema(new JsonSchemaTypeFactory);-- expect($schema)->toHaveKeys(['prompt', 'orientation']);-});diff --git a/tests/Feature/Ai/Tools/GenerateVideoTest.php b/tests/Feature/Ai/Tools/GenerateVideoTest.phpdeleted file mode 100644index 0905c9631..000000000--- a/tests/Feature/Ai/Tools/GenerateVideoTest.php+++ /dev/null@@ -1,96 +0,0 @@-<?php--declare(strict_types=1);--use App\Ai\Tools\AttachmentCollector;-use App\Ai\Tools\GenerateVideo;-use App\Enums\UserWorkspace\Role;-use App\Models\AiUsageLog;-use App\Models\Post;-use App\Models\User;-use App\Models\Workspace;-use App\Services\Ai\VideoGenerationService;-use Illuminate\JsonSchema\JsonSchemaTypeFactory;-use Illuminate\Support\Str;-use Laravel\Ai\Tools\Request as ToolRequest;--beforeEach(function () {- $this->user = User::factory()->create([]);- $this->workspace = Workspace::factory()->create(['user_id' => $this->user->id]);- $this->workspace->members()->attach($this->user->id, ['role' => Role::Member->value]);- $this->post = Post::factory()->create([- 'workspace_id' => $this->workspace->id,- 'user_id' => $this->user->id,- ]);- app(AttachmentCollector::class)->clear();-});--test('tool delegates to VideoGenerationService and pushes attachment to collector', function () {- $media = $this->workspace->media()->create([- 'group_id' => Str::uuid()->toString(),- 'collection' => 'assets',- 'type' => 'video',- 'path' => 'medias/video.mp4',- 'original_filename' => 'ai-generated.mp4',- 'mime_type' => 'video/mp4',- 'size' => 1024,- 'order' => 0,- ]);-- $mock = $this->mock(VideoGenerationService::class);- $mock->shouldReceive('generate')->once()->andReturn($media);-- $tool = new GenerateVideo(- workspace: $this->workspace,- post: $this->post,- userId: $this->user->id,- );-- $summary = $tool->handle(new ToolRequest([- 'prompt' => 'A cat dancing',- 'orientation' => 'vertical',- ]));-- expect((string) $summary)->toContain('video');- expect(app(AttachmentCollector::class)->all())->toHaveCount(1);- expect(app(AttachmentCollector::class)->all()[0]['id'])->toBe($media->id);- expect(app(AttachmentCollector::class)->all()[0]['type'])->toBe('video');-});--test('tool refuses to generate when monthly video quota is exhausted', function () {- // Fill up the video quota. Default (no plan attached) is 10 videos.- AiUsageLog::factory()->video()->count(10)->create([- 'account_id' => $this->workspace->account_id,- 'workspace_id' => $this->workspace->id,- ]);-- // VideoGenerationService should not be called when quota is hit.- $mock = $this->mock(VideoGenerationService::class);- $mock->shouldNotReceive('generate');-- $tool = new GenerateVideo(- workspace: $this->workspace,- post: $this->post,- userId: $this->user->id,- );-- $summary = $tool->handle(new ToolRequest([- 'prompt' => 'A cat',- 'orientation' => 'vertical',- ]));-- expect((string) $summary)->toContain('quota exhausted');- expect(app(AttachmentCollector::class)->all())->toBeEmpty();-});--test('tool exposes schema with prompt and orientation parameters', function () {- $tool = new GenerateVideo(- workspace: $this->workspace,- post: $this->post,- userId: $this->user->id,- );-- $schema = $tool->schema(new JsonSchemaTypeFactory);-- expect($schema)->toHaveKeys(['prompt', 'orientation']);-});diff --git a/tests/Feature/Ai/UserAiGenerationChannelTest.php b/tests/Feature/Ai/UserAiGenerationChannelTest.phpnew file mode 100644index 000000000..31afd4273--- /dev/null+++ b/tests/Feature/Ai/UserAiGenerationChannelTest.php@@ -0,0 +1,21 @@+<?php++declare(strict_types=1);++use App\Broadcasting\UserAiGenerationChannel;+use App\Models\User;++test('user can join their own generation channel', function () {+ $user = User::factory()->create();+ $channel = new UserAiGenerationChannel;++ expect($channel->join($user, $user->id, 'some-uuid'))->toBeTrue();+});++test('user cannot join another users generation channel', function () {+ $user = User::factory()->create();+ $other = User::factory()->create();+ $channel = new UserAiGenerationChannel;++ expect($channel->join($user, $other->id, 'some-uuid'))->toBeFalse();+});diff --git a/tests/Feature/AiUsageLogTest.php b/tests/Feature/AiUsageLogTest.phpindex 0eb7bb6c9..75e95d5bf 100644--- a/tests/Feature/AiUsageLogTest.php+++ b/tests/Feature/AiUsageLogTest.php@@ -2,12 +2,10 @@declare(strict_types=1);-use App\Enums\Ai\Intent;use App\Enums\Ai\UsageType;use App\Models\Account;use App\Models\AiUsageLog;use App\Models\Workspace;-use App\Services\Ai\IntentDetector;test('monthly count returns correct count for account and type', function () {$account = Account::factory()->create();@@ -64,55 +62,3 @@ test('monthly count excludes logs from other accounts', function () {expect(AiUsageLog::monthlyCount($account->id, UsageType::Image))->toBe(1);});--test('intent detector detects video intent', function () {- $detector = new IntentDetector;-- expect($detector->detect('Create a video for my product'))->toBe(Intent::Video);- expect($detector->detect('Make a reel about coffee'))->toBe(Intent::Video);- expect($detector->detect('Animate this logo'))->toBe(Intent::Video);-});--test('intent detector detects image intent', function () {- $detector = new IntentDetector;-- expect($detector->detect('Generate an image of a sunset'))->toBe(Intent::Image);- expect($detector->detect('Draw me a logo'))->toBe(Intent::Image);- expect($detector->detect('Create a visual for my post'))->toBe(Intent::Image);-});--test('intent detector detects audio intent', function () {- $detector = new IntentDetector;-- expect($detector->detect('Create a voiceover for this text'))->toBe(Intent::Audio);- expect($detector->detect('Convert this to audio narration'))->toBe(Intent::Audio);- expect($detector->detect('Generate TTS for my caption'))->toBe(Intent::Audio);-});--test('intent detector defaults to text', function () {- $detector = new IntentDetector;-- expect($detector->detect('Write a caption for my post'))->toBe(Intent::Text);- expect($detector->detect('Help me with hashtags'))->toBe(Intent::Text);-});--test('intent detector blocks prohibited content', function () {- $detector = new IntentDetector;-- expect($detector->detect('Create porn content'))->toBe(Intent::Blocked);- expect($detector->detect('Generate nude images'))->toBe(Intent::Blocked);- expect($detector->detect('Write about cocaine'))->toBe(Intent::Blocked);- expect($detector->detect('Help me with terrorism'))->toBe(Intent::Blocked);- expect($detector->detect('Content about pedophilia'))->toBe(Intent::Blocked);- expect($detector->detect('Racist joke for my post'))->toBe(Intent::Blocked);- expect($detector->detect('How to murder someone'))->toBe(Intent::Blocked);- expect($detector->detect('Self-harm content'))->toBe(Intent::Blocked);-});--test('intent detector allows safe content', function () {- $detector = new IntentDetector;-- expect($detector->detect('Write a caption about my new product'))->toBe(Intent::Text);- expect($detector->detect('Create an image of a sunset'))->toBe(Intent::Image);- expect($detector->detect('Make a video about cooking'))->toBe(Intent::Video);-});diff --git a/tests/Feature/PostAssistantTest.php b/tests/Feature/PostAssistantTest.phpdeleted file mode 100644index 956a97f84..000000000--- a/tests/Feature/PostAssistantTest.php+++ /dev/null@@ -1,412 +0,0 @@-<?php--declare(strict_types=1);--use App\Ai\Agents\SocialMediaAssistant;-use App\Ai\Tools\AttachmentCollector;-use App\Enums\AiMessage\Status;-use App\Enums\UserWorkspace\Role;-use App\Events\Ai\AssistantMessageUpdated;-use App\Jobs\Ai\GenerateAssistantResponse;-use App\Models\AiMessage;-use App\Models\AiUsageLog;-use App\Models\Post;-use App\Models\User;-use App\Models\Workspace;-use App\Services\Ai\HumanizerService;-use App\Services\Ai\IntentDetector;-use Illuminate\Support\Facades\Bus;-use Illuminate\Support\Facades\Event;--beforeEach(function () {- $this->user = User::factory()->create([]);- $this->workspace = Workspace::factory()->create(['user_id' => $this->user->id]);- $this->workspace->members()->attach($this->user->id, ['role' => Role::Member->value]);- $this->user->update(['current_workspace_id' => $this->workspace->id]);-- $this->post = Post::factory()->create([- 'workspace_id' => $this->workspace->id,- 'user_id' => $this->user->id,- ]);-- app(AttachmentCollector::class)->clear();-});--test('index returns ai messages for a post', function () {- AiMessage::factory()->create([- 'post_id' => $this->post->id,- 'user_id' => $this->user->id,- 'role' => 'user',- 'content' => 'Write a caption',- ]);-- AiMessage::factory()->create([- 'post_id' => $this->post->id,- 'user_id' => null,- 'role' => 'assistant',- 'content' => 'Here is your caption!',- ]);-- $response = $this->actingAs($this->user)- ->getJson(route('app.posts.assistant.index', $this->post));-- $response->assertOk();- $response->assertJsonCount(2, 'messages');-});--test('index rejects access to post from other workspace', function () {- $otherUser = User::factory()->create([]);- $otherWorkspace = Workspace::factory()->create(['user_id' => $otherUser->id]);- $otherWorkspace->members()->attach($otherUser->id, ['role' => Role::Member->value]);- $otherUser->update(['current_workspace_id' => $otherWorkspace->id]);-- $response = $this->actingAs($otherUser)- ->getJson(route('app.posts.assistant.index', $this->post));-- $response->assertForbidden();-});--test('store creates user message and pending assistant placeholder, dispatches job', function () {- Bus::fake();-- $response = $this->actingAs($this->user)- ->postJson(route('app.posts.assistant.store', $this->post), [- 'body' => 'Write me a caption about summer vibes',- ]);-- $response->assertAccepted();- $response->assertJsonPath('user_message.content', 'Write me a caption about summer vibes');- $response->assertJsonPath('user_message.role', 'user');- $response->assertJsonPath('assistant_message.role', 'assistant');- $response->assertJsonPath('assistant_message.status', 'pending');- $response->assertJsonPath('assistant_message.content', '');-- $this->assertDatabaseHas('ai_messages', [- 'post_id' => $this->post->id,- 'role' => 'user',- 'content' => 'Write me a caption about summer vibes',- ]);-- $this->assertDatabaseHas('ai_messages', [- 'post_id' => $this->post->id,- 'role' => 'assistant',- 'status' => 'pending',- ]);-- Bus::assertDispatched(GenerateAssistantResponse::class, function (GenerateAssistantResponse $job) {- return $job->prompt === 'Write me a caption about summer vibes'- && $job->assistantMessage->post_id === $this->post->id;- });-});--test('store validates body is required', function () {- $response = $this->actingAs($this->user)- ->postJson(route('app.posts.assistant.store', $this->post), [- 'body' => '',- ]);-- $response->assertUnprocessable();- $response->assertJsonValidationErrors('body');-});--test('store rejects access to post from other workspace', function () {- $otherUser = User::factory()->create([]);- $otherWorkspace = Workspace::factory()->create(['user_id' => $otherUser->id]);- $otherWorkspace->members()->attach($otherUser->id, ['role' => Role::Member->value]);- $otherUser->update(['current_workspace_id' => $otherWorkspace->id]);-- $response = $this->actingAs($otherUser)- ->postJson(route('app.posts.assistant.store', $this->post), [- 'body' => 'Write me a caption',- ]);-- $response->assertForbidden();-});--test('store blocks prohibited content via IntentDetector and does not dispatch job', function () {- Bus::fake();-- $response = $this->actingAs($this->user)- ->postJson(route('app.posts.assistant.store', $this->post), [- 'body' => 'Create porn content for my post',- ]);-- $response->assertCreated();- $response->assertJsonPath('assistant_message.metadata.intent', 'blocked');- $response->assertJsonPath('assistant_message.metadata.error', true);- $response->assertJsonPath('assistant_message.status', 'completed');-- Bus::assertNotDispatched(GenerateAssistantResponse::class);-- $this->assertDatabaseHas('ai_messages', [- 'post_id' => $this->post->id,- 'role' => 'user',- 'content' => 'Create porn content for my post',- ]);-});--test('store blocks drug related content', function () {- Bus::fake();-- $response = $this->actingAs($this->user)- ->postJson(route('app.posts.assistant.store', $this->post), [- 'body' => 'Write about cocaine usage',- ]);-- $response->assertCreated();- $response->assertJsonPath('assistant_message.metadata.intent', 'blocked');-- Bus::assertNotDispatched(GenerateAssistantResponse::class);-});--test('GenerateAssistantResponse job populates message with agent response and broadcasts', function () {- Event::fake([AssistantMessageUpdated::class]);-- SocialMediaAssistant::fake([['message' => 'Here is a great caption!', 'quick_actions' => []]]);-- $assistantMessage = AiMessage::factory()->create([- 'post_id' => $this->post->id,- 'user_id' => null,- 'role' => 'assistant',- 'content' => '',- 'status' => Status::Pending,- ]);-- (new GenerateAssistantResponse(- assistantMessage: $assistantMessage,- prompt: 'Write a caption',- intent: 'text',- ))->handle(app(IntentDetector::class), app(AttachmentCollector::class), app(HumanizerService::class));-- $assistantMessage->refresh();- expect($assistantMessage->content)->toBe('Here is a great caption!');- expect($assistantMessage->status)->toBe(Status::Completed);- expect($assistantMessage->metadata['intent'] ?? null)->toBe('text');-- Event::assertDispatched(AssistantMessageUpdated::class, fn ($e) => $e->message->id === $assistantMessage->id);-});--test('GenerateAssistantResponse job surfaces attachments from collector', function () {- Event::fake([AssistantMessageUpdated::class]);-- $collector = app(AttachmentCollector::class);-- SocialMediaAssistant::fake(function () use ($collector) {- $collector->push([- 'id' => 'test-media-id',- 'path' => 'medias/test.png',- 'url' => 'https://example.com/medias/test.png',- 'mime_type' => 'image/png',- 'type' => 'image',- ]);-- return ['message' => 'Generated an image', 'quick_actions' => []];- });-- $assistantMessage = AiMessage::factory()->create([- 'post_id' => $this->post->id,- 'user_id' => null,- 'role' => 'assistant',- 'content' => '',- 'status' => Status::Pending,- ]);-- (new GenerateAssistantResponse(- assistantMessage: $assistantMessage,- prompt: 'Generate an image',- intent: 'image',- ))->handle(app(IntentDetector::class), $collector, app(HumanizerService::class));-- $assistantMessage->refresh();- expect($assistantMessage->attachments)->toHaveCount(1);- expect($assistantMessage->attachments[0]['id'])->toBe('test-media-id');- expect($assistantMessage->metadata['intent'] ?? null)->toBe('image');-});--test('GenerateAssistantResponse failed handler marks message failed and broadcasts', function () {- Event::fake([AssistantMessageUpdated::class]);-- $assistantMessage = AiMessage::factory()->create([- 'post_id' => $this->post->id,- 'user_id' => null,- 'role' => 'assistant',- 'content' => '',- 'status' => Status::Generating,- ]);-- $job = new GenerateAssistantResponse(- assistantMessage: $assistantMessage,- prompt: 'Anything',- intent: 'text',- );-- $job->failed(new RuntimeException('API quota exceeded'));-- $assistantMessage->refresh();- expect($assistantMessage->status)->toBe(Status::Failed);- expect($assistantMessage->content)->toBe('API quota exceeded');- expect($assistantMessage->error_message)->toBe('API quota exceeded');- expect($assistantMessage->metadata['error'] ?? null)->toBeTrue();-- Event::assertDispatched(AssistantMessageUpdated::class);-});--test('GenerateAssistantResponse job builds prompt with session state', function () {- Event::fake([AssistantMessageUpdated::class]);-- AiMessage::factory()->create([- 'post_id' => $this->post->id,- 'role' => 'assistant',- 'attachments' => [- ['id' => 'm1', 'type' => 'image'],- ['id' => 'm2', 'type' => 'image'],- ],- ]);-- AiUsageLog::factory()->image()->count(2)->create([- 'account_id' => $this->workspace->account_id,- 'workspace_id' => $this->workspace->id,- ]);-- $capturedPrompt = null;- SocialMediaAssistant::fake(function ($prompt) use (&$capturedPrompt) {- $capturedPrompt = (string) $prompt;-- return ['message' => 'ok', 'quick_actions' => []];- });-- $assistantMessage = AiMessage::factory()->create([- 'post_id' => $this->post->id,- 'user_id' => null,- 'role' => 'assistant',- 'content' => '',- 'status' => Status::Pending,- ]);-- (new GenerateAssistantResponse(- assistantMessage: $assistantMessage,- prompt: 'Write about coffee',- intent: 'text',- ))->handle(app(IntentDetector::class), app(AttachmentCollector::class), app(HumanizerService::class));-- expect($capturedPrompt)- ->toContain('Session state')- ->toContain('Images already generated in this conversation: 2')- ->toContain('Monthly quota remaining:');-});--test('GenerateAssistantResponse job runs humanizer when media is generated', function () {- Event::fake([AssistantMessageUpdated::class]);-- $collector = app(AttachmentCollector::class);-- SocialMediaAssistant::fake([function () use ($collector) {- $collector->push(['id' => 'img-1', 'path' => 'medias/t.png', 'url' => 'https://example.com/t.png', 'mime_type' => 'image/png', 'type' => 'image']);-- return ['message' => 'Original — text with em-dash.', 'quick_actions' => []];- }]);-- $humanizer = Mockery::mock(HumanizerService::class);- $humanizer->shouldReceive('humanize')- ->once()- ->with('Original — text with em-dash.', Mockery::any())- ->andReturn('Original, text without em-dash.');-- $assistantMessage = AiMessage::factory()->create([- 'post_id' => $this->post->id,- 'user_id' => null,- 'role' => 'assistant',- 'content' => '',- 'status' => Status::Pending,- ]);-- (new GenerateAssistantResponse(- assistantMessage: $assistantMessage,- prompt: 'Generate an image',- intent: 'image',- ))->handle(app(IntentDetector::class), $collector, $humanizer);-- $assistantMessage->refresh();- expect($assistantMessage->content)->toBe('Original, text without em-dash.');-});--test('GenerateAssistantResponse job skips humanizer for conversational turns without media', function () {- Event::fake([AssistantMessageUpdated::class]);-- SocialMediaAssistant::fake([['message' => 'Hey! What do you want to create?', 'quick_actions' => [['label' => 'Image', 'value' => 'image']]]]);-- $humanizer = Mockery::mock(HumanizerService::class);- $humanizer->shouldNotReceive('humanize');-- $assistantMessage = AiMessage::factory()->create([- 'post_id' => $this->post->id,- 'user_id' => null,- 'role' => 'assistant',- 'content' => '',- 'status' => Status::Pending,- ]);-- (new GenerateAssistantResponse(- assistantMessage: $assistantMessage,- prompt: 'Hello',- intent: 'text',- ))->handle(app(IntentDetector::class), app(AttachmentCollector::class), $humanizer);-- $assistantMessage->refresh();- expect($assistantMessage->content)->toBe('Hey! What do you want to create?');-});--test('GenerateAssistantResponse persists quick_actions in message metadata', function () {- Event::fake([AssistantMessageUpdated::class]);-- SocialMediaAssistant::fake([[- 'message' => 'What format do you want?',- 'quick_actions' => [- ['label' => '📷 Image', 'value' => 'image'],- ['label' => '🎬 Video', 'value' => 'video'],- ],- ]]);-- $assistantMessage = AiMessage::factory()->create([- 'post_id' => $this->post->id,- 'user_id' => null,- 'role' => 'assistant',- 'content' => '',- 'status' => Status::Pending,- ]);-- (new GenerateAssistantResponse(- assistantMessage: $assistantMessage,- prompt: 'Create a post',- intent: 'text',- ))->handle(app(IntentDetector::class), app(AttachmentCollector::class), app(HumanizerService::class));-- $assistantMessage->refresh();- expect($assistantMessage->content)->toBe('What format do you want?');- expect($assistantMessage->metadata['quick_actions'] ?? null)->toBeArray()->toHaveCount(2);- expect($assistantMessage->metadata['quick_actions'][0]['label'])->toBe('📷 Image');- expect($assistantMessage->metadata['quick_actions'][0]['value'])->toBe('image');-});--test('GenerateAssistantResponse handles empty quick_actions gracefully', function () {- Event::fake([AssistantMessageUpdated::class]);-- SocialMediaAssistant::fake([['message' => 'Polished caption.', 'quick_actions' => []]]);-- $assistantMessage = AiMessage::factory()->create([- 'post_id' => $this->post->id,- 'user_id' => null,- 'role' => 'assistant',- 'content' => '',- 'status' => Status::Pending,- ]);-- (new GenerateAssistantResponse(- assistantMessage: $assistantMessage,- prompt: 'Polish my caption',- intent: 'text',- ))->handle(app(IntentDetector::class), app(AttachmentCollector::class), app(HumanizerService::class));-- $assistantMessage->refresh();- expect($assistantMessage->metadata['quick_actions'] ?? null)->toBe([]);-});diff --git a/tests/Feature/PostControllerTest.php b/tests/Feature/PostControllerTest.phpindex 512ce55b7..5dad4fdaf 100644--- a/tests/Feature/PostControllerTest.php+++ b/tests/Feature/PostControllerTest.php@@ -87,6 +87,43 @@ test('calendar supports month view', function () {);});+// Create tests+test('create requires authentication', function () {+ $response = $this->get(route('app.posts.create'));++ $response->assertRedirect(route('login'));+});++test('create renders the wizard page', function () {+ $response = $this->actingAs($this->user)->get(route('app.posts.create'));++ $response->assertOk();+ $response->assertInertia(fn ($page) => $page+ ->component('posts/Create', false)+ ->where('date', null)+ ->has('socialAccounts', 1)+ ->where('socialAccounts.0.id', $this->socialAccount->id)+ );+});++test('create forwards date query param to the page', function () {+ $response = $this->actingAs($this->user)->get(route('app.posts.create', ['date' => '2026-06-01']));++ $response->assertOk();+ $response->assertInertia(fn ($page) => $page+ ->component('posts/Create', false)+ ->where('date', '2026-06-01')+ );+});++test('create redirects to workspaces.create when user has no workspace', function () {+ $newUser = User::factory()->create();++ $response = $this->actingAs($newUser)->get(route('app.posts.create'));++ $response->assertRedirect(route('app.workspaces.create'));+});+// Store teststest('store post requires authentication', function () {$response = $this->post(route('app.posts.store'));diff --git a/tests/Feature/PostTemplateControllerTest.php b/tests/Feature/PostTemplateControllerTest.phpnew file mode 100644index 000000000..81729ab10--- /dev/null+++ b/tests/Feature/PostTemplateControllerTest.php@@ -0,0 +1,164 @@+<?php++declare(strict_types=1);++use App\Enums\UserWorkspace\Role;+use App\Models\Account;+use App\Models\PostTemplate;+use App\Models\SocialAccount;+use App\Models\User;+use App\Models\Workspace;+use Illuminate\Foundation\Testing\RefreshDatabase;+use Illuminate\Support\Facades\Http;+use Illuminate\Support\Facades\Storage;++uses(RefreshDatabase::class);++beforeEach(function () {+ Storage::fake();++ $this->account = Account::factory()->create();+ $this->user = User::factory()->create([+ 'account_id' => $this->account->id,+ ]);+ $this->account->update(['owner_id' => $this->user->id]);+ $this->workspace = Workspace::factory()->create([+ 'account_id' => $this->account->id,+ 'user_id' => $this->user->id,+ ]);+ $this->workspace->members()->attach($this->user->id, ['role' => Role::Member->value]);+ $this->user->update(['current_workspace_id' => $this->workspace->id]);++ $this->account->subscriptions()->create([+ 'type' => Account::SUBSCRIPTION_NAME,+ 'stripe_id' => 'sub_test_'.fake()->uuid(),+ 'stripe_status' => 'active',+ 'stripe_price' => 'price_123',+ ]);+});++test('index returns global templates', function () {+ PostTemplate::factory()->count(3)->create();++ $this->actingAs($this->user)+ ->getJson(route('app.post-templates.index'))+ ->assertOk()+ ->assertJsonCount(3, 'templates');+});++test('index requires authentication', function () {+ $this->getJson(route('app.post-templates.index'))+ ->assertUnauthorized();+});++test('index filters by platform', function () {+ PostTemplate::factory()->create(['platform' => 'instagram_carousel']);+ PostTemplate::factory()->create(['platform' => 'linkedin_post']);++ $this->actingAs($this->user)+ ->getJson(route('app.post-templates.index', ['platform' => 'instagram_carousel']))+ ->assertOk()+ ->assertJsonCount(1, 'templates');+});++test('index filters by category', function () {+ PostTemplate::factory()->create(['category' => 'product_launch']);+ PostTemplate::factory()->create(['category' => 'educational']);+ PostTemplate::factory()->create(['category' => 'educational']);++ $this->actingAs($this->user)+ ->getJson(route('app.post-templates.index', ['category' => 'educational']))+ ->assertOk()+ ->assertJsonCount(2, 'templates');+});++test('apply creates post and returns post_id and redirect_url', function () {+ Http::fake(['api.unsplash.com/*' => Http::response(['results' => []])]);++ $template = PostTemplate::factory()->create([+ 'content' => 'Hello {{brand_name}}',+ 'slides' => null,+ ]);++ $response = $this->actingAs($this->user)+ ->postJson(route('app.post-templates.apply', $template))+ ->assertOk();++ expect($response->json('post_id'))->toBeString();+ expect($response->json('redirect_url'))->toContain('edit');+});++test('apply interpolates brand_name in content', function () {+ Http::fake(['api.unsplash.com/*' => Http::response(['results' => []])]);++ $this->workspace->update(['name' => 'Acme Corp']);++ $template = PostTemplate::factory()->create([+ 'content' => 'Welcome to {{brand_name}}!',+ 'slides' => null,+ ]);++ $this->actingAs($this->user)+ ->postJson(route('app.post-templates.apply', $template))+ ->assertOk();++ $this->assertDatabaseHas('posts', [+ 'workspace_id' => $this->workspace->id,+ 'content' => 'Welcome to Acme Corp!',+ ]);+});++test('apply rejects cross-workspace social_account_id', function () {+ $otherAccount = Account::factory()->create();+ $otherUser = User::factory()->create(['account_id' => $otherAccount->id]);+ $otherAccount->update(['owner_id' => $otherUser->id]);+ $otherWorkspace = Workspace::factory()->create([+ 'account_id' => $otherAccount->id,+ 'user_id' => $otherUser->id,+ ]);++ $foreignSocialAccount = SocialAccount::factory()->create([+ 'workspace_id' => $otherWorkspace->id,+ ]);++ $template = PostTemplate::factory()->create(['slides' => null]);++ $this->actingAs($this->user)+ ->postJson(route('app.post-templates.apply', $template), [+ 'social_account_id' => $foreignSocialAccount->id,+ ])+ ->assertForbidden();+});++test('apply requires authentication', function () {+ $template = PostTemplate::factory()->create();++ $this->postJson(route('app.post-templates.apply', $template))+ ->assertUnauthorized();+});++test('apply with slides creates post even when image rendering fails', function () {+ // Unsplash returns no results → generator returns null → no media attached, post still created.+ Http::fake(['api.unsplash.com/*' => Http::response(['results' => []])]);++ $socialAccount = SocialAccount::factory()->create([+ 'workspace_id' => $this->workspace->id,+ ]);++ $template = PostTemplate::factory()->create([+ 'content' => 'Test post',+ 'slides' => [+ ['title' => 'Slide 1', 'body' => 'Body 1', 'image_keywords' => ['test']],+ ],+ 'image_count' => 1,+ ]);++ $response = $this->actingAs($this->user)+ ->postJson(route('app.post-templates.apply', $template), [+ 'social_account_id' => $socialAccount->id,+ ])+ ->assertOk();++ expect($response->json('post_id'))->toBeString();+ expect($response->json('redirect_url'))->toContain('edit');+});diff --git a/tests/Feature/WorkspaceControllerTest.php b/tests/Feature/WorkspaceControllerTest.phpindex 1adeb4e86..08ea29702 100644--- a/tests/Feature/WorkspaceControllerTest.php+++ b/tests/Feature/WorkspaceControllerTest.php@@ -210,6 +210,7 @@ test('update workspace settings updates workspace and redirects back', function->from(route('app.workspace.brand'))->put(route('app.workspace.settings.update'), ['name' => 'Updated Name',+ 'brand_font' => 'Inter',]);$response->assertRedirect(route('app.workspace.brand'));diff --git a/tests/Unit/Ai/Agents/PostContentGeneratorTest.php b/tests/Unit/Ai/Agents/PostContentGeneratorTest.phpnew file mode 100644index 000000000..9165488a2--- /dev/null+++ b/tests/Unit/Ai/Agents/PostContentGeneratorTest.php@@ -0,0 +1,118 @@+<?php++declare(strict_types=1);++use App\Ai\Agents\PostContentGenerator;+use App\Models\PostTemplate;+use App\Models\Workspace;+use Illuminate\Foundation\Testing\RefreshDatabase;+use Illuminate\JsonSchema\JsonSchemaTypeFactory;++uses(RefreshDatabase::class);++test('instructions render brand context', function () {+ $workspace = Workspace::factory()->make([+ 'name' => 'TryPost',+ 'brand_description' => 'Social media scheduling tool',+ 'brand_tone' => 'friendly',+ 'brand_voice_notes' => 'Use everyday language, no jargon.',+ 'content_language' => 'en',+ ]);++ $agent = new PostContentGenerator(workspace: $workspace);+ $instructions = $agent->instructions();++ expect($instructions)->toContain('TryPost');+ expect($instructions)->toContain('friendly');+ expect($instructions)->toContain('everyday language');+ expect($instructions)->toContain('en');+});++test('instructions include current_content when provided', function () {+ $workspace = Workspace::factory()->make();+ $agent = new PostContentGenerator(+ workspace: $workspace,+ currentContent: 'Hello world',+ );++ expect($agent->instructions())->toContain('Hello world');+});++test('instructions omit current_content when not provided', function () {+ $workspace = Workspace::factory()->make();+ $agent = new PostContentGenerator(workspace: $workspace);++ expect($agent->instructions())->not->toContain('user already has this content');+});++test('single format schema returns content and image_keywords', function () {+ $workspace = Workspace::factory()->make();+ $agent = new PostContentGenerator(workspace: $workspace, format: 'single');++ $schemaFactory = new JsonSchemaTypeFactory;+ $schema = $agent->schema($schemaFactory);++ expect($schema)->toHaveKey('content');+ expect($schema)->toHaveKey('image_keywords');+ expect($schema)->not->toHaveKey('slides');+ expect($schema)->not->toHaveKey('caption');+});++test('carousel format schema returns caption and slides', function () {+ $workspace = Workspace::factory()->make();+ $agent = new PostContentGenerator(workspace: $workspace, format: 'carousel', slideCount: 5);++ $schemaFactory = new JsonSchemaTypeFactory;+ $schema = $agent->schema($schemaFactory);++ expect($schema)->toHaveKey('caption');+ expect($schema)->toHaveKey('slides');+ expect($schema)->not->toHaveKey('content');+});++test('carousel instructions mention slide count', function () {+ $workspace = Workspace::factory()->make();+ $agent = new PostContentGenerator(workspace: $workspace, format: 'carousel', slideCount: 5);++ $instructions = $agent->instructions();++ expect($instructions)->toContain('5');+ expect($instructions)->toContain('slides');+});++test('single instructions mention image_keywords', function () {+ $workspace = Workspace::factory()->make();+ $agent = new PostContentGenerator(workspace: $workspace, format: 'single');++ $instructions = $agent->instructions();++ expect($instructions)->toContain('image_keywords');+});++test('instructions include examples when platform context provided and templates exist', function () {+ PostTemplate::factory()->create([+ 'platform' => 'instagram_carousel',+ 'name' => 'Test template',+ 'content' => 'EXAMPLE CONTENT MARKER',+ ]);++ $agent = new PostContentGenerator(+ workspace: Workspace::factory()->make(),+ format: 'carousel',+ slideCount: 3,+ platformContext: 'instagram_carousel',+ );++ expect($agent->instructions())->toContain('EXAMPLE CONTENT MARKER');+});++test('instructions do not include examples section when platform context is null', function () {+ PostTemplate::factory()->count(3)->create(['platform' => 'instagram_carousel']);++ $agent = new PostContentGenerator(+ workspace: Workspace::factory()->make(),+ format: 'single',+ );++ expect($agent->instructions())->not->toContain('curated library');+});diff --git a/tests/Unit/Ai/Agents/PostContentReviewerTest.php b/tests/Unit/Ai/Agents/PostContentReviewerTest.phpnew file mode 100644index 000000000..2fdc4b11a--- /dev/null+++ b/tests/Unit/Ai/Agents/PostContentReviewerTest.php@@ -0,0 +1,32 @@+<?php++declare(strict_types=1);++use App\Ai\Agents\PostContentReviewer;+use App\Models\Workspace;+use Illuminate\JsonSchema\JsonSchemaTypeFactory;++test('instructions render brand context and language', function () {+ $workspace = Workspace::factory()->make([+ 'name' => 'TryPost',+ 'brand_tone' => 'friendly',+ 'brand_voice_notes' => 'Use plain English.',+ 'content_language' => 'pt-BR',+ ]);++ $agent = new PostContentReviewer(workspace: $workspace);+ $instructions = $agent->instructions();++ expect($instructions)->toContain('TryPost');+ expect($instructions)->toContain('friendly');+ expect($instructions)->toContain('plain English');+ expect($instructions)->toContain('pt-BR');+});++test('schema requires suggestions array with original/suggestion/reason', function () {+ $workspace = Workspace::factory()->make();+ $agent = new PostContentReviewer(workspace: $workspace);++ $schema = $agent->schema(new JsonSchemaTypeFactory);+ expect($schema)->toHaveKey('suggestions');+});diff --git a/tests/Unit/Services/Ai/TemplateContextResolverTest.php b/tests/Unit/Services/Ai/TemplateContextResolverTest.phpnew file mode 100644index 000000000..308694532--- /dev/null+++ b/tests/Unit/Services/Ai/TemplateContextResolverTest.php@@ -0,0 +1,45 @@+<?php++declare(strict_types=1);++use App\Models\PostTemplate;+use App\Services\Ai\TemplateContextResolver;+use Illuminate\Foundation\Testing\RefreshDatabase;++uses(RefreshDatabase::class);++test('returns templates filtered by platform', function () {+ PostTemplate::factory()->count(3)->create(['platform' => 'instagram_carousel']);+ PostTemplate::factory()->count(2)->create(['platform' => 'linkedin_post']);++ $resolver = new TemplateContextResolver;+ $result = $resolver->relevantFor('instagram_carousel', 5);++ expect($result)->toHaveCount(3);+ expect($result->every(fn ($t) => $t->platform === 'instagram_carousel'))->toBeTrue();+});++test('respects limit', function () {+ PostTemplate::factory()->count(10)->create(['platform' => 'x_post']);++ $resolver = new TemplateContextResolver;+ $result = $resolver->relevantFor('x_post', 3);++ expect($result)->toHaveCount(3);+});++test('returns empty collection when no templates exist', function () {+ $resolver = new TemplateContextResolver;+ $result = $resolver->relevantFor('instagram_feed', 3);++ expect($result)->toHaveCount(0);+});++test('null platform returns all templates capped to limit', function () {+ PostTemplate::factory()->count(5)->create();++ $resolver = new TemplateContextResolver;+ $result = $resolver->relevantFor(null, 3);++ expect($result)->toHaveCount(3);+});diff --git a/tests/Unit/Services/Image/BrandColorMapperTest.php b/tests/Unit/Services/Image/BrandColorMapperTest.phpnew file mode 100644index 000000000..9636a525a--- /dev/null+++ b/tests/Unit/Services/Image/BrandColorMapperTest.php@@ -0,0 +1,62 @@+<?php++declare(strict_types=1);++use App\Models\Workspace;+use App\Services\Image\BrandColorMapper;++test('maps primary colors to expected buckets', function (string $hex, string $expected) {+ expect((new BrandColorMapper)->fromHex($hex))->toBe($expected);+})->with([+ ['#ff0000', 'red'],+ ['#00ff00', 'green'],+ ['#0000ff', 'blue'],+ ['#ffff00', 'yellow'],+ ['#ff00ff', 'magenta'],+ ['#00ffff', 'teal'],+ ['#ff8000', 'orange'],+ ['#8000ff', 'purple'],+ ['#000000', 'black'],+ ['#ffffff', 'white'],+ ['#808080', 'black_and_white'],+]);++test('returns null on invalid hex', function () {+ $mapper = new BrandColorMapper;+ expect($mapper->fromHex('xyz'))->toBeNull();+ expect($mapper->fromHex(''))->toBeNull();+ expect($mapper->fromHex('#abc'))->toBeNull();+});++test('fromWorkspace uses brand_color when available', function () {+ $workspace = Workspace::factory()->make([+ 'brand_color' => '#ff0000',+ 'background_color' => '#0000ff',+ ]);++ $bucket = (new BrandColorMapper)->fromWorkspace($workspace);++ expect($bucket)->toBe('red');+});++test('fromWorkspace falls back to background_color when brand_color is null', function () {+ $workspace = Workspace::factory()->make([+ 'brand_color' => null,+ 'background_color' => '#0000ff',+ ]);++ $bucket = (new BrandColorMapper)->fromWorkspace($workspace);++ expect($bucket)->toBe('blue');+});++test('fromWorkspace returns null when both colors are null', function () {+ $workspace = Workspace::factory()->make([+ 'brand_color' => null,+ 'background_color' => null,+ ]);++ $bucket = (new BrandColorMapper)->fromWorkspace($workspace);++ expect($bucket)->toBeNull();+});diff --git a/tests/Unit/Services/Image/TemplateImageGeneratorTest.php b/tests/Unit/Services/Image/TemplateImageGeneratorTest.phpnew file mode 100644index 000000000..37ad926d5--- /dev/null+++ b/tests/Unit/Services/Image/TemplateImageGeneratorTest.php@@ -0,0 +1,114 @@+<?php++declare(strict_types=1);++use App\Models\SocialAccount;+use App\Models\Workspace;+use App\Services\Image\BrandColorMapper;+use App\Services\Image\TemplateImageGenerator;+use App\Services\Unsplash\UnsplashClient;+use Illuminate\Support\Facades\Cache;+use Illuminate\Support\Facades\Http;+use Illuminate\Support\Facades\Storage;++beforeEach(function () {+ Storage::fake();+ Cache::flush();+ config()->set('services.unsplash.access_key', 'test-key');+});++test('returns null when Unsplash returns no photos', function () {+ Http::fake(['api.unsplash.com/*' => Http::response(['results' => []])]);++ $service = new TemplateImageGenerator(new UnsplashClient, new BrandColorMapper);+ $result = $service->render(+ template: 'A',+ workspace: Workspace::factory()->make(),+ socialAccount: SocialAccount::factory()->make(['username' => 'testuser', 'display_name' => 'Test User']),+ title: 'Hello',+ body: 'World',+ imageKeywords: ['kitchen'],+ );++ expect($result)->toBeNull();+});++test('returns null when Unsplash access key is not configured', function () {+ config()->set('services.unsplash.access_key', null);+ Http::fake();++ $service = new TemplateImageGenerator(new UnsplashClient, new BrandColorMapper);+ $result = $service->render(+ template: 'A',+ workspace: Workspace::factory()->make(),+ socialAccount: SocialAccount::factory()->make(),+ title: 'Hello',+ body: 'World',+ imageKeywords: ['kitchen'],+ );++ expect($result)->toBeNull();+});++test('render returns a storage path when given a valid Unsplash photo', function () {+ // Serve a tiny 1x1 transparent PNG as the "photo" to avoid real HTTP calls+ $minimalPng = base64_decode('iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==');++ Http::fake([+ 'api.unsplash.com/*' => Http::response([+ 'results' => [[+ 'id' => 'test123',+ 'urls' => ['regular' => 'https://images.unsplash.com/test123'],+ 'alt_description' => 'test image',+ ]],+ ]),+ 'images.unsplash.com/*' => Http::response($minimalPng, 200, ['Content-Type' => 'image/png']),+ ]);++ // We need to use a real HTTP response for the image download since file_get_contents+ // is used internally. Skip if fonts are missing — architecture is tested, rendering is best-effort.+ if (! file_exists(base_path('resources/fonts/Inter-Bold.ttf'))) {+ $this->markTestSkipped('Inter fonts not available — skipping full render test.');+ }++ $service = new TemplateImageGenerator(new UnsplashClient, new BrandColorMapper);+ $result = $service->render(+ template: 'A',+ workspace: Workspace::factory()->make([+ 'brand_color' => '#0000ff',+ 'background_color' => '#ffffff',+ 'text_color' => '#000000',+ ]),+ socialAccount: SocialAccount::factory()->make([+ 'username' => 'testuser',+ 'display_name' => 'Test User',+ ]),+ title: 'Hello World',+ body: 'This is a test slide body.',+ imageKeywords: ['technology', 'office'],+ );++ // Result may be null if GD font rendering fails in test env — that's acceptable+ if ($result !== null) {+ expect($result)->toStartWith('ai-images/')+ ->toEndWith('.webp');+ } else {+ expect($result)->toBeNull(); // graceful failure is acceptable+ }+})->skip(fn () => ! extension_loaded('gd'), 'GD extension required');++test('uses brand color to filter Unsplash search', function () {+ Http::fake(['api.unsplash.com/*' => Http::response(['results' => []])]);++ $service = new TemplateImageGenerator(new UnsplashClient, new BrandColorMapper);+ $service->render(+ template: 'B',+ workspace: Workspace::factory()->make(['brand_color' => '#ff0000']),+ socialAccount: SocialAccount::factory()->make(),+ title: 'Test',+ body: 'Body',+ imageKeywords: ['food'],+ );++ Http::assertSent(fn ($request) => str_contains($request->url(), 'color=red'));+});diff --git a/tests/Unit/Services/Unsplash/UnsplashClientTest.php b/tests/Unit/Services/Unsplash/UnsplashClientTest.phpnew file mode 100644index 000000000..48a47dd04--- /dev/null+++ b/tests/Unit/Services/Unsplash/UnsplashClientTest.php@@ -0,0 +1,102 @@+<?php++declare(strict_types=1);++use App\Services\Unsplash\UnsplashClient;+use Illuminate\Support\Facades\Cache;+use Illuminate\Support\Facades\Http;++beforeEach(function () {+ config()->set('services.unsplash.access_key', 'test-key');+ Cache::flush();+});++test('searchPhoto returns null when access key missing', function () {+ config()->set('services.unsplash.access_key', null);++ expect((new UnsplashClient)->searchPhoto(['kitchen']))->toBeNull();+});++test('searchPhoto returns null when keywords are empty', function () {+ Http::fake();++ expect((new UnsplashClient)->searchPhoto([]))->toBeNull();++ Http::assertNothingSent();+});++test('searchPhoto returns formatted photo on success', function () {+ Http::fake(['api.unsplash.com/*' => Http::response([+ 'results' => [[+ 'id' => 'abc',+ 'urls' => ['regular' => 'https://images.unsplash.com/abc'],+ 'alt_description' => 'a kitchen',+ ]],+ ])]);++ $result = (new UnsplashClient)->searchPhoto(['kitchen']);++ expect($result)->toMatchArray([+ 'id' => 'abc',+ 'url' => 'https://images.unsplash.com/abc',+ 'alt_description' => 'a kitchen',+ ]);+});++test('searchPhoto returns null when Unsplash API returns failure status', function () {+ Http::fake(['api.unsplash.com/*' => Http::response([], 500)]);++ $result = (new UnsplashClient)->searchPhoto(['kitchen']);++ expect($result)->toBeNull();+});++test('searchPhoto falls back when color search returns empty results', function () {+ Http::fake([+ 'api.unsplash.com/search/photos*' => Http::sequence()+ ->push(['results' => []])+ ->push([+ 'results' => [[+ 'id' => 'fallback',+ 'urls' => ['regular' => 'https://images.unsplash.com/fallback'],+ 'alt_description' => null,+ ]],+ ]),+ ]);++ $result = (new UnsplashClient)->searchPhoto(['kitchen'], 'portrait', 'blue');++ expect($result)->not->toBeNull();+ expect($result['id'])->toBe('fallback');+});++test('searchPhoto caches results to avoid duplicate requests', function () {+ Http::fake(['api.unsplash.com/*' => Http::response([+ 'results' => [[+ 'id' => 'cached',+ 'urls' => ['regular' => 'https://images.unsplash.com/cached'],+ 'alt_description' => null,+ ]],+ ])]);++ $client = new UnsplashClient;+ $first = $client->searchPhoto(['coffee']);+ $second = $client->searchPhoto(['coffee']);++ expect($first)->toMatchArray($second);+ Http::assertSentCount(1);+});++test('searchPhoto sends color parameter when colorBucket is provided', function () {+ Http::fake(['api.unsplash.com/*' => Http::response([+ 'results' => [[+ 'id' => 'colored',+ 'urls' => ['regular' => 'https://images.unsplash.com/colored'],+ 'alt_description' => null,+ ]],+ ])]);++ (new UnsplashClient)->searchPhoto(['office'], 'portrait', 'blue');++ Http::assertSent(fn ($request) => str_contains($request->url(), 'color=blue'));+});