diff --git a/README.md b/README.md index b9a1a11f..5cdb4034 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ These options can be configured by setting environment variables using `-e KEY=" | `WG_POST_UP` | `...` | `iptables ...` | See [config.js](https://github.com/wg-easy/wg-easy/blob/master/src/config.js#L20) for the default value. | | `WG_PRE_DOWN` | `...` | - | See [config.js](https://github.com/wg-easy/wg-easy/blob/master/src/config.js#L27) for the default value. | | `WG_POST_DOWN` | `...` | `iptables ...` | See [config.js](https://github.com/wg-easy/wg-easy/blob/master/src/config.js#L28) for the default value. | -| `LANG` | `en` | `de` | Web UI language (Supports: en, ru, tr, no, pl, fr, de, ca). | +| `LANG` | `en` | `de` | Web UI language (Supports: en, ru, tr, no, pl, fr, de, ca, es). | > If you change `WG_PORT`, make sure to also change the exposed port. diff --git a/docker-compose.yml b/docker-compose.yml index 67f7fb74..3336589c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,7 +6,7 @@ services: wg-easy: environment: # Change Language: - # (Supports: en, ru, tr, no, pl, fr, de, ca) + # (Supports: en, ru, tr, no, pl, fr, de, ca, es) - LANG=de # ⚠️ Required: # Change this to your host's public address diff --git a/src/www/js/i18n.js b/src/www/js/i18n.js index 71266039..c5fbe339 100644 --- a/src/www/js/i18n.js +++ b/src/www/js/i18n.js @@ -218,4 +218,31 @@ const messages = { // eslint-disable-line no-unused-vars madeBy: 'Fet per', donate: 'Donatiu', }, + es: { // github.com/amarqz + name: 'Nombre', + password: 'Contraseña', + signIn: 'Iniciar sesión', + logout: 'Cerrar sesión', + updateAvailable: '¡Hay una actualización disponible!', + update: 'Actualizar', + clients: 'Clientes', + new: 'Nuevo', + deleteClient: 'Eliminar cliente', + deleteDialog1: '¿Estás seguro de que quieres borrar este cliente?', + deleteDialog2: 'Esta acción no podrá ser revertida.', + cancel: 'Cancelar', + create: 'Crear', + createdOn: 'Creado el ', + lastSeen: 'Última conexión el ', + totalDownload: 'Total descargado: ', + totalUpload: 'Total subido: ', + newClient: 'Nuevo cliente', + disableClient: 'Desactivar cliente', + enableClient: 'Activar cliente', + noClients: 'Aún no hay ningún cliente.', + showQR: 'Mostrar código QR', + downloadConfig: 'Descargar configuración', + madeBy: 'Hecho por', + donate: 'Donar', + }, };