2017 © Pedro Peláez
 

symfony-bundle translation-tool-bundle

Check for duplicated translations code, unused translations codes, ...

image

afe/translation-tool-bundle

Check for duplicated translations code, unused translations codes, ...

  • Thursday, September 17, 2015
  • by debugall
  • Repository
  • 2 Watchers
  • 2 Stars
  • 97 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Installation :

composer require afe/translation-tool-bundle:dev-master
// AppKernel.php
public function registerBundles()
{
    ...
    $bundles = array(
        ...
        new Afe\TranslationToolBundle\AfeTranslationToolBundle(),
        ...
    );
    ...
}

Configuration :

# config.yml
afe_translation_tool:
    # translation files configuration
    translation_files_dir_path: "%kernel.root_dir%/.." # translation files root directory
    translation_files_locale: fr # locale of translations files to process
    translation_files_format: yml # translation files format to process (only yml is currently supported)
    excluded_translation_file_mask: ["dtc_*"] # excluded translations files from process
    excluded_translation_directories: ["vendor"] # exclude translation files of this directory

    # processed directory configuration
    src_dir_path: "%kernel.root_dir%/.." # src root directory
    format_to_look_into: ["twig", "html", "php", "js"] # look for unused translation in those given files
    excluded_file_mask: ["fr.json", "fr.js"] # file to exclude from the process
    excluded_directories: ["node_modules", "vendor", "data", "compiled", "bootstrap", "assets"] # file to exclude from the process

Usage :

# display duplicated translations code
php app/console afe:translation:check:codes

# display unused translations code
php app/console afe:translation:unused:codes

The Versions

17/09 2015

dev-master

9999999-dev https://github.com/debugall/translationtoolbundle

Check for duplicated translations code, unused translations codes, ...

  Sources   Download

MIT

The Requires

 

by Faye

symfony2 unsused translation duplicated translation

07/09 2015

0.1.0

0.1.0.0 https://github.com/debugall/translationtoolbundle

Check for duplicated translations code, unused translations codes, ...

  Sources   Download

MIT

The Requires

 

by Faye

unsused duplicated translation