src/Commands/MissingCommand.php
private function getDefaultValue($missingKey)
    {
        if (! $this->option('default')) {
            return null;
        }

        try {
            $missingKey = explode(':', $missingKey)[0];

            list($file, $key) = explode('.', $missingKey);

            $filePath = $this->manager->files()[$file][config('app.locale')];

            return config('app.locale').":{$this->manager->getFileContent($filePath)[$key]}";
        } catch (\Exception $e) {
            return null;
        }
    }
private function getDefaultValue($missingKey)
    {
        if (! $this->option('default')) {
            return null;
        }

        try {
            $missingKey = explode(':', $missingKey)[0];

            list($file, $key) = explode('.', $missingKey);

            $filePath = $this->manager->files()[$file][config('app.locale')];

            return config('app.locale').":{$this->manager->getFileContent($filePath)[$key]}";
        } catch (\Exception $e) {
            return null;
        }
    }
private function getDefaultValue ( $ missingKey ) { if ( ! $ this -> option ( 'default' ) ) { return null ; } try { $ missingKey = explode ( ':' , $ missingKey ) [ 0 ] ; list ( $ file , $ key ) = explode ( '.' , $ missingKey ) ; $ filePath = $ this -> manager -> files ( ) [ $ file ] [ config ( 'app.locale' ) ] ; return config ( 'app.locale' ) . ":{$this->manager->getFileContent($filePath)[$key]}" ; } catch ( \ Exception $ e ) { return null ; } }
Get translation in default locale for the given key.

@param string $missingKey
@return string
Get translation in default locale for the given key .