Download the PHP package incenteev/translation-checker-bundle without Composer

On this page you can find all versions of the php package incenteev/translation-checker-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package translation-checker-bundle

Translation Checker Bundle

This bundle provides you a few CLI commands to check your translations. These commands are designed to be usable easily in CI jobs

CI Latest Stable Version Latest Unstable Version Scrutinizer Code Quality

Installation

Installation is a quick (I promise!) 2 step process:

  1. Download IncenteevTranslationCheckerBundle
  2. Enable the Bundle

Step 1: Install IncenteevTranslationCheckerBundle with composer

Run the following composer require command:

Step 2: Enable the bundle

Note: If you use Flex, you have nothing to do at this step, as Flex does it for you.

Finally, enable the bundle in the kernel:

Warning: This bundle requires that the translator is enabled in FrameworkBundle.

Usage

The bundle provides a few CLI commands. To list them all, run:

All commands display a summary only by default. Run then in verbose mode to get a detailed report.

Finding missing translations

The incenteev:translation:find-missing command extracts necessary translations from our app source code, and then compare this list to the translation available for the tested locale. It will exit with a failure exit code if any missing translation is detected.

Warning: Translation extraction will not find all translations used by our app. So while a failure exit code means there is an issue, a success exit code does not guarantee that all translations are available. The recommended usage is to use this command for your reference locale only, and then test other locales by comparing them against the reference instead.

Comparing translations to a reference locale

The incenteev:translation:compare command compares available translations from 2 different locales and will exit with a failure exit code if catalogues are not in sync.

Note: this command may not work well for country variants of a locale (fr_FR). Use it for main locales.

Configuration

To use the commands comparing the catalogue to the extracted translations, you need to configure the bundles in which the templates should be parsed for translations. By default, only templates in templates (and app/Resources/views on Symfony 4 and older) are registered in the extractor. You can register bundles that will be processed too.

The bundle also supports extracting translations from JS files, for projects using willdurand/js-translation-bundle:


All versions of translation-checker-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0
symfony/framework-bundle Version ^4.4.29 || ^5.3.4 || ^6.0.0 || ^7.0.0
symfony/console Version ^4.4.29 || ^5.3.4 || ^6.0.0 || ^7.0.0
symfony/config Version ^4.4.29 || ^5.3.4 || ^6.0.0 || ^7.0.0
symfony/dependency-injection Version ^4.4.29 || ^5.3.4 || ^6.0.0 || ^7.0.0
symfony/finder Version ^4.4.29 || ^5.3.4 || ^6.0.0 || ^7.0.0
symfony/http-kernel Version ^4.4.29 || ^5.3.4 || ^6.0.0 || ^7.0.0
symfony/translation Version ^4.4.32 || ^5.3.4 || ^6.0.0 || ^7.0.0
symfony/yaml Version ^4.4.29 || ^5.3.4 || ^6.0.0 || ^7.0.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package incenteev/translation-checker-bundle contains the following files

Loading the files please wait ....