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
Add more content languages
John Ralliseb0ec6fb241a
diff --git a/app/Http/Requests/App/Workspace/StoreWorkspaceRequest.php b/app/Http/Requests/App/Workspace/StoreWorkspaceRequest.phpindex 2a6711a80..59826babb 100644--- a/app/Http/Requests/App/Workspace/StoreWorkspaceRequest.php+++ b/app/Http/Requests/App/Workspace/StoreWorkspaceRequest.php@@ -32,7 +32,7 @@ class StoreWorkspaceRequest extends FormRequest'text_color' => $hex,'brand_font' => ['sometimes', 'string', Rule::in(BrandFont::values())],'image_style' => ['sometimes', 'string', Rule::in(ImageStyle::values())],- 'content_language' => ['nullable', 'string', 'in:en,pt-BR,es'],+ 'content_language' => ['nullable', 'string', 'in:en,pt-BR,es,fr,de,it,nl,pl,el,ja,ko,zh,ru,tr,ar'],'logo_url' => ['nullable', 'url', 'max:1024'],];}diff --git a/app/Http/Requests/App/Workspace/UpdateWorkspaceRequest.php b/app/Http/Requests/App/Workspace/UpdateWorkspaceRequest.phpindex f2b6cc777..476e63cee 100644--- a/app/Http/Requests/App/Workspace/UpdateWorkspaceRequest.php+++ b/app/Http/Requests/App/Workspace/UpdateWorkspaceRequest.php@@ -32,7 +32,7 @@ class UpdateWorkspaceRequest extends FormRequest'text_color' => $hex,'brand_font' => ['sometimes', 'required', 'string', Rule::in(BrandFont::values())],'image_style' => ['sometimes', 'required', 'string', Rule::in(ImageStyle::values())],- 'content_language' => ['sometimes', 'string', 'in:en,pt-BR,es'],+ 'content_language' => ['sometimes', 'string', 'in:en,pt-BR,es,fr,de,it,nl,pl,el,ja,ko,zh,ru,tr,ar'],];}diff --git a/app/Services/Brand/HomepageMetaExtractor.php b/app/Services/Brand/HomepageMetaExtractor.phpindex 55d52c857..5291330ec 100644--- a/app/Services/Brand/HomepageMetaExtractor.php+++ b/app/Services/Brand/HomepageMetaExtractor.php@@ -297,6 +297,18 @@ final class HomepageMetaExtractorstr_starts_with($lower, 'pt') => 'pt-BR',str_starts_with($lower, 'es') => 'es',str_starts_with($lower, 'en') => 'en',+ str_starts_with($lower, 'fr') => 'fr',+ str_starts_with($lower, 'de') => 'de',+ str_starts_with($lower, 'it') => 'it',+ str_starts_with($lower, 'nl') => 'nl',+ str_starts_with($lower, 'pl') => 'pl',+ str_starts_with($lower, 'el') => 'el',+ str_starts_with($lower, 'ja') => 'ja',+ str_starts_with($lower, 'ko') => 'ko',+ str_starts_with($lower, 'zh') => 'zh',+ str_starts_with($lower, 'ru') => 'ru',+ str_starts_with($lower, 'tr') => 'tr',+ str_starts_with($lower, 'ar') => 'ar',default => null,};}diff --git a/resources/js/components/BrandForm.vue b/resources/js/components/BrandForm.vueindex 0b82368ff..a46a06d9f 100644--- a/resources/js/components/BrandForm.vue+++ b/resources/js/components/BrandForm.vue@@ -100,6 +100,18 @@ const languageLabel = computed(() => {en: 'English','pt-BR': 'Português (Brasil)',es: 'Español',+ fr: 'Français',+ de: 'Deutsch',+ it: 'Italiano',+ nl: 'Nederlandse',+ pl: 'Polski',+ el: 'Ελληνικά',+ ja: '日本語',+ ko: '한국어',+ zh: '现代标准汉语',+ ru: 'Русский',+ tr: 'Türkçe',+ ar: 'العربية',};return map[props.fields.content_language] ?? '';});@@ -200,6 +212,18 @@ const runAutofill = async () => {<SelectItem value="en">English</SelectItem><SelectItem value="pt-BR">Português (Brasil)</SelectItem><SelectItem value="es">Español</SelectItem>+ <SelectItem value="fr">Français</SelectItem>+ <SelectItem value="de">Deutsch</SelectItem>+ <SelectItem value="it">Italiano</SelectItem>+ <SelectItem value="nl">Nederlandse</SelectItem>+ <SelectItem value="pl">Polski</SelectItem>+ <SelectItem value="el">Ελληνικά</SelectItem>+ <SelectItem value="ja">日本語</SelectItem>+ <SelectItem value="ko">한국어</SelectItem>+ <SelectItem value="zh">现代标准汉语</SelectItem>+ <SelectItem value="ru">Русский</SelectItem>+ <SelectItem value="tr">Türkçe</SelectItem>+ <SelectItem value="ar">العربية</SelectItem></SelectContent></Select><p class="text-xs font-medium text-foreground/60">