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:
parent
fbdf497487
commit
8760dc6bda
@ -27,7 +27,7 @@ const getMessage = (locale, key, substitutions) => {
|
||||
|
||||
function fetchLocale (localeName) {
|
||||
return new Promise((resolve, reject) => {
|
||||
return fetch(`/_locales/${localeName}/messages.json`)
|
||||
return fetch(`./_locales/${localeName}/messages.json`)
|
||||
.then(response => response.json())
|
||||
.then(
|
||||
locale => resolve(locale),
|
||||
|
Loading…
Reference in New Issue
Block a user