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

Translation Checker Laravel Package

bottelet/translation-checker

Laravel dev tool to scan your code for translation strings, detect missing keys in lang files (JSON/PHP), and sync them across locales. Optionally use AI to auto-translate missing entries; otherwise adds null placeholders to keep files consistent.

View on GitHub
Deep Wiki
Context7

title: Translations check layout: default parent: Basic Usage nav_order: 1

translations:check

The translations:check command is used to find missing translations in your project.

Usage

php artisan translations:check {target} [options]

Arguments

  • target: The target language for the translations

Options

  • --source: The source language used for the translation provider (default: 'en')
  • --translate-missing: Translate missing translations using the translation service
  • --sort: Sort JSON translation files

Description

This command checks for missing translations in the config source_paths files, and finds missing translations and add them accordingly. It can optionally translate missing entries and sort the JSON files.

When providing the --translate-missing option, the command will need a source language to translate the missing entries. This will generally be the primary language used in your application, defaulting to en.

Examples

  1. Check translations for French:
php artisan translations:check fr
  1. Check translations for German, translating missing entries and sorting the file:
php artisan translations:check de --translate-missing --sort
  1. Check translations for Spanish, using Italian as the source language:
php artisan translations:check es --source=it

The command will display the results, showing whether any missing translations were found and updated.

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