Thanks to visit codestin.com
Credit goes to github.com

Skip to content

CodyBontecou/i18n-ai

Repository files navigation

i18n-AI - Local AI-Powered Translation Tool

A web application that provides local, effortless internationalization (i18n) translations for developers. Translate your application's content into multiple languages using AI models that run directly in your browser, ensuring privacy and speed.

Features

  • Local Translation: All translations run locally in your browser using HuggingFace models - no data sent to external servers
  • Multiple Languages: Support for 200+ languages including English, French, Spanish, German, Chinese, Japanese, Hindi, and more
  • File Format Support: Works with .json, .yaml, .yml, .js, and .ts files
  • Privacy-First: Your translation data never leaves your browser
  • Open Source: Free and open-source - no restrictions on usage

Technology Stack

Prerequisites

  • Node.js 18+ and npm/pnpm/yarn/bun

Getting Started

1. Clone the repository

git clone https://github.com/yourusername/i18n-ai.git
cd i18n-ai

2. Install dependencies

# npm
npm install

# pnpm
pnpm install

# yarn
yarn install

# bun
bun install

3. Run the development server

# npm
npm run dev

# pnpm
pnpm run dev

# yarn
yarn dev

# bun
bun run dev

The application will be available at http://localhost:3000

Production Deployment

Build for production

# npm
npm run build

# pnpm
pnpm run build

# yarn
yarn build

# bun
bun run build

Vercel Deployment

Deploy directly to Vercel with the standard build command.

Preview production build locally

# npm
npm run preview

# pnpm
pnpm run preview

# yarn
yarn preview

# bun
bun run preview

Project Structure

i18n-ai/
├── components/          # Vue components
│   └── ui/             # UI components (shadcn-vue)
├── i18n/               # Translation files
├── lib/                # Utility functions and constants
├── pages/              # Nuxt pages
├── server/             # Server-side code
│   ├── api/           # API routes
│   └── utils/         # Server utilities
├── store/              # Pinia stores
├── content/            # Markdown content for blog
└── public/             # Static assets

Key Features Implementation

  • Local AI Translation: Uses Web Workers to run HuggingFace models in the browser
  • Multi-format Support: Parses and generates various file formats (JSON, YAML, JS/TS)
  • Responsive Design: Mobile-first approach with Tailwind CSS

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

[Add your license information here]

Support

For support, email [[email protected]] or open an issue in the GitHub repository.