1
0
mirror of https://github.com/glitch-soc/mastodon.git synced 2025-01-29 11:03:08 -05:00

13 lines
231 B
JavaScript
Raw Normal View History

import { saveSettings } from './settings';
export const LANGUAGE_USE = 'LANGUAGE_USE';
export const useLanguage = language => dispatch => {
dispatch({
type: LANGUAGE_USE,
language,
});
dispatch(saveSettings());
};