Skip to content

Commit 32e982b

Browse files
committed
Fix urls.
1 parent ca867f0 commit 32e982b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/config/i18n.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import VueI18Next from '@panter/vue-i18next';
44
import Backend from 'i18next-http-backend';
55
import LanguageDetector from 'i18next-browser-languagedetector';
66
import app from '@/main';
7-
import config from '@/config/app.config';
87

98
Vue.use(VueI18Next);
109

@@ -16,7 +15,7 @@ const initialized = i18next.init({
1615
fallbackLng: 'en',
1716
whitelist: ['en', 'de', 'fr', 'et', 'fa', 'bn', 'es', 'pt_br', 'it', 'id', 'kr'],
1817
backend: {
19-
loadPath: `${config.base_url || ''}/locales/{{lng}}/{{ns}}.json`,
18+
loadPath: `${window.location.origin}/locales/{{lng}}/{{ns}}.json`,
2019
},
2120
detection: {
2221
order: ['querystring', 'path', 'localStorage', 'navigator'],

0 commit comments

Comments
 (0)