diff --git a/src/workspaces/components/ColorPicker.tsx b/src/workspaces/components/ColorPicker.tsx index 989e52cb..bd722854 100644 --- a/src/workspaces/components/ColorPicker.tsx +++ b/src/workspaces/components/ColorPicker.tsx @@ -1,11 +1,15 @@ import { Input } from '@/components/ui/input'; +import { useTranslation } from '@/components/locales'; type ColorPickerProps = { value?: string; name: string; label?: string }; export const ColorPicker = (props: ColorPickerProps) => { const { value = '#000000', name, label } = props; + const { t } = useTranslation(); return (
{command}
{onRun && (
@@ -36,7 +38,7 @@ export const CommandBlock = ({ label, command, onRun }: CommandBlockProps) => {
type="button"
onClick={copy}
className="shrink-0 p-1.5 rounded hover:bg-white/10 cursor-pointer transition-colors"
- title="Copy command"
+ title={t('commandBlock.copy')}
>
{copied ?