mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-23 23:16:58 +08:00
### What problem does this PR solve? Fix(i18n): Added new translations #3221 - Added and updated internationalization translations in multiple components ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --------- Co-authored-by: Kevin Hu <kevinhu.sh@gmail.com>
This commit is contained in:
@ -12,6 +12,7 @@ import {
|
||||
FormMessage,
|
||||
} from '@/components/ui/form';
|
||||
import { LlmModelType } from '@/constants/knowledge';
|
||||
import { t } from 'i18next';
|
||||
import { Funnel } from 'lucide-react';
|
||||
import { useFormContext, useWatch } from 'react-hook-form';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
@ -21,15 +22,15 @@ import { Button } from './ui/button';
|
||||
|
||||
const ModelTypes = [
|
||||
{
|
||||
title: 'All Models',
|
||||
title: t('flow.allModels'),
|
||||
value: 'all',
|
||||
},
|
||||
{
|
||||
title: 'Text-only Models',
|
||||
title: t('flow.textOnlyModels'),
|
||||
value: LlmModelType.Chat,
|
||||
},
|
||||
{
|
||||
title: 'Multimodal Models',
|
||||
title: t('flow.multimodalModels'),
|
||||
value: LlmModelType.Image2text,
|
||||
},
|
||||
];
|
||||
|
||||
@ -145,9 +145,9 @@ export const SelectWithSearch = forwardRef<
|
||||
align="start"
|
||||
>
|
||||
<Command>
|
||||
<CommandInput placeholder="Search ..." />
|
||||
<CommandInput placeholder={t('common.search') + '...'} />
|
||||
<CommandList>
|
||||
<CommandEmpty>No data found.</CommandEmpty>
|
||||
<CommandEmpty>{t('common.noDataFound')}</CommandEmpty>
|
||||
{options.map((group, idx) => {
|
||||
if (group.options) {
|
||||
return (
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
import { t } from 'i18next';
|
||||
import { Loader2 } from 'lucide-react';
|
||||
import { PropsWithChildren } from 'react';
|
||||
import { TableCell, TableRow } from './ui/table';
|
||||
@ -28,5 +29,5 @@ export function TableSkeleton({
|
||||
}
|
||||
|
||||
export function TableEmpty({ columnsLength }: { columnsLength: number }) {
|
||||
return <Row columnsLength={columnsLength}>No results.</Row>;
|
||||
return <Row columnsLength={columnsLength}>{t('common.noResults')}</Row>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user