mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-02-17 21:47:47 +00:00
* Updated all translations, moved into their own folders. * Switch translations to use Markdown component. * Remove markup tests, since were using a module now. * Fix flow errors, render react elements instead of dangerouslysetinnerhtml. * Make translate a connected component, so it updates with Redux. * Fix flow errors * First pass at returning raw when needed for placeholder. * Added aria test. * Fixed flow errors and linter warnings. * Move settimeout to saga. * Change reload to 250 ms from 1500 ms
12 lines
426 B
JavaScript
12 lines
426 B
JavaScript
import { takeEvery } from 'redux-saga/effects';
|
|
|
|
// @HACK For now we reload the app when doing a language swap to force non-connected
|
|
// data to reload. Also the use of timeout to avoid using additional actions for now.
|
|
function* handleLanguageChange() {
|
|
yield setTimeout(() => location.reload(), 250);
|
|
}
|
|
|
|
export default function* handleConfigChanges() {
|
|
yield takeEvery('CONFIG_LANGUAGE_CHANGE', handleLanguageChange);
|
|
}
|