Skip to content

A service to convert text file from simplified chinese into traditional chinese

License

Notifications You must be signed in to change notification settings

hi-upchen/txtconv

Repository files navigation

txtconv

A web service to convert text files from Simplified Chinese to Traditional Chinese.

Version 2.0

Built with modern web technologies for better performance and scalability:

  • Next.js 14 with App Router
  • OpenCC for Chinese text conversion
  • Vercel Blob for file archiving
  • TypeScript for type safety
  • Bulma CSS for styling

Features

  • Drag-and-drop file upload
  • Real-time conversion progress with SSE
  • Multiple file processing with sequential downloads
  • File validation (25MB limit, blocks non-text files)
  • Automatic file archiving to Vercel Blob
  • Character encoding detection

Getting Started

Prerequisites

  • Node.js 20+
  • Vercel Blob token (for file archiving)

Installation

npm install

Environment Setup

Create a .env file based on .env.example:

BLOB_READ_WRITE_TOKEN=your_vercel_blob_token

Development

npm run dev

Open http://localhost:3000 in your browser.

Build

npm run build
npm start

Testing

# Unit tests
npm test

# E2E tests
npm run test:e2e

Deployment

This application is optimized for deployment on Vercel:

  1. Connect your repository to Vercel
  2. Add BLOB_READ_WRITE_TOKEN to environment variables
  3. Deploy

License

MIT License - see LICENSE file for details

About

A service to convert text file from simplified chinese into traditional chinese

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •