GitHub App
The Locadex GitHub app automatically internationalizes your codebase by monitoring your repository and committing to pull requests with translations whenever you push changes.
Setup Process
Step 1: Sign into Your Account
Go to your General Translation dashboard and sign in to your account. Only Pro and Enterprise users can use the GitHub app.
Step 2: Connect GitHub
- Navigate to the GitHub integration section in your dashboard
- Click "Connect GitHub" to link your GitHub account
- You'll be redirected to GitHub to authorize the connection
Step 3: Install the GitHub App
- After connecting GitHub, you'll be redirected to install the Locadex GitHub app
- Choose which repositories to give Locadex access to:
- Install on all repositories, or
- Select specific repositories
- Click "Install" to complete the GitHub app installation
Step 4: Link Repository to Project
- Back in your GT dashboard, select the repository you want to internationalize
- This connects your repo to your translation settings and target languages
- Only one repository can be linked to a project, but you can create multiple projects, each with a different repository
Step 5: Configure Settings
On the configuration screen, set up:
- Target Languages: Choose which locales to translate into
- App Directory: Specify the directory if you're using a monorepo (e.g.,
apps/web/
) - Branch Prefix: Customize the prefix for branches Locadex creates (default:
locadex/
)
Step 6: Complete Installation
- Review your configuration settings
- Click "Install" to activate Locadex for your repository
- You'll be taken to an overview page showing your connected GitHub repository
What Happens Next
Initial Setup
Once you complete the installation:
- Immediate PR Creation: Locadex will create a pull request on your main branch
- Full Setup: This PR runs the complete Locadex setup command that:
- Installs our libraries
- Configures your project for internationalization
- Sets up the translation infrastructure
- Review & Merge: Review the PR and merge it to complete your i18n setup
Ongoing Operation
After the initial setup is merged:
- Locadex monitors your main or specified branch for pull requests
- When you push new code with translatable content wait for Locadex to add its commit to the PR
- Once Locadex commits to the PR, it is safe to merge -- your new code is internationalized
- Your app stays translated without manual intervention
Monitoring Your Repository
Dashboard Status
In your GT dashboard, you can monitor:
- Repository Status: Active monitoring indicator
- Configuration: Current settings and target languages
GitHub Integration
- Status Checks: Locadex adds status updates to pull requests
- Check Runs: GitHub shows Locadex processing status
Troubleshooting
Common Issues
Locadex not creating PRs
- Verify the GitHub app has repository access
- Check that commits contain translatable content
Configuration changes needed
- Update branch settings in your GT dashboard
- Changes apply to new commits after the update
Locadex GitHub app is currently in open research preview.
See Also
- Locadex CLI - Command-line interface
How is this guide?