Retrieve the preferred translation of a given text.
public getPreferredTranslation ( array $translations ) : string | ||
$translations | array | The translations, as an associative array with language => text mappings. |
return | string | The preferred translation. |