diff --git a/.gitignore b/.gitignore index 60cde3202016ffdb87282e29a32c1eae0c7349d0..3fea6ecc2abc86553c5c0bee1c9219f11693f547 100644 --- a/.gitignore +++ b/.gitignore @@ -89,7 +89,3 @@ sw.* # Vim swap files *.swp - -# Script generated files -*.missing -keysUsed \ No newline at end of file diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 415dd580ca6f82d93af85a888046987b57cdb519..cb4df10fe4b3227370e335ccd582622f91b4f8df 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,12 @@ image: node:16 +check-i18n-job: + stage: test + script: + - ./utils/findMissingI18nKeys.sh + only: + - merge_requests + build-job: stage: build script: diff --git a/components/navigation/menu/Sidebar.vue b/components/navigation/menu/Sidebar.vue index 41f3737fad1a167d63eee2daad7ff025baa8fbdb..15c6043ae74beba364814fc433167a646c39229c 100644 --- a/components/navigation/menu/Sidebar.vue +++ b/components/navigation/menu/Sidebar.vue @@ -5,7 +5,10 @@ <img :src="$icon(512)" alt="Accueil" class="logo" /> <div> <h1 class="h3"> - Wotwizard <small><span class="small">v0.21</span></small> + Wotwizard + <small + ><span class="small">v{{ $config.clientVersion }}</span></small + > </h1> <small class="text-muted">{{ $t("slogan") }}</small> </div> diff --git a/i18n/locales/es.json b/i18n/locales/es.json index 6dd446b4f08a54738d68f8e0f73af8ae224a3eb3..d912558468a12e0dd3cbb97802457a5fd793937a 100644 --- a/i18n/locales/es.json +++ b/i18n/locales/es.json @@ -100,7 +100,6 @@ "datelimpertestatut": "Pérdida de MembresÃa", "datemanquecertifs": "Falta de certificaciones", "desc": "Individuo cuya afiliación está en curso y que ha recibido las 5 certificaciones necesarias que le permitan respetar la regla de distanciamiento. Lo que le permite ser co-creador de la moneda a través de su Dividendo Universal", - "dispo": "Disponible", "dispocertif": "Disponible para certificar", "distance": { "desc": "% de miembros referidos accesibles en 5 saltos o menos en la web de confianza. Para convertirse en miembro, debe recopilar al menos 5 certificaciones que le permitan llegar al 80% de los miembros de referencia en 5 saltos como máximo.", diff --git a/nuxt.config.js b/nuxt.config.js index ee308c50be720d2c969898f1d5c6073249ec2ddc..db4170b81c7e8afe788b4b755a8b0e2d1a58d60e 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -1,5 +1,6 @@ import i18n from "./i18n" import webpack from "webpack" +import pkg from "./package.json" export default { // Disable server-side rendering: https://go.nuxtjs.dev/ssr-mode @@ -8,6 +9,11 @@ export default { // Target: https://go.nuxtjs.dev/config-target target: "static", + // Application version from package.json + publicRuntimeConfig: { + clientVersion: pkg.version + }, + // Global page headers: https://go.nuxtjs.dev/config-head head: { title: "wotwizard-ui", diff --git a/package.json b/package.json index 63e0b611bdd5482738428659d4afb543ce7f816b..5a123530d819d0116d6bfe86915f8a6bd69e1e55 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wotwizard-ui", - "version": "1.0.0", + "version": "0.21.0", "private": true, "scripts": { "dev": "nuxt",