Populate fields on admin

And to answer your question; I highly recommend using Config-Sync for adding the locales programatically.
Using that you don’t have to think about how the programatic import functions, it just works.