Skip to content

Commit

Permalink
fix(i18): use relative url to load default translation
Browse files Browse the repository at this point in the history
fix gravitee-io/issues5240
  • Loading branch information
gcusnieux committed Mar 17, 2021
1 parent 51b5832 commit a318fe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export function getAvailableLanguages() {

export function loadDefaultTranslations() {
setLanguage('en');
return fetch(`/i18n/${i18n._lang}.json`)
return fetch(`i18n/${i18n._lang}.json`)
.then((response) => {
return response.json();
})
Expand Down

0 comments on commit a318fe4

Please sign in to comment.