Dev Design Library

Translate Block

Translate across 24 directed offline Opus-MT language pairs (English-centric, every model id verified) with swap-direction that carries the output into the input, per-panel character counts, copy-with-confirmation, and cancel. Resolves the.

Translate Block preview
Library
LocalMode
Framework
React
Type
block
License
MIT
Dependencies
@localmode/chrome-ai, @localmode/core, @localmode/react, @localmode/transformers
Install
npx shadcn add @localmode/ui/ui/blocks/writing-tools/translate
Files
  • apps/ui/src/app/blocks/writing-tools/translate/translate.tsx
  • packages/react/src/index.ts
  • packages/core/src/index.ts
  • apps/ui/registry/localmode/input-controls/language-pair-selector/language-pair-selector.tsx
  • apps/ui/registry/localmode/local-first/provider-badge/provider-badge.tsx
  • apps/ui/registry/localmode/local-first/chrome-ai-download-gate/chrome-ai-download-gate.tsx
  • apps/ui/registry/localmode/input-controls/copy-button/copy-button.tsx
  • apps/ui/registry/localmode/results/error-alert/error-alert.tsx
Source
https://github.com/LocalMode-AI/LocalMode

Categories

More from LocalMode