From ca0cf827b29f089d339fe1d8b804196ef272652f Mon Sep 17 00:00:00 2001 From: Djuri Baars Date: Sun, 19 Nov 2023 18:28:43 +0100 Subject: [PATCH] Improve Spanish translatoin --- .github/workflows/workflow.yml | 2 +- src/lib/i18n/index.ts | 2 +- src/lib/locales/es.json | 8 ++++---- src/lib/style/app.scss | 5 +++++ 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index e356fde..5cc31b9 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -28,7 +28,7 @@ jobs: build: needs: check-changes runs-on: ubuntu-latest - if: ${{ needs.check-changes.outputs >= 2 }} + if: ${{ needs.check-changes.outputs >= 1 }} permissions: contents: write diff --git a/src/lib/i18n/index.ts b/src/lib/i18n/index.ts index 7f85386..c920fcc 100644 --- a/src/lib/i18n/index.ts +++ b/src/lib/i18n/index.ts @@ -9,5 +9,5 @@ register('es', () => import('../locales/es.json')) init({ fallbackLocale: defaultLocale, - initialLocale: browser ? window.navigator.language : defaultLocale, + initialLocale: browser ? browser && localStorage.getItem('locale') ? localStorage.getItem('locale') : window.navigator.language : defaultLocale, }) \ No newline at end of file diff --git a/src/lib/locales/es.json b/src/lib/locales/es.json index c3958ae..72dbcea 100644 --- a/src/lib/locales/es.json +++ b/src/lib/locales/es.json @@ -28,17 +28,17 @@ "version": "Versión", "ledColor": "color del LED", "systemInfo": "Info del sistema", - "showText": "Poner texto", + "showText": "Mostrar texto", "text": "Texto", "title": "Control", - "buildTime": "Tiempo de construcción", - "hostname": "Nombre de host" + "buildTime": "Tiempo de compilación", + "hostname": "Nombre del host" }, "status": { "memoryFree": "Memoria RAM libre", "wsPriceConnection": "Conexión WebSocket Precio", "wsMempoolConnection": "Conexión WebSocket Mempool.space", - "screenCycle": "Rotacion de pantalla", + "screenCycle": "Ciclo de pantalla", "uptime": "Tiempo de funcionamiento", "fetchEuroNote": "Si utiliza \"Obtener precio en €\", la conexión de Precio WS mostrará ❌ ya que utiliza otra fuente de datos.", "title": "Estado" diff --git a/src/lib/style/app.scss b/src/lib/style/app.scss index 85cf732..4b489b7 100644 --- a/src/lib/style/app.scss +++ b/src/lib/style/app.scss @@ -185,4 +185,9 @@ nav { .card-title { margin-bottom: 0; +} + +.navbar-brand { + font-style: italic; + font-weight: 600; } \ No newline at end of file