Setting up FBT in React Native #294
-
Hey everyone. I have some questions regarding this library. I tried to setup this on a react native project and after setting it up I faced some issues. here's the steps that I have followed. I followed this guideline - https://facebook.github.io/fbt/docs/getting_started_react_native
after everything has done I updated one of my component to use this library like this
After that I ran the scripts 1 by 1 sequentially to generate the translation files. However when I take the translated files there wasn't any translation but the same language as I used in the component.
but when I run with the texts that are in the demo app like mentioned in below it translates correctly
after that I looked at this and also if we want to support multiple languages how do we proceed with the current scenario ? sorry for this big Q&A but I wanted to mention the steps that I followed to get here Thanks ! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @kosalamoon, The translations provided in the demo represent input you need to provide: https://github.com/facebook/fbt/blob/main/demo-app/translations/es_la.json When you run the translation script, the output is the generated tables. |
Beta Was this translation helpful? Give feedback.
Hi @kosalamoon,
fbt
doesn't provide translations, but merely a means of extracting your translatable texts, processing translations (that YOU provide to it somehow) and creating translated payloads for the UI. Let me know if you need any clarifications on that.The translations provided in the demo represent input you need to provide: https://github.com/facebook/fbt/blob/main/demo-app/translations/es_la.json
When you run the translation script, the output is the generated tables.