Translated node does not use translated entity reference, how to fix this?
Some people told me this happends on default, but I've just set up a test site with i18n and entityreferences enabled, and it gives the same result.

But I found a sandbox project that worked for me after changing one line of code in the entityreference_translation.module:

This didn't work:

if ($item['target_type'] == "node") {


This works:

if ($field['settings']['target_type'] == "node") {