Created Translation compiler pass and Enum Loader

A guard clause fits better here:
```php
if (!is_array($value)) {
    return $array
}
$a = $this->flattenKeys($value);
```