aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-03-30 15:48:37 +0800
committerkumavis <aaron@kumavis.me>2018-03-30 15:48:37 +0800
commitfcdfd48057db83801d37bc54b1a04c0a328ab24c (patch)
tree08a88352cacfc6c529215c451093ae1c07d9cfb1 /ui
parent5945c8cf67201f651eb98b000fbe6702b8ec6a88 (diff)
downloadtangerine-wallet-browser-fcdfd48057db83801d37bc54b1a04c0a328ab24c.tar
tangerine-wallet-browser-fcdfd48057db83801d37bc54b1a04c0a328ab24c.tar.gz
tangerine-wallet-browser-fcdfd48057db83801d37bc54b1a04c0a328ab24c.tar.bz2
tangerine-wallet-browser-fcdfd48057db83801d37bc54b1a04c0a328ab24c.tar.lz
tangerine-wallet-browser-fcdfd48057db83801d37bc54b1a04c0a328ab24c.tar.xz
tangerine-wallet-browser-fcdfd48057db83801d37bc54b1a04c0a328ab24c.tar.zst
tangerine-wallet-browser-fcdfd48057db83801d37bc54b1a04c0a328ab24c.zip
development - screenshotter - capture screens across all locales
Diffstat (limited to 'ui')
-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, {