Question: Where do I find which Languages correspond to which LanguageId?
Question
Where do I find which Languages correspond to which LanguageId?
It would be nice to also include this in the API-Docs
You can get a list of all LanguageIds and their corresponding language by calling example.site/api/v3/site and extracting the "all_languages" array, the allowed languages on the instance are below that in "discussion_languages" saved as only the ids. From what I can tell this language array is static across all lemmy instances.
There definitely should be better documentation for this though. "Documentation" (I don't like to call it that, it doesn't tell you much about the params or anything really, only what is there and what is required but not where to get it) is here: https://join-lemmy.org/api/modules.html (for http requests look at "LemmyHttp".