bastodon/app/javascript/mastodon/actions/languages.js

12 خطوط
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());
};