TranslatableDataObject::getLocale
Given a translatable field name, pull out the raw field name and return the locale
ex: "Description__fr_FR" -> "fr_FR"
Signature
protected function getLocale(string
$field )
Parameters
$field
— string- The name of the translated field
Returns
- string