How to add additional locales through API

Is there a way to add additional locales through API?