src/helpers/I18n.php
public static function findActiveArray(array $array, $onEmptyValue = '', $lang = null)
    {
        $output = [];
        foreach ($array as $key => $value) {
            $output[$key] = static::findActive($value, $onEmptyValue, $lang);
        }
        
        return $output;
    }
public static function findActiveArray(array $array, $onEmptyValue = '', $lang = null)
    {
        $output = [];
        foreach ($array as $key => $value) {
            $output[$key] = static::findActive($value, $onEmptyValue, $lang);
        }
        
        return $output;
    }
public static function findActiveArray ( array $ array , $ onEmptyValue = '' , $ lang = null ) { $ output = [ ] ; foreach ( $ array as $ key => $ value ) { $ output [ $ key ] = static :: findActive ( $ value , $ onEmptyValue , $ lang ) ; } return $ output ; }
Find the corresponding element inside an array for the current active language

```php
// assume the default language is `en`
$output = I18n::findActiveArray([
['de' => 'Hallo', 'en' => 'Hello'],
['de' => 'Katze', 'en' => 'Cat'],
]);

var_dump($output); // dump: array('Hello', 'Cat')
```

@param array $fieldValues The array you want to to find the current
@param mixed $onEmptyValue The value you can set when the language could not be found.
@param string $lang The language to return, if no lang is provided, the language resolved trough the admin ui (or user language) is used by default.
@return array
Find the corresponding element inside an array for the current active language