The format of the parameters should be as follows:
$lang = array(
'src' => 'en',
'output' => 'de',
'name' => 'German',
'native' => 'Deutsch'
);
$locales = array(
array(
'region' => 'DE',
'name' => 'Germany',
'native' => 'Deutschland',
'text' => array(
array(
'source' => 'This field is required.',
'output' => 'Dieses Feld ist erforderlich.'
), ...
)
), ...
);