Returns whether the property should be translated or not.
\Drupal\Core\TypedData\TypedDataInterface $property: The field property to check.
bool TRUE if the property should be translated, FALSE otherwise.
protected function shouldTranslateProperty(TypedDataInterface $property) {
// Ignore properties with limited allowed values or if they're not strings.
if ($property instanceof OptionsProviderInterface || !$property instanceof StringInterface) {
return FALSE;
}
return TRUE;
}