/api/v1/projects, /members and /services: create, list, show, update, delete and restore, with the panel's own rules — so the MCP server can load the collective's work, people and offer without anyone retyping them into forms. The MCP server picks the tools up from openapi.yaml. - Relations travel as ids and are replaced whole when sent, left alone when not: a project's technology_ids, service_ids and members with each one's role; a member's technology_ids; a service's technology_ids and project_ids. Record and relations are saved in one transaction. - Publishing stays a permission of its own. Without projects.publish or services.publish, published_at, unpublish_at and is_published are refused — the fields the panel disables for the same people. - MemberPolicy still lets someone edit their own profile. - Uploads accept `for: projects` and `for: members`, landing where the panel's own upload fields put them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
49 lines
1.8 KiB
PHP
49 lines
1.8 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
return [
|
|
'translatable' => [
|
|
'type' => 'El camp :attribute ha de ser un text o un objecte de traduccions (idioma => text).',
|
|
'unsupported_locale' => 'L\'idioma «:locale» no està suportat a :attribute. Idiomes disponibles: :supported.',
|
|
'max' => 'La traducció de :attribute en «:locale» no pot superar els :max caràcters.',
|
|
'default_required' => 'Falta la traducció de :attribute en l\'idioma principal («:locale»).',
|
|
],
|
|
|
|
'slug' => [
|
|
'unique' => 'El slug «:slug» ja està en ús en l\'idioma «:locale».',
|
|
],
|
|
|
|
'applications' => [
|
|
'attributes' => [
|
|
'name' => 'nom',
|
|
'email' => 'correu',
|
|
'message' => 'missatge',
|
|
'organisation' => 'entitat',
|
|
'hours_per_week' => 'hores per setmana',
|
|
'consent' => 'consentiment',
|
|
],
|
|
],
|
|
|
|
'pages' => [
|
|
'cannot_publish' => 'No tens permís per publicar pàgines.',
|
|
],
|
|
|
|
'publication' => [
|
|
'forbidden' => 'No tens permís per publicar ni despublicar això.',
|
|
],
|
|
|
|
'media' => [
|
|
'not_an_image' => 'El fitxer no és una imatge JPEG, PNG, WebP, GIF, AVIF o SVG.',
|
|
'remote' => [
|
|
'https_only' => 'La URL de la imatge ha de començar per https://.',
|
|
'unresolvable' => 'No s\'ha pogut resoldre el domini de la URL.',
|
|
'private' => 'La URL apunta a una adreça privada o reservada: només es descarreguen imatges d\'adreces públiques.',
|
|
'unreachable' => 'No s\'ha pogut connectar amb la URL.',
|
|
'redirect' => 'La URL redirigeix a una altra adreça. Fes servir l\'adreça final de la imatge.',
|
|
'status' => 'La URL ha respost :status en lloc de la imatge.',
|
|
'too_large' => 'La imatge supera el màxim de :max KB.',
|
|
],
|
|
],
|
|
];
|