# Using single transifex project in multiple react repos

**URL:** <https://community.transifex.com/t/using-single-transifex-project-in-multiple-react-repos/2714>\
**Category:** Transifex Native\
**Tags:** transifex-native, react\
**Created:** [March 4, 2022, 6:56am UTC](https://community.transifex.com/t/using-single-transifex-project-in-multiple-react-repos/2714 "2022-03-04T06:56:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saad\_Awan](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.transifex.com/saad_awan/32/1991_2.png) [@Saad\_Awan](https://community.transifex.com/u/Saad_Awan)\
**Post date:** [March 4, 2022, 6:56am UTC](https://community.transifex.com/t/using-single-transifex-project-in-multiple-react-repos/2714/1 "2022-03-04T06:56:45Z")

</div>

With latest transifex/native version we can use multiple project instances by using react context.  
However, it is very cubmersome and also adds much more work.

For example, let’s say we have a component `ComponentA`

```auto
export const ComponentA = ({ children }) => (
  <div>
   <T _str="Just adding something here" />
  {children}
 </div>
)

```

and now I want to use this component in another repo 100 times. And so now, I need to do

```auto
/ * this code is in the main repo */
<Header>
  <TxProvider instance={ComponentALibraryInstance}>
     <ComponentA>
         <TxProvider instance={RootLibraryInstanceCopy}>
            <T _str="Some string on main repo />
         <TxProvider />
    <ComponentA />
 <TxProvider />
<Header />

```

You can see that I don’t want to do this 100 times in my code base. Plus, what that is just a simple use-case.  
Imagine a component which takes like 10 props of type `ReactNode`. This means wrapping all of them with contexts.

> How to use a single shared project across multiple repos.

We can easily solve this issue by just using a single project across all repos, But then we can’t `--purge` anymore as pushing from projectA will result in losing the strings from projectB and so on.

**The above is my current knowledge.**  
What I am really looking for ?  
Is there any way to use a single native project across multiple repos and also being able to remove unsused strings across all projects ? – we can do it using monorepo, but my concern is doing it across multiple projects.  
I see we do have some tagging system but not sure how to relative them all in a sense where you can acheive the `--purge` behaviour across multiple repos.

Thanks

Related dicsussion:

> [@Using multiple transifex projects in react app -](https://community.transifex.com/t/using-multiple-transifex-projects-in-react-app/2595):
>
> We have several projects. A storybook as a component library. A platform app - our main app. A user portal - another side app. A React native app. Current set-up: We are using transifex/native with transifex/react. We have created separate projects in transifex for all the above. Issue: Our main platform app uses the storybook. But we can only init the transifex with one token and that is of this main app. So, our storybook components are not able to set-up the right token - as their toke…

---

<div class="post-metadata">

**Author:** ![Ryan](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.transifex.com/ryan/32/1868_2.png) [@Ryan](https://community.transifex.com/u/Ryan)\
**Post date:** [March 8, 2022, 4:06pm UTC](https://community.transifex.com/t/using-single-transifex-project-in-multiple-react-repos/2714/2 "2022-03-08T16:06:57Z")

</div>

Hello @Saad_Awan ,

Thank you for explaining the issue so clearly! 🙏

We understand, and our engineers are looking into it. If and when we have an update we will definitely let you know here.

Regards,  
Ryan  
Transifex Customer Support

---

<div class="post-metadata">

**Author:** ![Saad\_Awan](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.transifex.com/saad_awan/32/1991_2.png) [@Saad\_Awan](https://community.transifex.com/u/Saad_Awan)\
**Post date:** [September 8, 2022, 12:20pm UTC](https://community.transifex.com/t/using-single-transifex-project-in-multiple-react-repos/2714/3 "2022-09-08T12:20:49Z")

</div>

Any update on this please 🙏

Thanks.

---

<div class="post-metadata">

**Author:** ![Panagiotis\_Kavrakis](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.transifex.com/panagiotis_kavrakis/32/1402_2.png) [@Panagiotis\_Kavrakis](https://community.transifex.com/u/Panagiotis_Kavrakis)\
**Post date:** [September 9, 2022, 11:45am UTC](https://community.transifex.com/t/using-single-transifex-project-in-multiple-react-repos/2714/4 "2022-09-09T11:45:05Z")

</div>

Hello @Saad_Awan ,

I hope you find helpful the following [link](https://developers.transifex.com/docs/cleaning-up-native-resources).

Kind regards,  
Panagiotis
