
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
create-ui18n-app
Advanced tools
⚡ Create a fully internationalized app in 30 seconds with React, Vue, Angular, or Svelte - zero config required
{{DESCRIPTION}}
A modern, type-safe Node.js REST API with built-in internationalization powered by UI18n. This project provides a robust foundation for building multilingual APIs with comprehensive error handling, security features, and developer-friendly tooling.
# Install dependencies
npm install
# Copy environment configuration
cp .env.example .env
# Build the project
npm run build
# Start development server
npm run dev
The API will be available at http://localhost:3000
# Build for production
npm run build
# Start production server
npm start
/health - Health check and system status/api - API documentation and information/api/translate/:text - Simple translation to current language/api/translate/:text/:target - Translate to specific target language/api/translate - Advanced translation with options/api/languages - Get supported languages/api/status - Get API status and statistics/api/language - Get current language information/api/language - Switch current language/api/detect - Detect language from text/api/stats - Get translation statistics# Translate to current language (auto-detected from headers)
curl "http://localhost:3000/api/translate/Hello World"
# Translate to specific language
curl "http://localhost:3000/api/translate/Hello World/zh"
curl -X POST http://localhost:3000/api/translate \\
-H "Content-Type: application/json" \\
-H "Accept-Language: zh-CN" \\
-d '{
"text": "Welcome to our API",
"target_language": "zh",
"context": "greeting",
"format": "text"
}'
curl -X POST http://localhost:3000/api/detect \\
-H "Content-Type: application/json" \\
-d '{
"text": "こんにちは世界"
}'
curl -X POST http://localhost:3000/api/language \\
-H "Content-Type: application/json" \\
-d '{
"language": "zh"
}'
{{#each SUPPORTED_LANGUAGES}}
The API automatically detects the preferred language from:
?lang=zhX-Language: zhAccept-Language: zh-CN,zh;q=0.9,en;q=0.8{{DEFAULT_LANGUAGE}}locales/[language].jsonsupportedLanguages array in src/middleware/i18n.ts{{PROJECT_NAME}}/
├── src/
│ ├── index.ts # Application entry point
│ ├── app.ts # Express app configuration
│ ├── middleware/
│ │ ├── i18n.ts # Internationalization middleware
│ │ └── error.ts # Error handling middleware
│ ├── routes/
│ │ ├── api.ts # Main API routes
│ │ └── i18n.ts # Language management routes
│ └── utils/
│ └── translation.ts # Translation utilities
├── locales/ # Translation files
│ ├── en.json # English translations
│ └── zh.json # Chinese translations
├── dist/ # Built JavaScript files
├── .env.example # Environment configuration template
├── package.json # Dependencies and scripts
├── tsconfig.json # TypeScript configuration
└── README.md # This file
Copy .env.example to .env and configure:
# Server Configuration
PORT=3000
NODE_ENV=development
# UI18n Configuration
UI18N_DEFAULT_LANGUAGE={{DEFAULT_LANGUAGE}}
UI18N_CACHE_ENABLED={{ENABLE_CACHING}}
# Security Configuration
CORS_ORIGIN=*
RATE_LIMIT_MAX_REQUESTS=100
The UI18n instance is configured with:
{{DEFAULT_LANGUAGE}}npm run dev - Start development server with hot reloadnpm run build - Build for productionnpm run build:watch - Build with watch modenpm start - Start production servernpm run type-check - Run TypeScript type checkingnpm run lint - Run ESLintnpm run lint:fix - Fix ESLint issuesnpm run clean - Clean build artifactsThe /health endpoint provides comprehensive system information:
Access /api/stats to get:
NODE_ENV=productionCORS_ORIGINFROM node:18-alpine
WORKDIR /app
COPY package*.json ./
RUN npm ci --only=production
COPY dist ./dist
COPY locales ./locales
EXPOSE 3000
CMD ["npm", "start"]
git checkout -b feature-namegit commit -am 'Add new feature'git push origin feature-nameThis project is licensed under the MIT License - see the LICENSE file for details.
Made with ❤️ using UI18n and create-ui18n-app
FAQs
⚡ Create a fully internationalized app in 30 seconds with React, Vue, Angular, or Svelte - zero config required
We found that create-ui18n-app demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.