Add language dropdown to compose in web UI (#18420)

This commit is contained in:
Eugen Rochko
2022-05-16 11:18:35 +02:00
committed by GitHub
parent c3fac61f56
commit 0cdb077570
15 changed files with 513 additions and 16 deletions

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