This Translator app built with 🤗 Transformers.js + Tamagui + Next.js
Please check out the demo site or Vercel app.
The main apps are:
src
all the components and screensgit clone https://github.com/huuquyet/translator-tamagui.git
cd translator-tamagui
bun install
bun dev
Firefox users need to change the
dom.workers.modules.enabled
setting inabout:config
totrue
to enable Web Workers. Check out this issue for more details.
If you're installing a JavaScript-only dependency that will be used across platforms, install it :
bun add zustand
bun update --latest
You may potentially want to have the native module transpiled for the next app. If you get error messages with Cannot use import statement outside a module
, you may need to use transpilePackages
in your next.config.js
and add the module to the array there.
npm i -g vercel
bunx vercel login
bunx vercel build
(add --prod
if wanna build production version)bunx vercel --prebuilt
(add --prod
if wanna deploy to production)