diff --git a/packages/forms/resources/lang/ca/fields.php b/packages/forms/resources/lang/ca/fields.php new file mode 100644 index 0000000000..30050e79d7 --- /dev/null +++ b/packages/forms/resources/lang/ca/fields.php @@ -0,0 +1,88 @@ + [ + + 'abbreviatedDays' => [ + 'friday' => 'dv', + 'monday' => 'dl', + 'saturday' => 'ds', + 'sunday' => 'dg', + 'thursday' => 'dj', + 'tuesday' => 'dt', + 'wednesday' => 'dc', + ], + + 'months' => [ + 'april' => 'Abril', + 'august' => 'Agost', + 'december' => 'Desembre', + 'february' => 'Febrer', + 'january' => 'Gener', + 'july' => 'Juliol', + 'june' => 'Juny', + 'march' => 'Març', + 'may' => 'Maig', + 'november' => 'Novembre', + 'october' => 'Octubre', + 'september' => 'Setembre', + ], + + ], + + 'multiSelect' => [ + 'emptyOptionsMessage' => 'No hi ha opcions disponibles', + 'noSearchResultsMessage' => 'No s\'ha trobat cap opció que coincideixi amb la vostra cerca.', + 'placeholder' => 'Trieu una opció', + ], + + 'richEditor' => [ + + 'dialogs' => [ + + 'link' => [ + + 'buttons' => [ + 'link' => 'Enllaç', + 'unlink' => 'Elimina l\'enllaç', + ], + + 'label' => 'URL', + + 'placeholder' => 'Escriu una adreça URL', + + ], + + ], + + 'toolbarButtons' => [ + 'attachFiles' => 'Adjuntar fitxers', + 'bold' => 'Negreta', + 'bullet' => 'Bullets', + 'code' => 'Codi', + 'heading' => 'Capçaleres', + 'italic' => 'Cursiva', + 'link' => 'Enllaç', + 'number' => 'Números', + 'quote' => 'Bloc de cita', + 'redo' => 'Refés', + 'strike' => 'Barrat', + 'subheading' => 'Subtítol', + 'title' => 'Títol', + 'undo' => 'Desfer', + ], + + ], + + 'select' => [ + 'emptyOptionsMessage' => 'Comenceu a escriure per cercar...', + 'noSearchResultsMessage' => 'No s\'ha trobat cap opció que coincideixi amb la vostra cerca', + 'placeholder' => 'Trieu una opció', + ], + + 'tags' => [ + 'placeholder' => 'Nova Etiqueta', + ], + +]; \ No newline at end of file diff --git a/packages/tables/resources/lang/ca/pagination.php b/packages/tables/resources/lang/ca/pagination.php new file mode 100644 index 0000000000..a1d4a39c0f --- /dev/null +++ b/packages/tables/resources/lang/ca/pagination.php @@ -0,0 +1,20 @@ + [ + 'goToPage' => 'Anar a la pàgina :page', + 'next' => 'Següent', + 'previous' => 'Anterior', + ], + + 'label' => 'Paginació', + + 'overview' => [ + 'Showing' => 'Mostrant', + 'to' => 'a', + 'of' => 'de', + 'results' => 'resultats.', + ], + +]; \ No newline at end of file diff --git a/packages/tables/resources/lang/ca/table.php b/packages/tables/resources/lang/ca/table.php new file mode 100644 index 0000000000..b4f6922cbf --- /dev/null +++ b/packages/tables/resources/lang/ca/table.php @@ -0,0 +1,57 @@ + [ + + 'button' => [ + 'label' => 'Suprimeix seleccionat', + ], + + 'modal' => [ + + 'buttons' => [ + + 'cancel' => [ + 'label' => 'Cancela', + ], + + 'delete' => [ + 'label' => 'Suprimeix seleccionat', + ], + + ], + + 'description' => 'Esteu segur que voleu suprimir els registres seleccionats? Aquesta acció no es pot desfer.', + + 'heading' => 'Suprimir els registres seleccionats?', + + ], + + ], + + 'filter' => [ + 'placeholder' => 'Filtre', + ], + + 'messages' => [ + 'noRecords' => 'No s\'han trobat registres.', + ], + + 'pagination' => [ + + 'fields' => [ + + 'recordsPerPage' => [ + 'label' => 'per pàgina', + ], + + ], + + ], + + 'search' => [ + 'placeholder' => 'Cerca', + ], + +]; \ No newline at end of file diff --git a/resources/lang/ca/auth/login.php b/resources/lang/ca/auth/login.php new file mode 100644 index 0000000000..a34f39c1f6 --- /dev/null +++ b/resources/lang/ca/auth/login.php @@ -0,0 +1,37 @@ + [ + + 'submit' => [ + 'label' => 'Iniciar sessió', + ], + + ], + + 'form' => [ + + 'email' => [ + 'label' => 'Correu electrònic', + ], + + 'password' => [ + 'hint' => 'Has oblidat la teva contrasenya?', + 'label' => 'Contrasenya', + ], + + 'remember' => [ + 'label' => 'Recorda\'m', + ], + + ], + + 'messages' => [ + 'failed' => 'Les credencials no coincideixen!', + 'throttled' => 'S\'ha superat el nombre màxim d\'intents d\'accés. Si us plau torna-ho a provar d\'aquí :seconds segons.', + ], + + 'title' => 'Accedir al meu compte', + +]; \ No newline at end of file diff --git a/resources/lang/ca/auth/logout.php b/resources/lang/ca/auth/logout.php new file mode 100644 index 0000000000..0a08dbceb3 --- /dev/null +++ b/resources/lang/ca/auth/logout.php @@ -0,0 +1,9 @@ + [ + 'label' => 'Tancar sessió', + ], + +]; \ No newline at end of file diff --git a/resources/lang/ca/auth/request-password.php b/resources/lang/ca/auth/request-password.php new file mode 100644 index 0000000000..efd5fe0abc --- /dev/null +++ b/resources/lang/ca/auth/request-password.php @@ -0,0 +1,36 @@ + [ + + 'submit' => [ + 'label' => 'Envia l\'enllaç per reinicialitzar la contrasenya', + ], + + ], + + 'form' => [ + + 'email' => [ + 'hint' => 'Tornar al inici de sessió', + 'label' => 'Adreça de correu electrònic', + ], + + ], + + 'messages' => [ + + 'throttled' => 'S\'ha superat el nombre màxim d\'intents d\'accés. Si us plau torna-ho a provar d\'aquí :seconds segons.', + + 'passwords' => [ + 'sent' => 'T\'hem enviat per correu electrònic un enllaç per a reiniciar la teva contrasenya!', + 'throttled' => 'Si us plau, espereu abans de tornar-ho a provar', + 'user' => 'No s\'ha trobat cap usuari amb aquesta adreça de correu electrònic', + ], + + ], + + 'title' => 'Restablir la contrasenya', + +]; \ No newline at end of file diff --git a/resources/lang/ca/auth/reset-password.php b/resources/lang/ca/auth/reset-password.php new file mode 100644 index 0000000000..2596f0f403 --- /dev/null +++ b/resources/lang/ca/auth/reset-password.php @@ -0,0 +1,41 @@ + [ + + 'submit' => [ + 'label' => 'Restablir la contrasenya', + ], + + ], + + 'form' => [ + + 'email' => [ + 'label' => 'Adreça de correu electrònic', + ], + + 'password' => [ + 'label' => 'Contrasenya', + ], + + 'passwordConfirmation' => [ + 'label' => 'Confirmació de la contrasenya', + ], + + ], + + 'messages' => [ + + 'passwords' => [ + 'throttled' => 'Si us plau, espereu abans de tornar-ho a provar.', + 'token' => 'El de reinici de contrasenya no és vàlid', + 'user' => 'No s\'ha trobat cap usuari amb aquesta adreça de correu electrònic', + ], + + ], + + 'title' => 'Restablir la contrasenya', + +]; \ No newline at end of file diff --git a/resources/lang/ca/dashboard.php b/resources/lang/ca/dashboard.php new file mode 100644 index 0000000000..e088f1bebf --- /dev/null +++ b/resources/lang/ca/dashboard.php @@ -0,0 +1,41 @@ + 'Tauler', + + 'widgets' => [ + + 'account' => [ + + 'heading' => 'Benvingut/da, :name', + + 'links' => [ + + 'account' => [ + 'label' => 'Gestionar el vostre compte', + ], + + ], + + ], + + 'filament' => [ + + 'links' => [ + + 'documentation' => [ + 'label' => 'Navegar per la documentació', + ], + + 'repository' => [ + 'label' => 'Visiteu el repositori', + ], + + ], + + ], + + ], + +]; \ No newline at end of file diff --git a/resources/lang/ca/edit-account.php b/resources/lang/ca/edit-account.php new file mode 100644 index 0000000000..e0ce54e7c4 --- /dev/null +++ b/resources/lang/ca/edit-account.php @@ -0,0 +1,19 @@ + [ + + 'save' => [ + 'label' => 'Desa', + ], + + ], + + 'messages' => [ + 'saved' => 'Desat!', + ], + + 'title' => 'Compte', + +]; \ No newline at end of file diff --git a/resources/lang/ca/nav.php b/resources/lang/ca/nav.php new file mode 100644 index 0000000000..8aa6edf9b0 --- /dev/null +++ b/resources/lang/ca/nav.php @@ -0,0 +1,17 @@ + [ + + 'account' => [ + 'label' => 'Editar Compte', + ], + + 'users' => [ + 'label' => 'Gestionar Usuaris', + ], + + ], + +]; \ No newline at end of file diff --git a/resources/lang/ca/resources/pages/create-record.php b/resources/lang/ca/resources/pages/create-record.php new file mode 100644 index 0000000000..0874609126 --- /dev/null +++ b/resources/lang/ca/resources/pages/create-record.php @@ -0,0 +1,13 @@ + [ + + 'create' => [ + 'label' => 'Crea', + ], + + ], + +]; \ No newline at end of file diff --git a/resources/lang/ca/resources/pages/edit-record.php b/resources/lang/ca/resources/pages/edit-record.php new file mode 100644 index 0000000000..4bab642774 --- /dev/null +++ b/resources/lang/ca/resources/pages/edit-record.php @@ -0,0 +1,45 @@ + [ + + 'delete' => [ + 'label' => 'Suprimeix', + ], + + 'save' => [ + 'label' => 'Desa', + ], + + ], + + 'modals' => [ + + 'delete' => [ + + 'buttons' => [ + + 'cancel' => [ + 'label' => 'Cancel·la', + ], + + 'confirm' => [ + 'label' => 'Confirma', + ], + + ], + + 'description' => 'Esteu segur que voleu suprimir aquest registre? Aquesta acció no es pot desfer.', + + 'heading' => 'Suprimir aquest registre?', + + ], + + ], + + 'messages' => [ + 'saved' => 'Desat!', + ], + +]; \ No newline at end of file diff --git a/resources/lang/ca/resources/pages/list-records.php b/resources/lang/ca/resources/pages/list-records.php new file mode 100644 index 0000000000..321a3a1972 --- /dev/null +++ b/resources/lang/ca/resources/pages/list-records.php @@ -0,0 +1,25 @@ + [ + + 'create' => [ + 'label' => 'Crea', + ], + + ], + + 'table' => [ + + 'recordActions' => [ + + 'edit' => [ + 'label' => 'Editar', + ], + + ], + + ], + +]; diff --git a/resources/lang/ca/resources/relation-manager.php b/resources/lang/ca/resources/relation-manager.php new file mode 100644 index 0000000000..38d2083356 --- /dev/null +++ b/resources/lang/ca/resources/relation-manager.php @@ -0,0 +1,131 @@ + [ + + 'attach' => [ + 'label' => 'Adjuntar Existent', + ], + + 'create' => [ + 'label' => 'Nou', + ], + + 'detach' => [ + 'label' => 'Separar seleccionat' + ], + + ], + + 'modals' => [ + + 'attach' => [ + + 'buttons' => [ + + 'cancel' => [ + 'label' => 'Cancel·la', + ], + + 'attach' => [ + 'label' => 'Adjuntar', + ], + + 'attachAnother' => [ + 'label' => 'Adjuntar i adjuntar un altre', + ], + + ], + + 'form' => [ + + 'related' => [ + 'placeholder' => 'Comenceu a escriure per cercar...', + ], + + ], + + 'heading' => 'Adjuntar Existent', + + 'messages' => [ + 'attached' => 'Adjunt!', + ], + + ], + + 'create' => [ + + 'buttons' => [ + + 'cancel' => [ + 'label' => 'Cancel·la', + ], + + 'create' => [ + 'label' => 'Crea', + ], + + 'createAnother' => [ + 'label' => 'Crear i crear un altre', + ], + + ], + + 'heading' => 'Crear', + + 'messages' => [ + 'created' => 'Creat!', + ], + + ], + + 'detach' => [ + + 'buttons' => [ + + 'cancel' => [ + 'label' => 'Cancel·la', + ], + + 'detach' => [ + 'label' => 'Separar seleccionat', + ], + + ], + + 'description' => 'Esteu segur que voleu separar aquest registre? Aquesta acció no es pot desfer.', + + 'heading' => 'Separar aquest registre?', + + 'messages' => [ + 'detached' => 'Separat!', + ], + + ], + + 'edit' => [ + + 'buttons' => [ + + 'cancel' => [ + 'label' => 'Cancel·la', + ], + + 'save' => [ + 'label' => 'Desa', + ], + + ], + + 'heading' => 'Editar', + + 'messages' => [ + 'saved' => 'Desat!', + ], + + ], + + ], + +]; \ No newline at end of file diff --git a/resources/lang/ca/resources/user-resource.php b/resources/lang/ca/resources/user-resource.php new file mode 100644 index 0000000000..e8253d2bdd --- /dev/null +++ b/resources/lang/ca/resources/user-resource.php @@ -0,0 +1,84 @@ + [ + + 'avatar' => [ + 'label' => 'Avatar', + ], + + 'email' => [ + 'label' => 'Adreça de correu electrònic', + ], + + 'isAdmin' => [ + 'label' => ' Administrador Filament?', + 'helpMessage' => 'Els administradors de Filament poden accedir a totes les àrees de Filament i gestionar altres usuaris.', + ], + + 'isUser' => [ + 'label' => 'Usuari Filament?', + ], + + 'name' => [ + 'label' => 'Nom', + ], + + 'password' => [ + + 'fieldset' => [ + + 'label' => [ + 'create' => 'Contrasenya', + 'edit' => 'Establir una nova contrasenya', + ], + + ], + + 'fields' => [ + + 'password' => [ + 'label' => 'Contrasenya', + ], + + 'passwordConfirmation' => [ + 'label' => 'Confirmació de la contrasenya', + ], + + ], + + ], + + 'roles' => [ + 'label' => 'Rols', + 'placeholder' => 'Seleccioneu un rol', + ], + + ], + + 'table' => [ + + 'columns' => [ + + 'email' => [ + 'label' => 'Correu electrònic', + ], + + 'name' => [ + 'label' => 'Nom', + ], + + ], + + 'filters' => [ + + 'administrators' => [ + 'label' => 'Administradors', + ], + + ], + + ], + +]; \ No newline at end of file diff --git a/src/Resources/UserResource.php b/src/Resources/UserResource.php index 92f96a6c6d..025165ec41 100644 --- a/src/Resources/UserResource.php +++ b/src/Resources/UserResource.php @@ -80,7 +80,8 @@ class UserResource extends Resource if ($rolesColumn !== null) { $schema[] = Components\MultiSelect::make($rolesColumn) ->label('filament::resources/user-resource.form.roles.label') - ->placeholder('Select a role') + ->placeholder('filament::resources/user-resource.form.roles.placeholder') + ->options( collect(Filament::getRoles()) ->mapWithKeys(fn ($role) => [$role => Str::ucfirst($role::getLabel())])