1 import { type FC } from 'react';
2 import { useDispatch, useSelector } from 'react-redux';
4 import { c } from 'ttag';
6 import { LocaleSelect } from '@proton/pass/components/Form/legacy/LocaleSelect';
7 import { settingsEditIntent } from '@proton/pass/store/actions';
8 import { selectLocale } from '@proton/pass/store/selectors';
10 import { SettingsPanel } from './SettingsPanel';
12 export const Locale: FC = () => {
13 const locale = useSelector(selectLocale);
14 const dispatch = useDispatch();
17 <SettingsPanel title={c('Label').t`Language`}>
20 onChange={(locale) => dispatch(settingsEditIntent('locale', { locale }, true))}