Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ feat: add support for Spanish #542

Merged
merged 2 commits into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/utils/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import path from 'path';

import { ConfigService, Language } from '../config/env.config';

const languages = ['en', 'pt-BR'];
const languages = ['en', 'pt-BR', 'es'];
const translationsPath = path.join(__dirname, 'translations');
const configService: ConfigService = new ConfigService();

Expand Down
26 changes: 26 additions & 0 deletions src/utils/translations/es.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"qrgeneratedsuccesfully": "Código QR generado exitosamente!",
"scanqr": "Escanea este código QR en los próximos 40 segundos.",
"qrlimitreached": "🚨 Se alcanzó el límite de generación de QRCode. Para generar un nuevo QRCode, envíe el mensaje 'init' nuevamente.",
"numbernotinwhatsapp": "⚠️ El mensaje no fue enviado porque el contacto no es un número de Whatsapp válido..",
"cw.inbox.connected": "🚀 ¡Conexión establecida exitosamente!",
"cw.inbox.disconnect": "🚨 Instancia *{{inboxName}}* desconectado de Whatsapp.",
"cw.inbox.alreadyConnected": "🚨 La instancia {{inboxName}} está conectada.",
"cw.inbox.clearCache": "✅ Caché de la instancia {{inboxName}} borrada.",
"cw.inbox.notFound": "⚠️ Instancia {{inboxName}} no encontrada.",
"cw.inbox.status": "⚠️ Estado de la instancia {{inboxName}}: *{{state}}*.",
"cw.import.startImport": "💬 Empezando a importar mensajes. Espere por favor...",
"cw.import.importingMessages": "💬 Importando mensajes. mas un momento...",
"cw.import.messagesImported": "💬 {{totalMessagesImported}} mensajes importados. Actualiza la página para ver los nuevos mensajes..",
"cw.import.messagesException": "⚠️ Algo salió mal al importar mensajes..",
"cw.locationMessage.location": "Ubicación",
"cw.locationMessage.latitude": "Latitude",
"cw.locationMessage.longitude": "Longitude",
"cw.locationMessage.locationName": "Nombre",
"cw.locationMessage.locationAddress": "Direccion",
"cw.locationMessage.locationUrl": "URL",
"cw.contactMessage.contact": "Contacto",
"cw.contactMessage.name": "Nombre",
"cw.contactMessage.number": "Numero",
"cw.message.edited": "Mensaje editado"
}