Eugen Rochko 2e5fb45be5 [Glitch] Add language dropdown to compose in web UI
Port 0cdb07757050825725cac76f1c9cf11cf64acc0a to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
2022-05-16 23:06:29 +02:00

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());
};