Hi, I saw on other posts that it is possible to query the available locales by using the previous JS library like below.
How can I do the same thing using the new library?
Prismic.api("https://your-repository-name.cdn.prismic.io/api/v2").then(function(api) {
languages = api.data.languages
});