Skip to content

Commit

Permalink
Added Spanish translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Tievodj committed Jul 26, 2023
1 parent 150e8ca commit ae62422
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 0 deletions.
36 changes: 36 additions & 0 deletions resources/lang/es/commands.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?php

return [

/*
|--------------------------------------------------------------------------
| Language lines used in console commands
|--------------------------------------------------------------------------
*/

"new_bot" => [
'starting_message' => 'Estás a punto de crear un nuevo Bot de Telegram',
'enter_bot_token' => 'Por favor, introduce el token del bot',
'enter_bot_name' => 'Introduce el nombre del bot (opcional)',
'ask_to_add_a_chat' => '¿Quieres agregar un chat a este bot?',
'ask_to_setup_webhook' => '¿Desea configurar un webhook para este bot?',
'bot_created' => 'Se ha creado un nuevo bot :bot_name',
],

'new_chat' => [
'starting_message' => "Está a punto de crear un nuevo chat de Telegram para el bot :bot_name",
'enter_chat_id' => 'Ingrese el ID del chat - presione [x] para cancelar',
'enter_chat_name' => 'Introduce el nombre del chat (opcional)',
'chat_created' => 'Se ha creado un nuevo chat :chat_name para el bot :bot_name',
],

'set_webhook' => [
'sending_setup_request' => 'Enviando solicitud de configuración de webhook a: :api_url',
'webhook_updated' => 'Webhook actualizado'
],

'unset_webhook' => [
'sending_unset_request' => 'Enviando solicitud de anulación de webhook a: :api_url',
'webhook_deleted' => 'Webhook eliminado'
],
];
21 changes: 21 additions & 0 deletions resources/lang/es/errors.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

namespace DefStudio\Telegraph\Lang;

return [

/*
|--------------------------------------------------------------------------
| Error language lines
|--------------------------------------------------------------------------
*/

'invalid_action' => 'Acción no válida',
'invalid_command' => 'Comando desconocido',
'empty_token' => 'El token no puede estar vacío',
'empty_chat_id' => 'El ID de chat no puede estar vacío',
'missing_bot_id' => 'Especifique un ID de bot',
'failed_to_get_log_from_telegram' => 'No se pudo obtener el log del servidor de Telegram',
'failed_to_register_webhook' => 'No se pudo registrar el webhook',
'failed_to_unregister_webhook' => 'Error al anular el registro del webhook',
];
13 changes: 13 additions & 0 deletions resources/lang/es/misc.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

return [

/*
|--------------------------------------------------------------------------
| Miscellaneous language lines
|--------------------------------------------------------------------------
*/

'yes' => 'si',
'no' => 'no',
];

0 comments on commit ae62422

Please sign in to comment.