feat: add Turkish language

This commit is contained in:
lesion 2023-11-20 17:43:18 +01:00
parent 388c8078dd
commit c99772e0b5
No known key found for this signature in database
GPG key ID: 352918250B012177
3 changed files with 5 additions and 7 deletions

View file

@ -14,6 +14,7 @@ module.exports = {
pt: 'Português',
'pt-BR': 'Português (Brasilian)',
ru: 'Русский',
tr: 'Türkçe',
sk: 'Slovak',
zh: '中国'
}

View file

@ -1,6 +1,5 @@
const config = require('./server/config.js')
const locales = require('./locales/index')
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,10 +143,8 @@ module.exports = {
},
buildModules: ['@nuxtjs/vuetify'],
vuetify: {
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' },
optionsPath: './vuetify.options.js'
},
build: {
extend(config, { isDev, isClient }) {
// ..

View file

@ -1,12 +1,12 @@
const minifyTheme = require('minify-css-string').default
import { ca, cs, 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, tr, 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, cs, 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, tr, ru, zhHans } },
treeShake: true,
theme: {
options: {