mirror of
https://github.com/trezor/trezor-wallet
synced 2025-01-07 14:50:52 +00:00
Merge pull request #426 from trezor/fix/locales-url
Fix/URL for fetching locales
This commit is contained in:
commit
ef59babb05
@ -85,7 +85,7 @@ export const toggleSidebar = (): WalletAction => ({
|
|||||||
});
|
});
|
||||||
|
|
||||||
export const fetchLocale = (locale: string): ThunkAction => (dispatch: Dispatch): void => {
|
export const fetchLocale = (locale: string): ThunkAction => (dispatch: Dispatch): void => {
|
||||||
fetch(`/l10n/${locale}.json`)
|
fetch(`./l10n/${locale}.json`)
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(messages => {
|
.then(messages => {
|
||||||
dispatch({
|
dispatch({
|
||||||
|
Loading…
Reference in New Issue
Block a user