~cytrogen/masto-fe

ref: 5c79cd6cf732c348b3cf63e9e6c79d189e42d08d masto-fe/app/javascript/flavours/glitch/actions/languages.js -rw-r--r-- 231 bytes
5c79cd6c — Cytrogen [chore] Add .gstack/ to gitignore 5 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
import { saveSettings } from "./settings";

export const LANGUAGE_USE = "LANGUAGE_USE";

export const useLanguage = language => dispatch => {
  dispatch({
    type: LANGUAGE_USE,
    language,
  });

  dispatch(saveSettings());
};