Problem when locale_key in dimsav/translatable config is not locale
If the locale_key in the config-file ist set to something else the lines 52-57 in src/Translatable.php won't work:
$translations = $resource->translations()
->get(['locale', $attribute])
->toArray();
foreach ( $translations as $translation ) {
$results[$translation['locale']] = $translation[$attribute];
}
The following should work better:
$translations = $resource->getTranslationsArray();
foreach ( $translations as $key => $translation ) {
$results[$key] = $translation[$attribute];
}