Wrong entity for OptionGroup and typos and incorrect params for UFGroup
Thanks for posting this it's great for option values but I'm seeing a couple non-OptionValue issues. I'll put up a couple small merge requests, if I can keep from getting sidetracked.
In case I get sidetracked, the main one is this line: https://lab.civicrm.org/extensions/fixoptiontranslations/-/blob/master/CRM/Fixoptiontranslations/Upgrader.php#L38. It should be
civicrm_api3($entity, 'create', array(
Also this https://lab.civicrm.org/extensions/fixoptiontranslations/-/blob/master/CRM/Fixoptiontranslations/Upgrader.php#L27-29 does nothing.
And typos (result should be results):