gleef push command uploads your translation changes to Gleef without triggering AI translation. Use this command when you want to push manually edited translations or updates to existing keys.
To push changes AND generate AI translations for new keys, use
gleef translate instead.Usage
Options
| Flag | Short | Description |
|---|---|---|
--match | -m | Filter translations by key pattern |
--namespace | -n | Filter translations by namespace/file pattern (e.g., “auth” or “auth|common”) |
--skip-review | -s | Publish translations immediately instead of creating drafts |
What it does
Thepush command:
- Analyzes local files - Compares your local translations with remote state
- Detects changes - Identifies new keys and modified translations
- Handles conflicts - Checks for conflicts with remote edits
- Uploads changes - Pushes your translations to Gleef without AI translation
- Creates drafts - Sets up translations for team review (unless
--skip-reviewis used)
Basic Usage
Push All Changes
Filter by Key Pattern
Filter by Namespace
Skip Review Process
Example Output
Pushing Changes
No Changes to Push
Pattern Matching
The--match flag supports flexible pattern matching:
Wildcard Patterns
Complex Patterns
Conflict Resolution
If there are conflicts with remotely edited translations, the command will stop and show details:Resolving Conflicts
- Update locally - Change your local value to match the remote
- Update remotely - Change the value in Gleef Studio
- Pull first - Run
gleef pullto get latest changes, then push
When to Use Push vs Translate
Use gleef push when… | Use gleef translate when… |
|---|---|
| You’ve manually edited translations | You have new keys that need AI translation |
| You want to upload changes without translation | You want AI to generate translations |
| You’re updating existing translations | You’re adding new content |
| You have translations from another source | You want to leverage AI translation |
Review Workflow
Default Behavior (Draft Mode)
By default, changes are pushed as drafts for team review:- Changes uploaded - Your edits are pushed to Gleef
- Drafts created - Changes are marked as drafts in Gleef Studio
- Team reviews - Your team can review and approve in Gleef Studio
- Pull approved - Use
gleef pullto sync approved translations
Skip Review Mode
With--skip-review, changes are published immediately:
- Automated workflows
- Non-critical updates
- When you don’t need team review
Examples
Development Workflow
Feature Development
Namespace-Specific Push
Error Handling
Common Errors
Authentication Error:gleef login to re-authenticate
Configuration Error:
gleef init or check your .gleef/config.json
Network Error:
Best Practices
- Pull latest changes -
gleef pullto get recent updates - Use patterns for targeted updates - Filter with
--matchfor focused pushes - Review in Gleef Studio - Check translations quality and ask for review
- Coordinate with team - Ensure reviewers know about pending changes
Integration Examples
NPM Scripts
GitHub Actions
Next Steps
After pushing changes:Review in Studio
Review and approve translations in Gleef Studio
Pull Updates
Sync approved translations back to your project