1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 10:30:04 +01:00

ui - use relative url for i18n-helper fetching locales

This commit is contained in:
kumavis 2018-03-28 21:53:08 -07:00
parent fbdf497487
commit 8760dc6bda

View File

@ -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),