gt  by generaltranslation

Automated i18n for React and Next.js applications

Created 1 year ago
783 stars

Top 45.0% on SourcePulse

GitHubView on GitHub
1 Expert Loves This Project
Project Summary

Automated i18n for developers is addressed by General Translation (GT), a suite of integrated tools for React and Next.js applications. It simplifies internationalization by allowing developers to translate entire components directly, rather than refactoring content into separate dictionaries, significantly reducing development overhead.

How It Works

GT integrates i18n directly into React components using a simple <T> wrapper. The system handles the translation process automatically, abstracting away the complexity of traditional i18n dictionary management. Key components include gt-react and gt-next for framework integration, gtx-cli for setup, and locadex, an AI agent designed to automate i18n within complex codebases. Build-time compilation is supported via @generaltranslation/compiler for popular bundlers like Webpack and Vite.

Quick Start & Requirements

  • Installation: Run the setup wizard with npx gtx-cli@latest. Alternatively, use the locadex AI agent for project setup.
  • Prerequisites: React or Next.js application. A free API key is required from generaltranslation.com.
  • Documentation: Full documentation is available at https://generaltranslation.com/docs.

Highlighted Details

  • Enables translation of entire React components, not just individual strings.
  • Offers a suite of packages including framework-specific libraries (gt-react, gt-next), a core i18n library (gt-i18n), a CLI tool (gtx-cli), a Sanity Studio plugin (gt-sanity), and an AI localization agent (locadex).
  • The locadex AI agent automates i18n setup and management in complex codebases.
  • Build process integration via @generaltranslation/compiler supports Webpack, Vite, Rollup, and esbuild.

Maintenance & Community

  • Community support is available via Discord and GitHub Discussions.
  • Contributions are welcomed, with guidelines provided for contributors.

Licensing & Compatibility

  • License information is not specified in the provided README. Compatibility for commercial use or closed-source linking is therefore undetermined.

Limitations & Caveats

  • No specific limitations, alpha/beta status, or known bugs are mentioned in the provided README. The reliance on an external API key and service may introduce external dependencies.
Health Check
Last Commit

2 days ago

Responsiveness

Inactive

Pull Requests (30d)
42
Issues (30d)
0
Star History
114 stars in the last 30 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), Travis Fischer Travis Fischer(Founder of Agentic), and
2 more.

lingo.dev by lingodotdev

0.8%
5k
CLI tool for web & mobile localization via LLMs
Created 1 year ago
Updated 3 days ago
Feedback? Help us improve.