Skip to content

Commit

Permalink
🚧 wip: temporally hide more language
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Oct 18, 2023
1 parent 808e4ca commit 8cf4d54
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@ import { ActionIconGroupItems } from '@lobehub/ui/es/ActionIconGroup';
import { LanguagesIcon } from 'lucide-react';
import { useTranslation } from 'react-i18next';

import { localeOptions } from '@/locales/options';

export const useCustomActions = () => {
const { t } = useTranslation('chat');

const translate = {
children: localeOptions.map((i) => ({
key: i.value,
label: t(`lang.${i.value}`, { ns: 'common' }),
})),
// children: localeOptions.map((i) => ({
// key: i.value,
// label: t(`lang.${i.value}`, { ns: 'common' }),
// })),
icon: LanguagesIcon,
key: 'translate',
label: t('translateTo'),
Expand Down

0 comments on commit 8cf4d54

Please sign in to comment.