update to new localization api. fix test index.html