mirror of
https://github.com/mokuappio/serverless-invoices.git
synced 2025-10-27 16:01:07 -04:00
Fix base url.
This commit is contained in:
@ -11,11 +11,12 @@ i18next
|
|||||||
.use(LanguageDetector)
|
.use(LanguageDetector)
|
||||||
.use(Backend);
|
.use(Backend);
|
||||||
|
|
||||||
|
console.log(process.env.BASE_URL);
|
||||||
const initialized = i18next.init({
|
const initialized = i18next.init({
|
||||||
fallbackLng: 'en',
|
fallbackLng: 'en',
|
||||||
whitelist: ['en', 'fr', 'et', 'fa', 'bn', 'es'],
|
whitelist: ['en', 'fr', 'et', 'fa', 'bn', 'es'],
|
||||||
backend: {
|
backend: {
|
||||||
loadPath: `${process.env.BASE_URL}/locales/{{lng}}/{{ns}}.json`,
|
loadPath: `${window.location.origin}${process.env.BASE_URL}/locales/{{lng}}/{{ns}}.json`,
|
||||||
},
|
},
|
||||||
detection: {
|
detection: {
|
||||||
order: ['querystring', 'path', 'localStorage', 'navigator'],
|
order: ['querystring', 'path', 'localStorage', 'navigator'],
|
||||||
|
|||||||
Reference in New Issue
Block a user