ui - use relative url for i18n-helper fetching locales

feature/default_network_editable
kumavis 7 years ago
parent fbdf497487
commit 8760dc6bda
  1. 2
      ui/i18n-helper.js

@ -27,7 +27,7 @@ const getMessage = (locale, key, substitutions) => {
function fetchLocale (localeName) { function fetchLocale (localeName) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
return fetch(`/_locales/${localeName}/messages.json`) return fetch(`./_locales/${localeName}/messages.json`)
.then(response => response.json()) .then(response => response.json())
.then( .then(
locale => resolve(locale), locale => resolve(locale),

Loading…
Cancel
Save