mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
fix(web): declare translation namespace dependencies (#42784)
This commit is contained in:
1 parent
232f29c355
commit
5f899e428a
1671 files changed
+2509
-2031
No files matched your search
@@ -9,7 +9,7 @@ type CommandProps = {
|
||||
type: 'bold' | 'italic' | 'strikethrough' | 'link' | 'bullet'
|
||||
}
|
||||
const Command = ({ type }: CommandProps) => {
|
||||
const { t } = useTranslation()
|
||||
const { t } = useTranslation(['workflow'])
|
||||
const selectedIsBold = useStore((s) => s.selectedIsBold)
|
||||
const selectedIsItalic = useStore((s) => s.selectedIsItalic)
|
||||
const selectedIsStrikeThrough = useStore((s) => s.selectedIsStrikeThrough)
|
||||
|
||||
@@ -6,7 +6,7 @@ import { useTranslation } from 'react-i18next'
|
||||
import { useFontSize } from './hooks'
|
||||
|
||||
const FontSizeSelector = () => {
|
||||
const { t } = useTranslation()
|
||||
const { t } = useTranslation(['workflow'])
|
||||
const FONT_SIZE_LIST = [
|
||||
{
|
||||
key: '12px',
|
||||
|
||||
@@ -27,7 +27,7 @@ const Operator = ({
|
||||
showAuthor,
|
||||
onShowAuthorChange,
|
||||
}: OperatorProps) => {
|
||||
const { t } = useTranslation()
|
||||
const { t } = useTranslation(['common', 'workflow'])
|
||||
const [open, setOpen] = useState(false)
|
||||
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user