[Glitch] Add language dropdown to compose in web UI
Port 0cdb077570
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
12
app/javascript/flavours/glitch/actions/languages.js
Normal file
12
app/javascript/flavours/glitch/actions/languages.js
Normal file
@ -0,0 +1,12 @@
|
||||
import { saveSettings } from './settings';
|
||||
|
||||
export const LANGUAGE_USE = 'LANGUAGE_USE';
|
||||
|
||||
export const useLanguage = language => dispatch => {
|
||||
dispatch({
|
||||
type: LANGUAGE_USE,
|
||||
language,
|
||||
});
|
||||
|
||||
dispatch(saveSettings());
|
||||
};
|
Reference in New Issue
Block a user