diff --git a/ui/js/actions/app.js b/ui/js/actions/app.js index 3640e8623..19e9025e0 100644 --- a/ui/js/actions/app.js +++ b/ui/js/actions/app.js @@ -298,10 +298,8 @@ export function doClearCache() { } export function doChangeLanguage(newLanguage) { - app.i18n.setLocale(newLanguage); - return { - type: types.CHANGE_LANGUAGE, - data: { newLanguage: newLanguage }, + return function(dispatch, getState) { + app.i18n.setLocale(newLanguage); }; } diff --git a/ui/js/constants/action_types.js b/ui/js/constants/action_types.js index 9057108bb..fcd8c9c12 100644 --- a/ui/js/constants/action_types.js +++ b/ui/js/constants/action_types.js @@ -115,8 +115,6 @@ export const CLAIM_REWARD_CLEAR_ERROR = "CLAIM_REWARD_CLEAR_ERROR"; export const FETCH_REWARD_CONTENT_COMPLETED = "FETCH_REWARD_CONTENT_COMPLETED"; //Language -export const CHANGE_LANGUAGE = "CHANGE_LANGUAGE"; -export const LANGUAGE_CHANGED = "LANGUAGE_CHANGED"; export const LANGUAGE_RESOLVED = "LANGUAGE_RESOLVED"; export const DOWNLOAD_LANGUAGE_STARTED = "DOWNLOAD_LANGUAGE_STARTED"; export const DOWNLOAD_LANGUAGE_SUCCEEDED = "DOWNLOAD_LANGUAGE_SUCCEEDED";