aboutsummaryrefslogtreecommitdiffstats
path: root/ui/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/index.js')
-rw-r--r--ui/index.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/index.js b/ui/index.js
index 1e0e9f1cc..8fb000d85 100644
--- a/ui/index.js
+++ b/ui/index.js
@@ -69,6 +69,11 @@ async function startApp (metamaskState, accountManager, opts) {
store.dispatch(actions.updateMetamaskState(metamaskState))
})
+ // used by screenshotter tooling
+ global.setLocale = (key) => {
+ store.dispatch(actions.updateCurrentLocale(key))
+ }
+
// start app
render(
h(Root, {