# How to get a list of languages to which a specific resource was translated?

**URL:** https://community.transifex.com/t/how-to-get-a-list-of-languages-to-which-a-specific-resource-was-translated/3300
**Category:** Developers
**Created:** [February 20, 2023, 9:09am UTC](https://community.transifex.com/t/how-to-get-a-list-of-languages-to-which-a-specific-resource-was-translated/3300 "2023-02-20T09:09:05Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![MrNycticorax](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.transifex.com/mrnycticorax/32/2439_2.png) [@MrNycticorax](https://community.transifex.com/u/MrNycticorax)
#### Post date: [February 20, 2023, 11:12am UTC](https://community.transifex.com/t/how-to-get-a-list-of-languages-to-which-a-specific-resource-was-translated/3300/3 "2023-02-20T11:12:55Z")

</div>

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:

```python
if resource := project.fetch("resources").get(slug=resource_slug):
    it = tx_api.ResourceLanguageStats.filter(
        project=project, 
        resource=resource
    ).all()
    
    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…

---

_[View the full topic](https://community.transifex.com/t/how-to-get-a-list-of-languages-to-which-a-specific-resource-was-translated/3300)._
