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