public function mergeTranslations(LocaleContract $locale = null, array $ignored = [])
    {
        $merged       = [];
        $translations = array_merge(
            is_null($locale) ? [] : $locale->getTranslations(),
            $this->getTranslations()
        );

        foreach ($translations as $key => $trans) {
            if ( ! Str::startsWith($key, $ignored)) {
                $merged[$key] = $trans;
            }
        }

        return $merged;
    }
public function mergeTranslations(LocaleContract $locale = null, array $ignored = [])
    {
        $merged       = [];
        $translations = array_merge(
            is_null($locale) ? [] : $locale->getTranslations(),
            $this->getTranslations()
        );

        foreach ($translations as $key => $trans) {
            if ( ! Str::startsWith($key, $ignored)) {
                $merged[$key] = $trans;
            }
        }

        return $merged;
    }
public function mergeTranslations ( LocaleContract $ locale = null , array $ ignored = [ ] ) { $ merged = [ ] ; $ translations = array_merge ( is_null ( $ locale ) ? [ ] : $ locale -> getTranslations ( ) , $ this -> getTranslations ( ) ) ; foreach ( $ translations as $ key => $ trans ) { if ( ! Str :: startsWith ( $ key , $ ignored ) ) { $ merged [ $ key ] = $ trans ; } } return $ merged ; }
Merge translations.

@param  \Arcanedev\LaravelLang\Contracts\Entities\Locale|null  $locale
@param  array      $ignored

@return array
Merge translations .