feat: pivot to social media workflow app
This commit is contained in:
@@ -1,13 +1,10 @@
|
||||
import axios from 'axios';
|
||||
import { useAuthStore } from '@/stores/authStore.js';
|
||||
import config from '@/config.js';
|
||||
|
||||
export function useClient() {
|
||||
if (!import.meta.env.VITE_API_URL) {
|
||||
throw new Error('VITE_API_URL is not provided');
|
||||
}
|
||||
|
||||
const client = axios.create({
|
||||
baseURL: import.meta.env.VITE_API_URL,
|
||||
baseURL: config.apiUrl,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
|
||||
12
frontend/src/plugins/i18n.js
Normal file
12
frontend/src/plugins/i18n.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import { createI18n } from 'vue-i18n';
|
||||
import en from '@/locales/en.json';
|
||||
import fr from '@/locales/fr.json';
|
||||
|
||||
export const i18n = createI18n({
|
||||
legacy: false,
|
||||
fallbackLocale: 'en',
|
||||
messages: {
|
||||
en,
|
||||
fr,
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user