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

layout: default title: Getting Started nav_enabled: true nav_order: 1

Translation Checker for Laravel

Translation Checker is tool designed to help you find translations you forgot to add to your language files, check, and maintain translations in your project. It provides a set of commands to help with language files, ensuring consistency and completeness across your translations.

It works with Laravel and supports various frontend frameworks like Vue.js, React, and Svelte.

and as default looks for translations in the app/ and resources/ folders.

Installation

You can install the package via composer:

composer require bottelet/translation-checker --dev

Configuration

The Translation Checker can be configured using a PHP configuration file. This file allows you to set up translation services, specify source paths, and define the language folder.

The standard config tries to keep up with Laravel's default structure, but you can customize it if you need by publishing the configuration file.

php artisan vendor:publish --provider="Bottelet\TranslationChecker\TranslationCheckerServiceProvider"

Available Commands

  1. translations:check - Check, manage, and update translations
  2. translations:clean - Clean translations by removing unused keys
  3. translations:sort - Sort translation files
  4. translations:sync - Sync translations between language files

General Usage

To use Translation Checker, run the desired command in your terminal, followed by any required arguments or options. Each command is designed to help with a specific aspect of translation management.

The check command is particularly versatile. It scans the specified source_paths to find missing translations, can add them to your language files, and even translate them using the configured translation service.

For detailed information on each command, please refer to their individual documentation pages in the Basic Usage section:

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