src/helpers/I18n.php
public static function decodeArray(array $array, $onEmptyValue = '')
    {
        $decoded = [];
        foreach ($array as $key => $value) {
            $decoded[$key] = static::decode($value, $onEmptyValue);
        }
        
        return $decoded;
    }
public static function decodeArray(array $array, $onEmptyValue = '')
    {
        $decoded = [];
        foreach ($array as $key => $value) {
            $decoded[$key] = static::decode($value, $onEmptyValue);
        }
        
        return $decoded;
    }
public static function decodeArray ( array $ array , $ onEmptyValue = '' ) { $ decoded = [ ] ; foreach ( $ array as $ key => $ value ) { $ decoded [ $ key ] = static :: decode ( $ value , $ onEmptyValue ) ; } return $ decoded ; }
Decode an array with i18n values.

In order to decode an arry with json values you can use this function istead of iterator trough
the array items by yourself and calling {{luya\admin\helpers\I18n::decode}}.

```php
$array = ['{"de:"Hallo","en":"Hello"}', '{"de:"Ja","en":"Yes"}'];

$decoded = I18n::decodeArray($array);

print_r($decoded); // dump: array(['de' => 'Hallo', 'en' => 'Hello'], ['de' => 'Ja', 'en' => 'Yes']);
```

@param array $array The array to iterate trough and call the {{luya\admin\helpers\I18n::decode}} for each value.
@param string $onEmptyValue If the decoded value is not existing or empty, this default value will be used instead of null.
@return array
Decode an array with i18n values .