edit this page Missing Translations

Command localization:missing

This command parses all your code and generate according lang files in all lang/XXX/ directories.

Use artisan localization:missing for more information about options.

Examples

Generate all lang files
artisan localization:missing
Generate all lang files and set new lemma values

3 commands below produce the same output:

artisan localization:missing
artisan localization:missing --new-value
artisan localization:missing --new-value="%LEMMA"

You can customize the default generated values for unknown lemmas.

The following command let new values empty:

artisan localization:missing --new-value=""

The following command prefixes all lemmas values with "Please translate this : "

artisan localization:missing --new-value="Please translate this : %LEMMA"

The following command prefixes all lemmas values with "Please translate this !"

artisan localization:missing --new-value='Please translate this!'
Dirty option for shell integration
#!/bin/bash

php artisan localization:missing --dirty
if [ $? -eq 0 ]; then
  echo "Nothing to do, GO for release"
else
  echo "I will not release in production, lang files are not clean"
fi