nit: error report, I think the scenario where `localesProps[index].entry_points[name]` is undefined should introduce a warning/exception.