add Czech locale

This commit is contained in:
lesion 2023-10-04 15:02:31 +02:00
parent aab27b88a5
commit 235b4be1fb
No known key found for this signature in database
GPG key ID: 352918250B012177
5 changed files with 9 additions and 8 deletions

View file

@ -16,7 +16,7 @@
<template v-slot:activator="{ on, attrs }">
<v-btn icon large v-bind='attrs' v-on='on' aria-label='Language' v-text="$i18n.locale" />
</template>
<v-list>
<v-list dense>
<v-list-item v-for='locale in $i18n.locales' @click.prevent.stop="$i18n.setLocale(locale.code)" :key='locale.code'>
<v-list-item-content>
<v-list-item-title v-text='locale.name' />

View file

@ -1,5 +1,6 @@
module.exports = {
ca: 'Català',
cs: 'Czech',
de: 'Deutsch',
en: 'English',
es: 'Español',

View file

@ -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' },

View file

@ -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",

View file

@ -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: {