2023-12-09 15:47:03 +01:00
|
|
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
2024-04-22 16:42:38 +02:00
|
|
|
import runtimeConfig from "./runtimeConfig"
|
|
|
|
|
import {sentryVitePlugin} from "@sentry/vite-plugin"
|
|
|
|
|
import sitemap from "./sitemap"
|
2024-06-06 18:03:41 +02:00
|
|
|
import gtm from "./gtm"
|
2023-12-18 10:35:00 +01:00
|
|
|
|
2023-12-09 15:47:03 +01:00
|
|
|
export default defineNuxtConfig({
|
2024-01-06 15:26:18 +01:00
|
|
|
loglevel: process.env.NUXT_LOG_LEVEL || 'info',
|
2024-07-04 17:21:36 +02:00
|
|
|
devtools: {enabled: true},
|
2023-12-09 15:47:03 +01:00
|
|
|
css: ['~/scss/app.scss'],
|
|
|
|
|
modules: [
|
2024-10-30 09:17:58 +01:00
|
|
|
'@pinia/nuxt',
|
|
|
|
|
'@vueuse/nuxt',
|
|
|
|
|
'@vueuse/motion/nuxt',
|
2024-10-21 19:51:35 +02:00
|
|
|
'@nuxtjs/sitemap',
|
2024-10-30 09:17:58 +01:00
|
|
|
'@nuxt/ui',
|
|
|
|
|
'nuxt-utm',
|
2024-12-04 18:32:14 +01:00
|
|
|
'@nuxtjs/i18n',
|
|
|
|
|
'@nuxt/icon',
|
2024-06-06 18:03:41 +02:00
|
|
|
...process.env.NUXT_PUBLIC_GTM_CODE ? ['@zadigetvoltaire/nuxt-gtm'] : [],
|
2024-12-04 18:32:14 +01:00
|
|
|
],
|
2024-01-02 18:31:31 +01:00
|
|
|
build: {
|
2024-10-21 17:41:20 +02:00
|
|
|
transpile: ["vue-notion", "query-builder-vue-3", "vue-signature-pad"],
|
2023-12-09 15:47:03 +01:00
|
|
|
},
|
2024-12-04 18:32:14 +01:00
|
|
|
i18n: {
|
|
|
|
|
locales: [
|
|
|
|
|
{ code: 'en', name: 'English', iso: 'en-US', file: 'en.json' },
|
|
|
|
|
{ code: 'fr', name: 'French', iso: 'fr-FR', file: 'fr.json' },
|
|
|
|
|
{ code: 'hi', name: 'Hindi', iso: 'hi-IN', file: 'hi.json' },
|
|
|
|
|
{ code: 'es', name: 'Spanish', iso: 'es-ES', file: 'es.json' },
|
|
|
|
|
{ code: 'ar', name: 'Arabic', iso: 'ar-EG', file: 'ar.json' },
|
|
|
|
|
{ code: 'zh', name: 'Chinese', iso: 'zh-CN', file: 'zh.json' },
|
|
|
|
|
{ code: 'ja', name: 'Japanese', iso: 'ja-JP', file: 'ja.json' },
|
Enhance language support and fix validation messages
- Added support for additional languages (Bengali, Portuguese, Russian, Urdu, Punjabi, German, Javanese, Korean, Vietnamese, Telugu, Marathi, Tamil, Turkish) in the application.
- Updated validation messages across multiple languages to correct formatting issues and improve clarity, including Arabic, English, Spanish, French, Hindi, Japanese, Norwegian, and Chinese.
- Removed obsolete Norwegian language files to streamline localization efforts.
- Improved the language selection interface in the form customization component.
These changes aim to enhance user experience by providing better language support and clearer validation feedback.
2024-12-09 12:47:01 +01:00
|
|
|
{ code: 'bn', name: 'Bengali', iso: 'bn-BD', file: 'bn.json' },
|
|
|
|
|
{ code: 'pt', name: 'Portuguese', iso: 'pt-BR', file: 'pt.json' },
|
|
|
|
|
{ code: 'ru', name: 'Russian', iso: 'ru-RU', file: 'ru.json' },
|
|
|
|
|
{ code: 'ur', name: 'Urdu', iso: 'ur-PK', file: 'ur.json' },
|
|
|
|
|
{ code: 'pa', name: 'Punjabi', iso: 'pa-IN', file: 'pa.json' },
|
|
|
|
|
{ code: 'de', name: 'German', iso: 'de-DE', file: 'de.json' },
|
|
|
|
|
{ code: 'jv', name: 'Javanese', iso: 'jv-ID', file: 'jv.json' },
|
|
|
|
|
{ code: 'ko', name: 'Korean', iso: 'ko-KR', file: 'ko.json' },
|
|
|
|
|
{ code: 'vi', name: 'Vietnamese', iso: 'vi-VN', file: 'vi.json' },
|
|
|
|
|
{ code: 'te', name: 'Telugu', iso: 'te-IN', file: 'te.json' },
|
|
|
|
|
{ code: 'mr', name: 'Marathi', iso: 'mr-IN', file: 'mr.json' },
|
|
|
|
|
{ code: 'ta', name: 'Tamil', iso: 'ta-IN', file: 'ta.json' },
|
|
|
|
|
{ code: 'tr', name: 'Turkish', iso: 'tr-TR', file: 'tr.json' },
|
2025-02-10 12:33:52 +01:00
|
|
|
{ code: 'sk', name: 'Slovak', iso: 'sk-SK', file: 'sk.json' },
|
|
|
|
|
{ code: 'cs', name: 'Czech', iso: 'cs-CZ', file: 'cs.json' },
|
|
|
|
|
{ code: 'eu', name: 'Basque', iso: 'eu-ES', file: 'eu.json' },
|
|
|
|
|
{ code: 'gl', name: 'Galician', iso: 'gl-ES', file: 'gl.json' },
|
|
|
|
|
{ code: 'ca', name: 'Valencian/Catalan', iso: 'ca-ES', file: 'ca.json' },
|
|
|
|
|
{ code: 'sv', name: 'Swedish', iso: 'sv-SE', file: 'sv.json' },
|
|
|
|
|
{ code: 'pl', name: 'Polish', iso: 'pl-PL', file: 'pl.json' },
|
2024-12-04 18:32:14 +01:00
|
|
|
],
|
|
|
|
|
defaultLocale: 'en',
|
|
|
|
|
lazy: true,
|
|
|
|
|
langDir: 'lang/',
|
2025-02-10 12:29:42 +01:00
|
|
|
strategy: 'no_prefix',
|
|
|
|
|
detectBrowserLanguage: {
|
|
|
|
|
cookieSecure: true
|
|
|
|
|
}
|
2024-12-04 18:32:14 +01:00
|
|
|
},
|
2024-01-02 16:35:16 +01:00
|
|
|
experimental: {
|
|
|
|
|
inlineRouteRules: true
|
|
|
|
|
},
|
2023-12-09 15:47:03 +01:00
|
|
|
sentry: {
|
2024-01-06 00:31:28 +01:00
|
|
|
dsn: process.env.NUXT_PUBLIC_SENTRY_DSN,
|
2024-01-13 18:17:24 +01:00
|
|
|
lazy: true,
|
2023-12-09 17:02:23 +01:00
|
|
|
},
|
2024-01-14 20:52:14 +01:00
|
|
|
gtag: {
|
|
|
|
|
id: process.env.NUXT_PUBLIC_GOOGLE_ANALYTICS_CODE,
|
|
|
|
|
},
|
2023-12-11 11:56:21 +01:00
|
|
|
components: [
|
|
|
|
|
{
|
|
|
|
|
path: '~/components/forms',
|
|
|
|
|
pathPrefix: false,
|
2023-12-24 10:40:09 +01:00
|
|
|
global: true,
|
2023-12-11 11:56:21 +01:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '~/components/global',
|
|
|
|
|
pathPrefix: false,
|
|
|
|
|
},
|
2024-09-23 20:02:38 +02:00
|
|
|
{
|
|
|
|
|
path: '~/components/forms',
|
|
|
|
|
pathPrefix: false,
|
|
|
|
|
global: true
|
|
|
|
|
},
|
2023-12-18 10:35:00 +01:00
|
|
|
{
|
|
|
|
|
path: '~/components/pages',
|
|
|
|
|
pathPrefix: false,
|
|
|
|
|
},
|
2024-03-28 18:14:30 +01:00
|
|
|
{
|
|
|
|
|
path: '~/components/open/integrations',
|
|
|
|
|
pathPrefix: false,
|
|
|
|
|
global: true,
|
|
|
|
|
},
|
2023-12-11 11:56:21 +01:00
|
|
|
'~/components',
|
|
|
|
|
],
|
2024-01-17 19:32:17 +01:00
|
|
|
sourcemap: true,
|
|
|
|
|
vite: {
|
|
|
|
|
plugins: [
|
|
|
|
|
// Put the Sentry vite plugin after all other plugins
|
|
|
|
|
sentryVitePlugin({
|
|
|
|
|
authToken: process.env.SENTRY_AUTH_TOKEN,
|
|
|
|
|
org: "opnform",
|
|
|
|
|
project: "opnform-vue",
|
|
|
|
|
}),
|
|
|
|
|
],
|
2024-08-07 17:14:00 +02:00
|
|
|
server: {
|
|
|
|
|
hmr: {
|
|
|
|
|
clientPort: 3000
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-01-17 19:32:17 +01:00
|
|
|
},
|
2024-04-01 13:26:22 +02:00
|
|
|
tailwindcss: {
|
|
|
|
|
cssPath: ['~/scss/app.scss']
|
|
|
|
|
},
|
2024-03-29 14:50:55 +01:00
|
|
|
colorMode: {
|
|
|
|
|
preference: 'light',
|
|
|
|
|
fallback: 'light',
|
|
|
|
|
classPrefix: '',
|
|
|
|
|
},
|
2024-11-20 21:17:48 +01:00
|
|
|
icon: {
|
|
|
|
|
clientBundle: {
|
|
|
|
|
scan: {
|
|
|
|
|
globInclude: ['**/*.vue', '**/*.json'],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
2024-01-03 17:38:11 +01:00
|
|
|
sitemap,
|
2024-06-06 18:03:41 +02:00
|
|
|
runtimeConfig,
|
|
|
|
|
gtm
|
2024-10-30 09:17:58 +01:00
|
|
|
})
|