From 235b4be1fb4437cce998475611dba02df82e6f20 Mon Sep 17 00:00:00 2001 From: lesion Date: Wed, 4 Oct 2023 15:02:31 +0200 Subject: [PATCH] add Czech locale --- components/NavHeader.vue | 2 +- locales/index.js | 1 + nuxt.config.js | 4 ++-- package.json | 6 +++--- vuetify.options.js | 4 ++-- 5 files changed, 9 insertions(+), 8 deletions(-) diff --git a/components/NavHeader.vue b/components/NavHeader.vue index 715fbbf4..578731c1 100644 --- a/components/NavHeader.vue +++ b/components/NavHeader.vue @@ -16,7 +16,7 @@ - + diff --git a/locales/index.js b/locales/index.js index 2b7a649b..10310b40 100644 --- a/locales/index.js +++ b/locales/index.js @@ -1,5 +1,6 @@ module.exports = { ca: 'Català', + cs: 'Czech', de: 'Deutsch', en: 'English', es: 'Español', diff --git a/nuxt.config.js b/nuxt.config.js index 26839e07..a0f385af 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -1,6 +1,6 @@ const config = require('./server/config.js') const locales = require('./locales/index') -import { ca, de, en, es, eu, fr, gl, it, nb, nl, pl, pt, sk, ru, zhHans } from 'vuetify/es5/locale' +import { ca, cs, de, en, es, eu, fr, gl, it, nb, nl, pl, pt, sk, ru, zhHans } from 'vuetify/es5/locale' const dns = require('node:dns') dns.setDefaultResultOrder('ipv4first') @@ -144,7 +144,7 @@ module.exports = { }, buildModules: ['@nuxtjs/vuetify'], vuetify: { - lang: { locales: { ca, de, en, es, eu, fr, gl, it, nb, nl, pl, pt, sk, ru, zhHans } }, + lang: { locales: { ca, cs, de, en, es, eu, fr, gl, it, nb, nl, pl, pt, sk, ru, zhHans } }, treeShake: true, defaultAssets: false, optionsPath: './vuetify.options.js' }, diff --git a/package.json b/package.json index ea7c5f97..2292def5 100644 --- a/package.json +++ b/package.json @@ -49,10 +49,10 @@ "cookie-universal-nuxt": "^2.2.2", "cors": "^2.8.5", "dayjs": "^1.11.10", - "dompurify": "^3.0.5", + "dompurify": "^3.0.6", "email-templates": "^11.1.1", "express": "^4.18.1", - "express-rate-limit": "^7.0.1", + "express-rate-limit": "^7.0.2", "http-signature": "^1.3.6", "https-proxy-agent": "^7.0.2", "ical.js": "^1.5.0", @@ -98,7 +98,7 @@ }, "devDependencies": { "@nuxtjs/vuetify": "^1.12.3", - "@vue/language-plugin-pug": "^1.8.13", + "@vue/language-plugin-pug": "^1.8.15", "jest": "^29.7.0", "jest-environment-node": "^29.7.0", "prettier": "^2.8.8", diff --git a/vuetify.options.js b/vuetify.options.js index 70e27761..f7f5978f 100644 --- a/vuetify.options.js +++ b/vuetify.options.js @@ -1,12 +1,12 @@ const minifyTheme = require('minify-css-string').default -import { ca, de, en, es, eu, fr, gl, it, nb, nl, pl, pt, sk, ru, zhHans } from 'vuetify/es5/locale' +import { ca, cs, de, en, es, eu, fr, gl, it, nb, nl, pl, pt, sk, ru, zhHans } from 'vuetify/es5/locale' export default ({ res, nuxtState }) => { const settings = process.server ? (res.locals.settings || {}) : nuxtState.state.settings || {} return { - lang: { locales: { ca, de, en, es, eu, fr, gl, it, nb, nl, pl, pt, sk, ru, zhHans } }, + lang: { locales: { ca, cs, de, en, es, eu, fr, gl, it, nb, nl, pl, pt, sk, ru, zhHans } }, treeShake: true, theme: { options: {