Commit f257255c authored by ZeHiro's avatar ZeHiro
Browse files

Remove translation from reducers to ease adding test over reducers. Fixes #581

parent 10ed3951
......@@ -58,7 +58,7 @@ class BaseApp extends React.Component {
}
if (this.props.processingReason) {
return <Loading message={ this.props.processingReason } />;
return <Loading message={ $t(this.props.processingReason) } />;
}
if (!this.props.hasAccess) {
......
......@@ -609,7 +609,7 @@ function reduceRunSync(state, action) {
}
debug('Starting sync...');
return u({ processingReason: $t('client.spinner.sync') }, state);
return u({ processingReason: 'client.spinner.sync' }, state);
}
function reduceRunAccountsSync(state, action) {
......@@ -631,7 +631,7 @@ function reduceRunAccountsSync(state, action) {
}
debug('Starting accounts sync...');
return u({ processingReason: $t('client.spinner.sync') }, state);
return u({ processingReason: 'client.spinner.sync' }, state);
}
function reduceMergeOperations(state, action) {
......@@ -718,7 +718,7 @@ function reduceResyncBalance(state, action) {
}
debug('Starting account balance resync...');
return u({ processingReason: $t('client.spinner.balance_resync') }, state);
return u({ processingReason: 'client.spinner.balance_resync' }, state);
}
function reduceDeleteAccountInternal(state, accountId) {
......@@ -785,7 +785,7 @@ function reduceDeleteAccount(state, action) {
}
debug('Deleting account...');
return u({ processingReason: $t('client.spinner.delete_account') }, state);
return u({ processingReason: 'client.spinner.delete_account' }, state);
}
function reduceDeleteAccess(state, action) {
......@@ -823,7 +823,7 @@ function reduceDeleteAccess(state, action) {
}
debug('Deleting access...');
return u({ processingReason: $t('client.spinner.delete_account') }, state);
return u({ processingReason: 'client.spinner.delete_account' }, state);
}
function reduceCreateAccess(state, action) {
......@@ -849,7 +849,7 @@ function reduceCreateAccess(state, action) {
}
debug('Creating access...');
return u({ processingReason: $t('client.spinner.fetch_account') }, state);
return u({ processingReason: 'client.spinner.fetch_account' }, state);
}
function reduceUpdateAccess(state, action) {
......
......@@ -5,8 +5,7 @@ import DefaultSettings from '../../shared/default-settings';
import {
assert,
debug,
setupTranslator,
translate as $t
setupTranslator
} from '../helpers';
import * as backend from './backend';
......@@ -254,7 +253,7 @@ function reduceUpdateAccess(state, action) {
}
debug('Updating access...');
return u({ processingReason: $t('client.spinner.fetch_account') }, state);
return u({ processingReason: 'client.spinner.fetch_account' }, state);
}
function reduceImportInstance(state, action) {
......@@ -274,7 +273,7 @@ function reduceImportInstance(state, action) {
}
debug('Importing instance...');
return u({ processingReason: $t('client.spinner.import') }, state);
return u({ processingReason: 'client.spinner.import' }, state);
}
function reduceExportInstance(state, action) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment