No package show available as localized in language
- Use Catalan locale (ca_ES) - This also fails for Spanish (es-ES)
- Search for 'gedit' (fails for all packages that I test also)
- The field "Localized in language" shows that package is not available but the in reality is
I think that this happens because here:
gs_plugin_get_locale returns 'ca-ES' but in the database you have only 'ca'
As the code is written today if you have a look for example to https://gitlab.gnome.org/GNOME/gedit/tree/master/po this will only works for locales like pt_BR or zh_CN but it will fail for the rest that are two digits es, ca, it, etc (the large majority of them).
My opinion (I have no research this much): to make this work properly you need to look for the locale with country, like pt_BR (since a few translations are country specific like pt) but ALSO by the language without country (like pt).