New on the String API: Wildcard * to get translations in all languages

By Edouard on 4 août 2023

On the String API, on the List String and Show String endpoints it is possible to pass a locale parameter containing a list of locale codes separated by a comma, for example:

/api/projects/:project_token/strings.json?locale=en,fr,de,es [GET]

If you’d like to get a list of segments for all the languages of your project (even if you add more locales to your project), you can now replace this list of locales with the wildcard *.

/api/projects/:project_token/strings.json?locale=*[GET]