Querying for localized informations

Tags: #<Tag:0x00007f1c9a8e7548>

Hello,

I’m looking info a way of getting localized data, e.g. the French names of works.

So far the only solution I see is to use queries like https://musicbrainz.org/ws/2/work/[work MBID]?inc=aliases and search for the alias matchng the locale I want in the returned aliases.

This solution works but it returns all the aliases for an item. Is there any way to specify the locale I’m interested into or, even better, some way to automagically retrieve the localized alias instead of the original one when there is a primary alias for a given locale?

(I took a work’s name as an example but many items may have different names depending on the locale: Artists, instruments, etc.)

1 Like

There is no other way than including all aliases for free text fields such as work’s name.

For attributes (e.g. work type), release countries, instruments, language names, and relationship types (e.g. composer), localization resources can be pulled from Transifex. For example, these resources are pulled to build MusicBrainz Picard that displays localized data even though it queries ws/2 only.

Edit: https://www.transifex.com/musicbrainz/musicbrainz/

2 Likes