Add translation support
This commit is contained in:
@ -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://')
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user