fix(web): declare translation namespace dependencies (#42784)

This commit is contained in:
Stephen Zhou authored and GitHub committed 2026-09-23 04:43:00 +00:00
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 (