Thank you for your attentive reply; the answer is No, I haven’t fully resolved my issue. Here’s some context. I am using the Python SDK. My goal is to extract a list of language codes of all translations available under a given project and resource slug. Here’s a my code:
if resource := project.fetch("resources").get(slug=resource_slug):
it = tx_api.ResourceLanguageStats.filter(
language_codes = 
for tr in it:
# trying to do something with 'tr' here
# to get the tr's language codes...
Now perhaps I missed something and ResourceLanguageStats is not the appropriate class to use. I don’t mind as long as I can get the data I am looking for…
Allow me to chime in here since I would like to understand your need better. I understand what you wrote, but what need do you want to cover?
Every project has specific target languages. So, the project’s target languages are the same for all the project resources. Let’s take the following example:
You have Project A, with English as Source Language and FR and ES as target languages.
Under this project, you have the following four resources.
Let’s assume that:
Resource R1 has been translated at 35% both in FR and ES
Resource R2 has only one string translated in FR and none strings translated in ES
Resource R3 has 0 strings translated both in FR and ES.
Resource R4 has none strings translated in FR and 100% translated strings in ES.
What are you looking for in the above example?
Thank you in advance for your answer!
Principal Success Engineer at Transifex