aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/redux/dispatcher.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-02-21 11:52:28 +0800
committerFabio Berger <me@fabioberger.com>2018-02-21 11:52:28 +0800
commit38a308ce5b15b83f41e2646e50c2bfa7584ca3ab (patch)
tree565d00320347092fdaf0f312eb48d0d7e53f4d41 /packages/website/ts/redux/dispatcher.ts
parentc4f65681a160c4e62d947ba22b81246ac0b2c6a4 (diff)
downloaddexon-sol-tools-38a308ce5b15b83f41e2646e50c2bfa7584ca3ab.tar
dexon-sol-tools-38a308ce5b15b83f41e2646e50c2bfa7584ca3ab.tar.gz
dexon-sol-tools-38a308ce5b15b83f41e2646e50c2bfa7584ca3ab.tar.bz2
dexon-sol-tools-38a308ce5b15b83f41e2646e50c2bfa7584ca3ab.tar.lz
dexon-sol-tools-38a308ce5b15b83f41e2646e50c2bfa7584ca3ab.tar.xz
dexon-sol-tools-38a308ce5b15b83f41e2646e50c2bfa7584ca3ab.tar.zst
dexon-sol-tools-38a308ce5b15b83f41e2646e50c2bfa7584ca3ab.zip
Move translate to redux
Diffstat (limited to 'packages/website/ts/redux/dispatcher.ts')
-rw-r--r--packages/website/ts/redux/dispatcher.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/website/ts/redux/dispatcher.ts b/packages/website/ts/redux/dispatcher.ts
index 925f2aa29..5c40ded2c 100644
--- a/packages/website/ts/redux/dispatcher.ts
+++ b/packages/website/ts/redux/dispatcher.ts
@@ -6,6 +6,7 @@ import {
ActionTypes,
AssetToken,
BlockchainErrs,
+ Language,
Order,
ProviderType,
ScreenWidths,
@@ -211,4 +212,10 @@ export class Dispatcher {
data: injectedProviderName,
});
}
+ public updateSelectedLanguage(language: Language) {
+ this._dispatch({
+ type: ActionTypes.UpdateSelectedLanguage,
+ data: language,
+ });
+ }
}