From c99772e0b5d8f92fabad9f24ecab5f1ad48053f0 Mon Sep 17 00:00:00 2001 From: lesion Date: Mon, 20 Nov 2023 17:43:18 +0100 Subject: [PATCH] feat: add Turkish language --- locales/index.js | 1 + nuxt.config.js | 7 ++----- vuetify.options.js | 4 ++-- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/locales/index.js b/locales/index.js index 10310b40..def223e0 100644 --- a/locales/index.js +++ b/locales/index.js @@ -14,6 +14,7 @@ module.exports = { pt: 'Português', 'pt-BR': 'Português (Brasilian)', ru: 'Русский', + tr: 'Türkçe', sk: 'Slovak', zh: '中国' } diff --git a/nuxt.config.js b/nuxt.config.js index a0f385af..3e77225c 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -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 }) { // .. diff --git a/vuetify.options.js b/vuetify.options.js index f7f5978f..81650bb9 100644 --- a/vuetify.options.js +++ b/vuetify.options.js @@ -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: {