mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
2e5fb45be5
Port 0cdb077570
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
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());
|
|
};
|