mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-23 23:58:06 +01:00
12 lines
231 B
JavaScript
12 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());
|
|
};
|