From 8b596c0f6ee62d20168cb0d78794f4e93b28e1e1 Mon Sep 17 00:00:00 2001 From: "kujiu (@rincevent)" Date: Sat, 4 Dec 2021 16:44:11 +0100 Subject: [PATCH] Fix: translations --- src/NervTN.vue | 33 +++++++++++++++++++++------------ src/assets/css/common.less | 6 ++++-- src/components/NervTNApps.vue | 19 ++++++++++++++----- src/components/ReloadPWA.vue | 13 ++++++++----- src/locale/en.json | 7 +++++++ src/locale/fr.json | 7 +++++++ src/main.js | 3 +-- vite.config.js | 4 +++- 8 files changed, 65 insertions(+), 27 deletions(-) diff --git a/src/NervTN.vue b/src/NervTN.vue index c08c125..deb9ec0 100644 --- a/src/NervTN.vue +++ b/src/NervTN.vue @@ -1,20 +1,29 @@ diff --git a/src/assets/css/common.less b/src/assets/css/common.less index 7e3026b..2de7fab 100644 --- a/src/assets/css/common.less +++ b/src/assets/css/common.less @@ -236,12 +236,14 @@ h1, h2, h3, h4, h5, h6 { h1 { font-size: 2.2rem; + padding-bottom: .3rem; + border-bottom: 0.3em solid var(--BClr); } h2 { font-size: 1.65rem; - padding-bottom: .3rem; - border-bottom: 0.3em solid var(--BClr); + padding-bottom: .2rem; + border-bottom: 0.2em solid var(--BClr); } h3 { diff --git a/src/components/NervTNApps.vue b/src/components/NervTNApps.vue index 16577e7..275e504 100644 --- a/src/components/NervTNApps.vue +++ b/src/components/NervTNApps.vue @@ -1,7 +1,16 @@ + + + + + diff --git a/src/components/ReloadPWA.vue b/src/components/ReloadPWA.vue index 9a56ee5..8443377 100644 --- a/src/components/ReloadPWA.vue +++ b/src/components/ReloadPWA.vue @@ -2,18 +2,18 @@
- {{ $t('pwa.ready') }} + {{ t('pwa.ready') }} - {{ $t('pwa.new_content') }} + {{ t('pwa.new_content') }}
@@ -22,18 +22,20 @@ + diff --git a/src/locale/en.json b/src/locale/en.json index d82e5f2..38c386a 100644 --- a/src/locale/en.json +++ b/src/locale/en.json @@ -1,4 +1,11 @@ { + "apps": { + "communication": "", + "accounting": "", + "ordering": "", + "stocks": "", + "monitoring": "" + }, "home": { "apps": "Applications" }, diff --git a/src/locale/fr.json b/src/locale/fr.json index 40b1427..78c8841 100644 --- a/src/locale/fr.json +++ b/src/locale/fr.json @@ -1,4 +1,11 @@ { + "apps": { + "communication": "Communication", + "accounting": "Comptabilité", + "ordering": "Commande", + "stocks": "Stocks", + "monitoring": "Veille" + }, "home": { "apps": "Applications" }, diff --git a/src/main.js b/src/main.js index 18ef86f..20c0c61 100644 --- a/src/main.js +++ b/src/main.js @@ -22,8 +22,7 @@ app.use(createI18n({ locale: languages[0].trim().split(/-|_/)[0], fallbackLocale: 'en', legacy: false, - globalInjection: true, - messages: {} + globalInjection: true })); app.use(router); app.use(store); diff --git a/vite.config.js b/vite.config.js index d4ce8e5..a66f1b4 100644 --- a/vite.config.js +++ b/vite.config.js @@ -16,7 +16,9 @@ export default defineConfig({ plugins: [ vue(), vueI18n({ - include: path.resolve(__dirname, '**/locale/**') + include: path.resolve(__dirname, '**/locale/**'), + compositionOnly: true, + fullInstall: true }), VitePWA({ mode: "production",