Update html_api.php

Functions modified to work with localized enums