lemmy icon indicating copy to clipboard operation
lemmy copied to clipboard

Question: Where do I find which Languages correspond to which LanguageId?

Open FriederHannenheim opened this issue 2 years ago • 1 comments

Question

Where do I find which Languages correspond to which LanguageId?

It would be nice to also include this in the API-Docs

FriederHannenheim avatar Jun 16 '23 13:06 FriederHannenheim

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".

Neshura87 avatar Jun 19 '23 09:06 Neshura87