mirror of
https://github.com/mokuappio/serverless-invoices.git
synced 2025-10-27 07:51:08 -04:00
No configuration setup. Wordpress compatible.
This commit is contained in:
@ -2,7 +2,8 @@
|
||||
|
||||
export default {
|
||||
storageType: 'local',
|
||||
// locales_url: wordpress.front_url,
|
||||
// base_url: wordpress.front_url,
|
||||
// base_url: `${window.location.origin}${process.env.BASE_URL}`
|
||||
// api_url: wordpress.api_url,
|
||||
// api_nonce: wordpress.nonce,
|
||||
};
|
||||
|
||||
@ -16,7 +16,7 @@ const initialized = i18next.init({
|
||||
fallbackLng: 'en',
|
||||
whitelist: ['en', 'fr', 'et', 'fa', 'bn', 'es'],
|
||||
backend: {
|
||||
loadPath: config.locales_url || `${window.location.origin}${process.env.BASE_URL}/locales/{{lng}}/{{ns}}.json`,
|
||||
loadPath: `${config.base_url || ''}/locales/{{lng}}/{{ns}}.json`,
|
||||
},
|
||||
detection: {
|
||||
order: ['querystring', 'path', 'localStorage', 'navigator'],
|
||||
|
||||
@ -2,6 +2,7 @@ import Vue from 'vue';
|
||||
import Router from 'vue-router';
|
||||
import store from '@/store/store';
|
||||
import i18n from '@/config/i18n.config';
|
||||
import config from '@/config/app.config';
|
||||
|
||||
Vue.use(Router);
|
||||
|
||||
@ -37,7 +38,7 @@ const routes = [
|
||||
|
||||
const router = new Router({
|
||||
mode: 'history',
|
||||
base: process.env.BASE_URL,
|
||||
base: config.base_url,
|
||||
routes,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user