Multilingual Support
Generate PR descriptions in 13 different languages
Supported Languages
LazyPR can generate pull request descriptions in 13 languages:
| Code | Language | Native Name | Flag |
|---|---|---|---|
en | English | English | 🇬🇧 |
es | Spanish | Español | 🇪🇸 |
pt | Portuguese | Português | 🇵🇹 |
fr | French | Français | 🇫🇷 |
de | German | Deutsch | 🇩🇪 |
it | Italian | Italiano | 🇮🇹 |
ja | Japanese | 日本語 | 🇯🇵 |
ko | Korean | 한국어 | 🇰🇷 |
zh | Chinese | 中文 | 🇨🇳 |
ru | Russian | Русский | 🇷🇺 |
nl | Dutch | Nederlands | 🇳🇱 |
pl | Polish | Polski | 🇵🇱 |
tr | Turkish | Türkçe | 🇹🇷 |
Default language: English (en)
Setting Default Language
Configure your preferred language globally:
lazypr config set LOCALE=es # Spanish
lazypr config set LOCALE=ja # Japanese
lazypr config set LOCALE=de # GermanAll subsequent PR generations will use your configured language:
lazypr main # Uses your configured localeOne-Time Language Override
Generate a PR in a different language without changing your config:
lazypr main -l fr # French for this run only
lazypr main -l zh # Chinese for this run onlyThis is useful when:
- Working on international projects
- Collaborating with non-native speakers
- Creating PRs for specific regional teams
Example Outputs
English (en)
feat: Add user authentication
## Changes
- Implement OAuth 2.0 authentication flow
- Add JWT token management
- Create login and logout endpointsSpanish (es)
feat: Agregar autenticación de usuario
## Cambios
- Implementar flujo de autenticación OAuth 2.0
- Agregar gestión de tokens JWT
- Crear endpoints de inicio y cierre de sesiónJapanese (ja)
feat: ユーザー認証を追加
## 変更内容
- OAuth 2.0認証フローの実装
- JWTトークン管理の追加
- ログイン・ログアウトエンドポイントの作成French (fr)
feat: Ajouter l'authentification utilisateur
## Modifications
- Implémenter le flux d'authentification OAuth 2.0
- Ajouter la gestion des tokens JWT
- Créer les endpoints de connexion et déconnexionUse Cases
International Teams
Teams distributed across regions can use their preferred language:
# Developer in Spain
lazypr config set LOCALE=es
# Developer in Japan
lazypr config set LOCALE=ja
# Developer in Germany
lazypr config set LOCALE=deEveryone works in their native language, improving clarity and reducing miscommunication.
Localized Projects
Projects with language-specific branches or repositories:
# Feature for English market
git checkout feature/us-payments
lazypr main -l en
# Feature for Japanese market
git checkout feature/jp-payments
lazypr main -l jaLearning and Documentation
Non-native English speakers can read and understand PR descriptions in their language, accelerating onboarding and collaboration.
Best Practices
Be Consistent
Pick a language for your project and stick to it. Mixed-language PRs can be confusing:
Good (consistent):
All PRs in English
All PRs in SpanishConfusing (mixed):
Some PRs in English, some in FrenchConsider Your Audience
Choose the language your reviewers and stakeholders understand best. If your team is international but uses English, stick with English.
Use Context for Better Results
Adding context in the target language can improve output quality:
lazypr main -l es -c "Enfocarse en cambios de seguridad"Conventional Commit Titles
Keep commit prefixes (feat:, fix:) in English even when descriptions are in other languages. This maintains compatibility with tooling:
# Good
feat: Añadir autenticación de usuario
# Less compatible with tooling
característica: Añadir autenticación de usuarioLazyPR will automatically use English conventional commit prefixes in titles even when the description is in another language.
Limitations
Code examples: Code snippets, variable names, and technical terms remain in their original language/format. Only descriptive text is translated.
Quality varies: Output quality for less common languages may vary. English and major European/Asian languages typically produce excellent results.
Context understanding: The AI understands commit messages in any language but works best when commits are in English or the target language.
Troubleshooting
Strange characters: Ensure your terminal supports UTF-8 encoding for proper display of non-Latin characters.
Poor translation quality: Try being more explicit in commit messages or adding context with the -c flag.
Language not working: Verify you're using the correct language code from the supported list above.
Checking Current Language
View your configured language:
lazypr config get LOCALEIf not set, LazyPR defaults to English (en).