src/Translate.php
protected function addResourceArray(array $resource): void
    {
        foreach ($resource as $locale => $value) {
            if ($locale === '@metadata') {
                $this->parseMetadata($value);
                continue;
            }
            $this->addSubresource($value, $locale);
        }
    }
protected function addResourceArray(array $resource): void
    {
        foreach ($resource as $locale => $value) {
            if ($locale === '@metadata') {
                $this->parseMetadata($value);
                continue;
            }
            $this->addSubresource($value, $locale);
        }
    }
protected function addResourceArray ( array $ resource ) : void { foreach ( $ resource as $ locale => $ value ) { if ( $ locale === '@metadata' ) { $ this -> parseMetadata ( $ value ) ; continue ; } $ this -> addSubresource ( $ value , $ locale ) ; } }
Adds a resource array
@param array $resource The resource array
Adds a resource array