Add translation support

This commit is contained in:
dragongoose
2023-06-13 12:08:43 -04:00
parent 14585e0144
commit fcac40082b
25 changed files with 2781 additions and 194 deletions

View File

@ -2,14 +2,15 @@ import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import './assets/index.css'
import i18n from "./i18n"
const app = createApp(App)
const app = createApp(App).use(i18n)
// Add protocol variable
// For some reason, import.meta.env.VITE_HTTPS === "true"
// returns false, even if it is true.
// Making a copy of the variable seems to work
const https = (import.meta.env.VITE_HTTPS.slice() === "true")
const https = (import.meta.env.SAFETWITCH_HTTPS.slice() === "true")
app.provide('protocol', https ? 'https://' : 'http://')