Merge pull request #1506 from processing/bug/translation-404

[#1505] Change "translation.json" path to absolute
This commit is contained in:
Cassie Tarakajian 2020-07-20 14:38:45 -04:00 committed by GitHub
commit 52bc65abf2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,7 +7,7 @@ const fallbackLng = ['en-US'];
const availableLanguages = ['en-US', 'es-419'];
const options = {
loadPath: 'locales/{{lng}}/translations.json',
loadPath: '/locales/{{lng}}/translations.json',
requestOptions: { // used for fetch, can also be a function (payload) => ({ method: 'GET' })
mode: 'no-cors'
},