mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-18 04:43:24 +00:00
13 lines
231 B
JavaScript
13 lines
231 B
JavaScript
|
import { saveSettings } from './settings';
|
||
|
|
||
|
export const LANGUAGE_USE = 'LANGUAGE_USE';
|
||
|
|
||
|
export const useLanguage = language => dispatch => {
|
||
|
dispatch({
|
||
|
type: LANGUAGE_USE,
|
||
|
language,
|
||
|
});
|
||
|
|
||
|
dispatch(saveSettings());
|
||
|
};
|