https://github.com/generaltranslation/gt
⚛️ Automatic localization for devs 🌐
https://github.com/generaltranslation/gt
i18n internationalization javascript l10n localization nextjs react translation translations
Last synced: 7 days ago
JSON representation
⚛️ Automatic localization for devs 🌐
- Host: GitHub
- URL: https://github.com/generaltranslation/gt
- Owner: generaltranslation
- License: other
- Created: 2024-11-19T21:04:57.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2026-01-12T23:20:27.000Z (13 days ago)
- Last Synced: 2026-01-13T03:09:51.666Z (13 days ago)
- Topics: i18n, internationalization, javascript, l10n, localization, nextjs, react, translation, translations
- Language: TypeScript
- Homepage: https://generaltranslation.com/docs
- Size: 70.6 MB
- Stars: 772
- Watchers: 3
- Forks: 16
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
- awesome-i18n - general translation - component translation for Next.js with SSR/SSG (📦 Libraries / React / React Native)
README
# General Translation
General Translation (GT) is fully integrated suite of internationalization (i18n) tools for developers.
This open-source repo contains internationalization libraries for React frameworks like Next.js and React Router.
📖 For guides, examples, and API references, read the [docs](https://generaltranslation.com/docs).
🔑 Create a free API key for the translation service [generaltranslation.com](https://generaltranslation.com)!
💬 Join the [Discord community](https://discord.gg/W99K6fchSu) to get help and stay updated!
## Projects
- [gt-next](packages/next/README.md): AI-powered i18n library for Next.js
- [gt-react](packages/react/README.md): AI-powered i18n library for React
- [gtx-cli](packages/cli/README.md): CLI tool for continuous localization
- [generaltranslation](packages/core/README.md): Core TypeScript language infrastructure library
- [supported-locales](packages/supported-locales/README.md): Helper library for currently supported locales on [generaltranslation.com](https://generaltranslation.com)
## Add the `` component and see translations as you code:

## Features
### ⚛️ Translate entire React components, not just strings
- Just wrap your content in a `` component!
- No need for complex refactoring or managing JSON files.
```tsx
export default function Page() {
return (
You can write any JSX as children of the {''} component.
For example, you could write a link and have the text be
translated in context.
Even deeply nested components are translated in context.
Click me!
);
}
```
### 🔎 Feature parity with existing libraries
- GT libraries also support the same features as existing libraries like `next-intl` and `react-i18next`.
- Features such as dictionaries, plurals, currencies, and automatic routing are all supported.
### 🔧 Developer-friendly
- Setup is simple and can be done in minutes.
- All GT libraries are open-source and work standalone.
- You can use your own translation provider or use our free AI-powered translation service.
- No more managing translation keys like `t('menu.header.title')`.
- Just write everything in-line!
### 🧠 Free, context-aware AI translation service
- Translation hot reload in development
- Libraries integrate natively with the translation platform.
- Translations are generated for your app in seconds.
- HTML content is re-arranged and customized according to the language.
## Examples
See the [examples](examples) directory for some example projects that use our libraries.
## Installation
Any of the libraries can be installed via npm, yarn, pnpm, or bun.
For example, to install `gt-next`:
```bash
npm install gt-next
yarn add gt-next
```
See the [docs](https://generaltranslation.com/docs) for more information.
## Contributing
We welcome any contributions to the libraries. Please submit a pull request!