Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Status Generator

Status Generator Laravel Package

laravel-lang/status-generator

Dev tool for Laravel Lang that generates locale status by creating missing locales and downloading/copying translation files from Laravel projects (framework, laravel, jetstream). Provides CLI commands to create locales and fetch sources from URLs/paths.

View on GitHub
Deep Wiki
Context7

Laravel Lang: Status Generator is a developer tool for generating and tracking translation locale status across Laravel-related projects. It provides a simple CLI workflow to create missing locales and download/copy language files from upstream sources such as the Laravel framework, Laravel app skeleton, and Jetstream.

Use vendor/bin/lang commands to automate locale setup and keep translations in sync, with options to control what gets copied and how deep the tool inspects keys.

  • Create locales (lang create) for a specific locale or generate all missing ones
  • Download translations from ZIP/URLs with project/version metadata
  • Copy language files into your app via --copy paths
  • Only-copy mode (--only-copy) to skip key lookups and just mirror files
  • Designed for common Laravel ecosystems: framework, laravel, jetstream
Frequently asked questions about Status Generator
How do I generate missing locales for my Laravel app using this package?
Run `vendor/bin/lang create` without arguments to generate all missing locales, or specify a locale with `--locale=es` to create just one. The tool scans your app for existing translations and creates empty files for unsupported languages in your `resources/lang` directory.
Can I download translations directly from Laravel/framework or Jetstream using this package?
Yes. Use `vendor/bin/lang download --url=[ZIP_URL] --project=framework --ver=9.x` to fetch translations from Laravel’s official repositories. The package supports Laravel, Jetstream, and custom URLs, with version-specific metadata to ensure compatibility.
What Laravel versions does this package support?
The package is fully compatible with Laravel 8.x through 13.x. It abstracts version-specific localization changes (e.g., `trans_choice` support) internally, so you don’t need to adjust your code when upgrading within this range.
How do I copy translations to a custom path instead of the default `resources/lang`?
Use the `--copy` flag to specify paths, like `--copy=lang --copy=custom/path`. For example, `vendor/bin/lang download --url=[URL] --copy=app/locales` will mirror files to `app/locales` instead of the default directory.
Does this package work with Google Translate API for auto-translation?
Yes, the `lang translate` command integrates with Google Cloud Translate to auto-generate translations. You’ll need a Google API key, but be aware of usage costs—this is best for drafts or low-priority keys before human review.
Can I use this in CI/CD to validate translation coverage?
Absolutely. Run `vendor/bin/lang status` to generate a machine-readable report of missing translations. Integrate this into your pipeline (e.g., GitHub Actions) to enforce minimum coverage thresholds or block merges if translations fall below a set percentage.
What happens if I run `lang download` with `--only-copy`?
The `--only-copy` flag skips key-level validation and simply mirrors files from the source to your specified paths. This is useful for bulk syncs where you trust the source files (e.g., copying entire `lang` directories) without checking for missing keys.
Are there alternatives to Google Translate for auto-translation?
The package doesn’t natively support alternatives like DeepL or LibreTranslate, but you can extend it by modifying the `TranslateService` or using a wrapper around your preferred API. The core CLI commands remain agnostic to the translation provider.
How do I handle conflicts when syncing translations from upstream (e.g., Laravel/framework) into my custom codebase?
The package doesn’t merge files automatically to avoid overwriting custom translations. Use `--only-copy` to mirror files, then manually resolve conflicts. For automated workflows, consider pre-processing files or using a diff tool to highlight changes before applying updates.
What should I do if the package fails to parse a translation file (e.g., corrupted JSON)?
Check the error logs for the specific file and path. You can skip problematic files by using `--only-copy` or manually validate the source before downloading. For production, wrap the command in a try-catch block or use a CI step to pre-validate files.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport