app/Console/Commands/TranslationsSync.php
/**
     * Execute the console command.
     *
     * @return mixed
     */
Execute the console command.
@return mixed
Execute the console command . @return mixed
public function handle()
    {
        $locales = array_keys(config('laravellocalization.supportedLocales'));
        $default = config('app.locale');
        if (($key = array_search($default, $locales)) !== false) {
            unset($locales[$key]);
        }
        $defaultTranslations = $this->getTranslations($default);
        $otherTranslations = $this->getTranslationsForLocales($locales);
        $missingTranslations = $this->findMissingTranslations($defaultTranslations, $otherTranslations);
        dd($missingTranslations);
    }
public function handle ( ) { $ locales = array_keys ( config ( 'laravellocalization.supportedLocales' ) ) ; $ default = config ( 'app.locale' ) ; if ( ( $ key = array_search ( $ default , $ locales ) ) !== false ) { unset ( $ locales [ $ key ] ) ; } $ defaultTranslations = $ this -> getTranslations ( $ default ) ; $ otherTranslations = $ this -> getTranslationsForLocales ( $ locales ) ; $ missingTranslations = $ this -> findMissingTranslations ( $ defaultTranslations , $ otherTranslations ) ; dd ( $ missingTranslations ) ; }
Execute the console command.
Execute the console command .
//$this->parseFile(resource_path('lang/en/auth.php'));