2022-10-26 06:59:21 +00:00
|
|
|
import { IStore } from '../app/types';
|
2022-09-13 12:54:48 +00:00
|
|
|
import { toggleDialog } from '../base/dialog/actions';
|
|
|
|
|
|
|
|
import LanguageSelectorDialogWeb from './components/LanguageSelectorDialog.web';
|
|
|
|
|
|
|
|
export * from './actions.any';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Signals that the local user has toggled the LanguageSelector button.
|
|
|
|
*
|
|
|
|
* @returns {{
|
|
|
|
* type: UPDATE_TRANSLATION_LANGUAGE
|
|
|
|
* }}
|
|
|
|
*/
|
2022-09-29 11:44:59 +00:00
|
|
|
export function toggleLanguageSelectorDialog() {
|
2022-10-26 06:59:21 +00:00
|
|
|
return function(dispatch: IStore['dispatch']) {
|
2022-09-13 12:54:48 +00:00
|
|
|
dispatch(toggleDialog(LanguageSelectorDialogWeb));
|
|
|
|
};
|
|
|
|
}
|